diff options
author | megamage <none@none> | 2009-06-17 14:09:17 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-06-17 14:09:17 -0500 |
commit | 2d569883e643ac08d5af6b23f9a0cd3ac4dc0d80 (patch) | |
tree | 9b2201d23090a9fddabf04e19a4afea0aaa70b2f /src/game/ObjectMgr.cpp | |
parent | cf99758b0b0f857dda37e355801929ece4e6e928 (diff) |
*Add config option CheckDB to check if the contents in FULL folder are applied.
--HG--
branch : trunk
Diffstat (limited to 'src/game/ObjectMgr.cpp')
-rw-r--r-- | src/game/ObjectMgr.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp index 682c91a1f3b..31c0723869d 100644 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -8474,3 +8474,19 @@ void ObjectMgr::RemoveGMTicket(uint64 ticketGuid, int64 source, bool permanently RemoveGMTicket(ticket, source, permanently); } +bool ObjectMgr::CheckDB() const +{ + CreatureInfo const* cInfo = sCreatureStorage.LookupEntry<CreatureInfo>(28511); + if(!cInfo || cInfo->spells[4] != 51890) + return false; + + cInfo = sCreatureStorage.LookupEntry<CreatureInfo>(30068); + if(!cInfo || cInfo->faction_A != 21) + return false; + + cInfo = sCreatureStorage.LookupEntry<CreatureInfo>(28768); + if(!cInfo || !cInfo->ScriptID) + return false; + + return true; +} |