custom reload Creature_template

kusanagy Nov 8th, 2019 185 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand