diff --git a/src/game/ScriptMgr.cpp b/src/game/ScriptMgr.cpp index ef0ec43c6..10dbf4512 100644 --- a/src/game/ScriptMgr.cpp +++ b/src/game/ScriptMgr.cpp @@ -1221,3 +1221,14 @@ uint32 GetScriptId(const char *name) { return sScriptMgr.GetScriptId(name); } + +char const* GetScriptName(uint32 id) +{ + return sScriptMgr.GetScriptName(id); +} + +uint32 GetScriptIdsCount() +{ + return sScriptMgr.GetScriptIdsCount(); +} + diff --git a/src/game/ScriptMgr.h b/src/game/ScriptMgr.h index a67d9350f..419413e3a 100644 --- a/src/game/ScriptMgr.h +++ b/src/game/ScriptMgr.h @@ -360,6 +360,7 @@ class ScriptMgr const char* GetScriptName(uint32 id) const { return id < m_scriptNames.size() ? m_scriptNames[id].c_str() : ""; } uint32 GetScriptId(const char *name) const; + uint32 GetScriptIdsCount() const { return m_scriptNames.size(); } ScriptLoadResult LoadScriptLibrary(const char* libName); void UnloadScriptLibrary(); @@ -452,5 +453,7 @@ class ScriptMgr MANGOS_DLL_SPEC uint32 GetAreaTriggerScriptId(uint32 triggerId); MANGOS_DLL_SPEC uint32 GetEventIdScriptId(uint32 eventId); MANGOS_DLL_SPEC uint32 GetScriptId(const char *name); +MANGOS_DLL_SPEC char const* GetScriptName(uint32 id); +MANGOS_DLL_SPEC uint32 GetScriptIdsCount(); #endif diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 2e7fdf474..97a5f3d35 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 "11431" + #define REVISION_NR "11432" #endif // __REVISION_NR_H__