From 2d569883e643ac08d5af6b23f9a0cd3ac4dc0d80 Mon Sep 17 00:00:00 2001 From: megamage Date: Wed, 17 Jun 2009 14:09:17 -0500 Subject: *Add config option CheckDB to check if the contents in FULL folder are applied. --HG-- branch : trunk --- src/game/ObjectMgr.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/game/ObjectMgr.cpp') 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(28511); + if(!cInfo || cInfo->spells[4] != 51890) + return false; + + cInfo = sCreatureStorage.LookupEntry(30068); + if(!cInfo || cInfo->faction_A != 21) + return false; + + cInfo = sCreatureStorage.LookupEntry(28768); + if(!cInfo || !cInfo->ScriptID) + return false; + + return true; +} -- cgit v1.2.3