Jump to content

[Question] - Loading Priority


Recommended Posts

Posted

Hi, I was wondering if anyone knows if it is possible to change the way mangos loads stuff. For example I want mangos to load gameobjects spawns before creature spawns. Would this be possible to do?

Posted

Look at World.cpp function SetInitialWorldSettings

   sLog.outString( "Loading Creature Data..." );
   sObjectMgr.LoadCreatures();

   sLog.outString( "Loading pet levelup spells..." );
   sSpellMgr.LoadPetLevelupSpellMap();

   sLog.outString( "Loading pet default spell additional to levelup spells..." );
   sSpellMgr.LoadPetDefaultSpells();

   sLog.outString( "Loading Creature Addon Data..." );
   sLog.outString();
   sObjectMgr.LoadCreatureAddons();                            // must be after LoadCreatureTemplates() and LoadCreatures()
   sLog.outString( ">>> Creature Addon Data loaded" );
   sLog.outString();

   sLog.outString( "Loading Creature Respawn Data..." );   // must be after PackInstances()
   sObjectMgr.LoadCreatureRespawnTimes();

   sLog.outString( "Loading Gameobject Data..." );
   sObjectMgr.LoadGameobjects();

Just do what you want here, like moving LoadGameObjects() before LoadCreatures() :)

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use