Changeset 79 for trunk/src/game/Level3.cpp
- Timestamp:
- 11/19/08 13:32:21 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/Level3.cpp
r62 r79 25 25 #include "World.h" 26 26 #include "ObjectMgr.h" 27 #include "AccountMgr.h" 27 28 #include "PlayerDump.h" 28 29 #include "SpellMgr.h" … … 73 74 HandleReloadAllSpellCommand(""); 74 75 HandleReloadAllItemCommand(""); 76 HandleReloadAllLocalesCommand(""); 75 77 76 78 HandleReloadCommandCommand(""); … … 159 161 } 160 162 163 bool ChatHandler::HandleReloadAllLocalesCommand(const char* args) 164 { 165 HandleReloadLocalesCreatureCommand("a"); 166 HandleReloadLocalesGameobjectCommand("a"); 167 HandleReloadLocalesItemCommand("a"); 168 HandleReloadLocalesNpcTextCommand("a"); 169 HandleReloadLocalesPageTextCommand("a"); 170 HandleReloadLocalesQuestCommand("a"); 171 return true; 172 } 173 161 174 bool ChatHandler::HandleReloadConfigCommand(const char* arg) 162 175 { … … 598 611 SendGlobalSysMessage("DB table `game_tele` reloaded."); 599 612 613 return true; 614 } 615 616 bool ChatHandler::HandleReloadLocalesCreatureCommand(const char* /*arg*/) 617 { 618 sLog.outString( "Re-Loading Locales Creature ..."); 619 objmgr.LoadCreatureLocales(); 620 SendGlobalSysMessage("DB table `locales_creature` reloaded."); 621 return true; 622 } 623 624 bool ChatHandler::HandleReloadLocalesGameobjectCommand(const char* /*arg*/) 625 { 626 sLog.outString( "Re-Loading Locales Gameobject ... "); 627 objmgr.LoadGameObjectLocales(); 628 SendGlobalSysMessage("DB table `locales_gameobject` reloaded."); 629 return true; 630 } 631 632 bool ChatHandler::HandleReloadLocalesItemCommand(const char* /*arg*/) 633 { 634 sLog.outString( "Re-Loading Locales Item ... "); 635 objmgr.LoadItemLocales(); 636 SendGlobalSysMessage("DB table `locales_item` reloaded."); 637 return true; 638 } 639 640 bool ChatHandler::HandleReloadLocalesNpcTextCommand(const char* /*arg*/) 641 { 642 sLog.outString( "Re-Loading Locales NPC Text ... "); 643 objmgr.LoadNpcTextLocales(); 644 SendGlobalSysMessage("DB table `locales_npc_text` reloaded."); 645 return true; 646 } 647 648 bool ChatHandler::HandleReloadLocalesPageTextCommand(const char* /*arg*/) 649 { 650 sLog.outString( "Re-Loading Locales Page Text ... "); 651 objmgr.LoadPageTextLocales(); 652 SendGlobalSysMessage("DB table `locales_page_text` reloaded."); 653 return true; 654 } 655 656 bool ChatHandler::HandleReloadLocalesQuestCommand(const char* /*arg*/) 657 { 658 sLog.outString( "Re-Loading Locales Quest ... "); 659 objmgr.LoadQuestLocales(); 660 SendGlobalSysMessage("DB table `locales_quest` reloaded."); 600 661 return true; 601 662 } … … 655 716 } 656 717 targetAccountId = objmgr.GetPlayerAccountIdByGUID(targetGUID); 657 targetSecurity = objmgr.GetSecurityByAccount(targetAccountId);718 targetSecurity = accmgr.GetSecurity(targetAccountId); 658 719 } 659 720 … … 4955 5016 return false; 4956 5017 4957 uint32 account_id = objmgr.GetAccountByAccountName(acc);5018 uint32 account_id = accmgr.GetId(acc); 4958 5019 if(!account_id) 4959 5020 { … … 4962 5023 { 4963 5024 std::string acc_name; 4964 if(! objmgr.GetAccountNameByAccount(account_id,acc_name))5025 if(!accmgr.GetName(account_id,acc_name)) 4965 5026 return false; 4966 5027 }