Advertisement
kusanagy

custom reload Creature_template

Nov 8th, 2019
546
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1.     static bool HandleReloadCreatureTemplateCommand(ChatHandler* handler, char const* args)
  2.     {
  3.         if (!*args)
  4.         {
  5.             TC_LOG_INFO("misc", "Re-Loading Creature templates...");
  6.             sObjectMgr->LoadCreatureTemplates();
  7.             sObjectMgr->InitializeQueriesData(QUERY_DATA_CREATURES);
  8.             handler->SendGlobalGMSysMessage("DB table `Creature_template` reloaded.");
  9.             return true;
  10.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement