diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp index 9cd6dfcfe..d9aeb07ef 100644 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -7364,3 +7364,13 @@ ObjectMgr::ScriptNameMap & GetScriptNames() { return objmgr.GetScriptNames(); } + +CreatureInfo const* GetCreatureTemplateStore(uint32 entry) +{ + return sCreatureStorage.LookupEntry(entry); +} + +Quest const* GetQuestTemplateStore(uint32 entry) +{ + return objmgr.GetQuestTemplate(entry); +} diff --git a/src/game/ObjectMgr.h b/src/game/ObjectMgr.h index 3e4073a59..6b590115a 100644 --- a/src/game/ObjectMgr.h +++ b/src/game/ObjectMgr.h @@ -881,5 +881,7 @@ MANGOS_DLL_SPEC bool LoadMangosStrings(DatabaseType& db, char const* table,int32 MANGOS_DLL_SPEC uint32 GetAreaTriggerScriptId(uint32 trigger_id); MANGOS_DLL_SPEC uint32 GetScriptId(const char *name); MANGOS_DLL_SPEC ObjectMgr::ScriptNameMap& GetScriptNames(); +MANGOS_DLL_SPEC CreatureInfo const* GetCreatureTemplateStore(uint32 entry); +MANGOS_DLL_SPEC Quest const* GetQuestTemplateStore(uint32 entry); #endif diff --git a/src/shared/Database/DBCStores.cpp b/src/shared/Database/DBCStores.cpp index 27bafe83a..d1f16d710 100644 --- a/src/shared/Database/DBCStores.cpp +++ b/src/shared/Database/DBCStores.cpp @@ -707,3 +707,6 @@ uint32 const* GetTalentTabPages(uint32 cls) MANGOS_DLL_SPEC DBCStorage const* GetSoundEntriesStore() { return &sSoundEntriesStore; } MANGOS_DLL_SPEC DBCStorage const* GetSpellStore() { return &sSpellStore; } MANGOS_DLL_SPEC DBCStorage const* GetSpellRangeStore() { return &sSpellRangeStore; } +MANGOS_DLL_SPEC DBCStorage const* GetFactionStore() { return &sFactionStore; } +MANGOS_DLL_SPEC DBCStorage const* GetItemDisplayStore() { return &sItemStore; } +MANGOS_DLL_SPEC DBCStorage const* GetCreatureDisplayStore() { return &sCreatureDisplayInfoStore; } diff --git a/src/shared/Database/DBCStores.h b/src/shared/Database/DBCStores.h index 3605f6208..dd25b2ed6 100644 --- a/src/shared/Database/DBCStores.h +++ b/src/shared/Database/DBCStores.h @@ -215,7 +215,10 @@ extern DBCStorage sWorldMapOverlayStore; void LoadDBCStores(const std::string& dataPath); // script support functions -MANGOS_DLL_SPEC DBCStorage const* GetSoundEntriesStore(); -MANGOS_DLL_SPEC DBCStorage const* GetSpellStore(); -MANGOS_DLL_SPEC DBCStorage const* GetSpellRangeStore(); +MANGOS_DLL_SPEC DBCStorage const* GetSoundEntriesStore(); +MANGOS_DLL_SPEC DBCStorage const* GetSpellStore(); +MANGOS_DLL_SPEC DBCStorage const* GetSpellRangeStore(); +MANGOS_DLL_SPEC DBCStorage const* GetFactionStore(); +MANGOS_DLL_SPEC DBCStorage const* GetItemDisplayStore(); +MANGOS_DLL_SPEC DBCStorage const* GetCreatureDisplayStore(); #endif diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 71c1b309d..caca4e064 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "7294" + #define REVISION_NR "7295" #endif // __REVISION_NR_H__