aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Globals/ObjectMgr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/game/Globals/ObjectMgr.cpp')
-rwxr-xr-xsrc/server/game/Globals/ObjectMgr.cpp117
1 files changed, 7 insertions, 110 deletions
diff --git a/src/server/game/Globals/ObjectMgr.cpp b/src/server/game/Globals/ObjectMgr.cpp
index efe944d541b..08a76008fde 100755
--- a/src/server/game/Globals/ObjectMgr.cpp
+++ b/src/server/game/Globals/ObjectMgr.cpp
@@ -297,7 +297,6 @@ void ObjectMgr::LoadCreatureLocales()
} while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %lu creature locale strings in %u ms", (unsigned long)_creatureLocaleStore.size(), GetMSTimeDiffToNow(oldMSTime));
-
}
void ObjectMgr::LoadGossipMenuItemsLocales()
@@ -334,7 +333,6 @@ void ObjectMgr::LoadGossipMenuItemsLocales()
} while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %lu gossip_menu_option locale strings in %u ms", (unsigned long)_gossipMenuItemsLocaleStore.size(), GetMSTimeDiffToNow(oldMSTime));
-
}
void ObjectMgr::LoadPointOfInterestLocales()
@@ -361,7 +359,6 @@ void ObjectMgr::LoadPointOfInterestLocales()
} while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %lu points_of_interest locale strings in %u ms", (unsigned long)_pointOfInterestLocaleStore.size(), GetMSTimeDiffToNow(oldMSTime));
-
}
void ObjectMgr::LoadCreatureTemplates()
@@ -389,7 +386,6 @@ void ObjectMgr::LoadCreatureTemplates()
if (!result)
{
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded 0 creature template definitions. DB table `creature_template` is empty.");
-
return;
}
@@ -492,7 +488,6 @@ void ObjectMgr::LoadCreatureTemplates()
CheckCreatureTemplate(&itr->second);
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u creature definitions in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
void ObjectMgr::LoadCreatureTemplateAddons()
@@ -505,7 +500,6 @@ void ObjectMgr::LoadCreatureTemplateAddons()
if (!result)
{
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded 0 creature template addon definitions. DB table `creature_template_addon` is empty.");
-
return;
}
@@ -564,7 +558,6 @@ void ObjectMgr::LoadCreatureTemplateAddons()
while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u creature template addons in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
void ObjectMgr::CheckCreatureTemplate(CreatureTemplate const* cInfo)
@@ -882,7 +875,6 @@ void ObjectMgr::LoadCreatureAddons()
if (!result)
{
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded 0 creature addon definitions. DB table `creature_addon` is empty.");
-
return;
}
@@ -948,7 +940,6 @@ void ObjectMgr::LoadCreatureAddons()
while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u creature addons in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
CreatureAddon const* ObjectMgr::GetCreatureAddon(uint32 lowguid)
@@ -987,7 +978,6 @@ void ObjectMgr::LoadEquipmentTemplates()
if (!result)
{
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded 0 creature equipment templates. DB table `creature_equip_template` is empty!");
-
return;
}
@@ -1040,7 +1030,6 @@ void ObjectMgr::LoadEquipmentTemplates()
while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u equipment templates in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
CreatureModelInfo const* ObjectMgr::GetCreatureModelInfo(uint32 modelId)
@@ -1118,7 +1107,6 @@ void ObjectMgr::LoadCreatureModelInfo()
if (!result)
{
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded 0 creature model definitions. DB table `creature_model_info` is empty.");
-
return;
}
@@ -1163,7 +1151,6 @@ void ObjectMgr::LoadCreatureModelInfo()
while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u creature model based info in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
void ObjectMgr::LoadLinkedRespawn()
@@ -1349,7 +1336,6 @@ void ObjectMgr::LoadLinkedRespawn()
while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded " UI64FMTD " linked respawns in %u ms", uint64(_linkedRespawnStore.size()), GetMSTimeDiffToNow(oldMSTime));
-
}
bool ObjectMgr::SetCreatureLinkedRespawn(uint32 guidLow, uint32 linkedGuidLow)
@@ -1536,7 +1522,6 @@ void ObjectMgr::LoadCreatures()
} while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u creatures in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
void ObjectMgr::AddCreatureToGrid(uint32 guid, CreatureData const* data)
@@ -1841,7 +1826,6 @@ void ObjectMgr::LoadGameobjects()
} while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %lu gameobjects in %u ms", (unsigned long)_gameObjectDataStore.size(), GetMSTimeDiffToNow(oldMSTime));
-
}
void ObjectMgr::AddGameobjectToGrid(uint32 guid, GameObjectData const* data)
@@ -2010,7 +1994,6 @@ void ObjectMgr::LoadItemLocales()
} while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %lu Item locale strings in %u ms", (unsigned long)_itemLocaleStore.size(), GetMSTimeDiffToNow(oldMSTime));
-
}
void ObjectMgr::LoadItemTemplates()
@@ -2053,7 +2036,6 @@ void ObjectMgr::LoadItemTemplates()
if (!result)
{
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded 0 item templates. DB table `item_template` is empty.");
-
return;
}
@@ -2615,7 +2597,6 @@ void ObjectMgr::LoadItemTemplates()
sLog->outError(LOG_FILTER_SQL, "Item (Entry: %u) does not exist in `item_template` but is referenced in `CharStartOutfit.dbc`", *itr);
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u item templates in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
ItemTemplate const* ObjectMgr::GetItemTemplate(uint32 entry)
@@ -2651,7 +2632,6 @@ void ObjectMgr::LoadItemSetNameLocales()
} while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded " UI64FMTD " Item set name locale strings in %u ms", uint64(_itemSetNameLocaleStore.size()), GetMSTimeDiffToNow(oldMSTime));
-
}
void ObjectMgr::LoadItemSetNames()
@@ -2680,7 +2660,6 @@ void ObjectMgr::LoadItemSetNames()
if (!result)
{
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded 0 item set names. DB table `item_set_names` is empty.");
-
return;
}
@@ -2735,7 +2714,6 @@ void ObjectMgr::LoadItemSetNames()
}
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u item set names in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
void ObjectMgr::LoadVehicleTemplateAccessories()
@@ -2792,7 +2770,6 @@ void ObjectMgr::LoadVehicleTemplateAccessories()
while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u Vehicle Template Accessories in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
void ObjectMgr::LoadVehicleAccessories()
@@ -2809,7 +2786,6 @@ void ObjectMgr::LoadVehicleAccessories()
if (!result)
{
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded 0 Vehicle Accessories in %u ms", GetMSTimeDiffToNow(oldMSTime));
-
return;
}
@@ -2837,7 +2813,6 @@ void ObjectMgr::LoadVehicleAccessories()
while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u Vehicle Accessories in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
void ObjectMgr::LoadPetLevelInfo()
@@ -2930,7 +2905,6 @@ void ObjectMgr::LoadPetLevelInfo()
}
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u level pet stats definitions in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
PetLevelInfo const* ObjectMgr::GetPetLevelInfo(uint32 creature_id, uint8 level) const
@@ -3072,12 +3046,11 @@ void ObjectMgr::LoadPlayerInfo()
while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u player create definitions in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
}
// Load playercreate items
- sLog->outInfo(LOG_FILTER_GENERAL, "Loading Player Create Items Data...");
+ sLog->outInfo(LOG_FILTER_SERVER_LOADING, "Loading Player Create Items Data...");
{
uint32 oldMSTime = getMSTime();
// 0 1 2 3
@@ -3086,7 +3059,6 @@ void ObjectMgr::LoadPlayerInfo()
if (!result)
{
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded 0 custom player create items. DB table `playercreateinfo_item` is empty.");
-
}
else
{
@@ -3144,12 +3116,11 @@ void ObjectMgr::LoadPlayerInfo()
while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u custom player create items in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
}
// Load playercreate spells
- sLog->outInfo(LOG_FILTER_GENERAL, "Loading Player Create Spell Data...");
+ sLog->outInfo(LOG_FILTER_SERVER_LOADING, "Loading Player Create Spell Data...");
{
uint32 oldMSTime = getMSTime();
@@ -3201,12 +3172,11 @@ void ObjectMgr::LoadPlayerInfo()
while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u player create spells in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
}
// Load playercreate actions
- sLog->outInfo(LOG_FILTER_GENERAL, "Loading Player Create Action Data...");
+ sLog->outInfo(LOG_FILTER_SERVER_LOADING, "Loading Player Create Action Data...");
{
uint32 oldMSTime = getMSTime();
@@ -3248,12 +3218,11 @@ void ObjectMgr::LoadPlayerInfo()
while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u player create actions in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
}
// Loading levels data (class only dependent)
- sLog->outInfo(LOG_FILTER_GENERAL, "Loading Player Create Level HP/Mana Data...");
+ sLog->outInfo(LOG_FILTER_SERVER_LOADING, "Loading Player Create Level HP/Mana Data...");
{
uint32 oldMSTime = getMSTime();
@@ -3330,11 +3299,10 @@ void ObjectMgr::LoadPlayerInfo()
}
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u level health/mana definitions in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
// Loading levels data (class/race dependent)
- sLog->outInfo(LOG_FILTER_GENERAL, "Loading Player Create Level Stats Data...");
+ sLog->outInfo(LOG_FILTER_SERVER_LOADING, "Loading Player Create Level Stats Data...");
{
uint32 oldMSTime = getMSTime();
@@ -3444,11 +3412,10 @@ void ObjectMgr::LoadPlayerInfo()
}
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u level stats definitions in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
// Loading xp per level data
- sLog->outInfo(LOG_FILTER_GENERAL, "Loading Player Create XP Data...");
+ sLog->outInfo(LOG_FILTER_SERVER_LOADING, "Loading Player Create XP Data...");
{
uint32 oldMSTime = getMSTime();
@@ -3503,7 +3470,6 @@ void ObjectMgr::LoadPlayerInfo()
}
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u xp for level definitions in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
}
@@ -4290,7 +4256,6 @@ void ObjectMgr::LoadQuests()
}
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %lu quests definitions in %u ms", (unsigned long)_questTemplates.size(), GetMSTimeDiffToNow(oldMSTime));
-
}
void ObjectMgr::LoadQuestLocales()
@@ -4339,7 +4304,6 @@ void ObjectMgr::LoadQuestLocales()
} while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %lu Quest locale strings in %u ms", (unsigned long)_questLocaleStore.size(), GetMSTimeDiffToNow(oldMSTime));
-
}
void ObjectMgr::LoadScripts(ScriptsType type)
@@ -4357,7 +4321,7 @@ void ObjectMgr::LoadScripts(ScriptsType type)
if (sScriptMgr->IsScriptScheduled()) // function cannot be called when scripts are in use.
return;
- sLog->outInfo(LOG_FILTER_GENERAL, "Loading %s...", tableName.c_str());
+ sLog->outInfo(LOG_FILTER_SERVER_LOADING, "Loading %s...", tableName.c_str());
scripts->clear(); // need for reload support
@@ -4368,7 +4332,6 @@ void ObjectMgr::LoadScripts(ScriptsType type)
if (!result)
{
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded 0 script definitions. DB table `%s` is empty!", tableName.c_str());
-
return;
}
@@ -4660,7 +4623,6 @@ void ObjectMgr::LoadScripts(ScriptsType type)
while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u script definitions in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
void ObjectMgr::LoadGameObjectScripts()
@@ -4805,7 +4767,6 @@ void ObjectMgr::LoadSpellScriptNames()
if (!result)
{
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded 0 spell script names. DB table `spell_script_names` is empty!");
-
return;
}
@@ -4853,7 +4814,6 @@ void ObjectMgr::LoadSpellScriptNames()
while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u spell script names in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
void ObjectMgr::ValidateSpellScripts()
@@ -4863,7 +4823,6 @@ void ObjectMgr::ValidateSpellScripts()
if (_spellScriptsStore.empty())
{
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Validated 0 scripts.");
-
return;
}
@@ -4911,7 +4870,6 @@ void ObjectMgr::ValidateSpellScripts()
}
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Validated %u scripts in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
void ObjectMgr::LoadPageTexts()
@@ -4924,7 +4882,6 @@ void ObjectMgr::LoadPageTexts()
if (!result)
{
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded 0 page texts. DB table `page_text` is empty!");
-
return;
}
@@ -4954,7 +4911,6 @@ void ObjectMgr::LoadPageTexts()
}
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u page texts in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
PageText const* ObjectMgr::GetPageText(uint32 pageEntry)
@@ -4990,7 +4946,6 @@ void ObjectMgr::LoadPageTextLocales()
} while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %lu PageText locale strings in %u ms", (unsigned long)_pageTextLocaleStore.size(), GetMSTimeDiffToNow(oldMSTime));
-
}
void ObjectMgr::LoadInstanceTemplate()
@@ -5003,7 +4958,6 @@ void ObjectMgr::LoadInstanceTemplate()
if (!result)
{
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded 0 instance templates. DB table `page_text` is empty!");
-
return;
}
@@ -5033,7 +4987,6 @@ void ObjectMgr::LoadInstanceTemplate()
while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u instance templates in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
InstanceTemplate const* ObjectMgr::GetInstanceTemplate(uint32 mapID)
@@ -5123,7 +5076,6 @@ void ObjectMgr::LoadInstanceEncounters()
} while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u instance encounters in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
GossipText const* ObjectMgr::GetGossipText(uint32 Text_ID) const
@@ -5144,7 +5096,6 @@ void ObjectMgr::LoadGossipText()
if (!result)
{
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u npc texts", count);
-
return;
}
_gossipTextStore.rehash(result->GetRowCount());
@@ -5184,7 +5135,6 @@ void ObjectMgr::LoadGossipText()
} while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u npc texts in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
void ObjectMgr::LoadNpcTextLocales()
@@ -5227,7 +5177,6 @@ void ObjectMgr::LoadNpcTextLocales()
} while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %lu NpcText locale strings in %u ms", (unsigned long)_npcTextLocaleStore.size(), GetMSTimeDiffToNow(oldMSTime));
-
}
//not very fast function but it is called only once a day, or on starting-up
@@ -5253,7 +5202,6 @@ void ObjectMgr::ReturnOrDeleteOldMails(bool serverUp)
if (!result)
{
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> No expired mails found.");
-
return; // any mails need to be returned or deleted
}
@@ -5357,7 +5305,6 @@ void ObjectMgr::ReturnOrDeleteOldMails(bool serverUp)
while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Processed %u expired mails: %u deleted and %u returned in %u ms", deletedCount + returnedCount, deletedCount, returnedCount, GetMSTimeDiffToNow(oldMSTime));
-
}
void ObjectMgr::LoadQuestAreaTriggers()
@@ -5371,7 +5318,6 @@ void ObjectMgr::LoadQuestAreaTriggers()
if (!result)
{
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded 0 quest trigger points. DB table `areatrigger_involvedrelation` is empty.");
-
return;
}
@@ -5416,7 +5362,6 @@ void ObjectMgr::LoadQuestAreaTriggers()
} while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u quest trigger points in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
void ObjectMgr::LoadTavernAreaTriggers()
@@ -5430,7 +5375,6 @@ void ObjectMgr::LoadTavernAreaTriggers()
if (!result)
{
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded 0 tavern triggers. DB table `areatrigger_tavern` is empty.");
-
return;
}
@@ -5455,7 +5399,6 @@ void ObjectMgr::LoadTavernAreaTriggers()
} while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u tavern triggers in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
void ObjectMgr::LoadAreaTriggerScripts()
@@ -5468,7 +5411,6 @@ void ObjectMgr::LoadAreaTriggerScripts()
if (!result)
{
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded 0 areatrigger scripts. DB table `areatrigger_scripts` is empty.");
-
return;
}
@@ -5493,7 +5435,6 @@ void ObjectMgr::LoadAreaTriggerScripts()
} while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u areatrigger scripts in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
uint32 ObjectMgr::GetNearestTaxiNode(float x, float y, float z, uint32 mapid, uint32 team)
@@ -5612,7 +5553,6 @@ void ObjectMgr::LoadGraveyardZones()
if (!result)
{
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded 0 graveyard-zone links. DB table `game_graveyard_zone` is empty.");
-
return;
}
@@ -5659,7 +5599,6 @@ void ObjectMgr::LoadGraveyardZones()
} while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u graveyard-zone links in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
WorldSafeLocsEntry const* ObjectMgr::GetDefaultGraveYard(uint32 team)
@@ -5905,7 +5844,6 @@ void ObjectMgr::LoadAreaTriggerTeleports()
if (!result)
{
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded 0 area trigger teleport definitions. DB table `areatrigger_teleport` is empty.");
-
return;
}
@@ -5952,7 +5890,6 @@ void ObjectMgr::LoadAreaTriggerTeleports()
} while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u area trigger teleport definitions in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
void ObjectMgr::LoadAccessRequirements()
@@ -5966,7 +5903,6 @@ void ObjectMgr::LoadAccessRequirements()
if (!result)
{
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded 0 access requirement definitions. DB table `access_requirement` is empty.");
-
return;
}
@@ -6044,7 +5980,6 @@ void ObjectMgr::LoadAccessRequirements()
} while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u access requirement definitions in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
/*
@@ -6269,7 +6204,6 @@ void ObjectMgr::LoadGameObjectLocales()
} while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %lu gameobject locale strings in %u ms", (unsigned long)_gameObjectLocaleStore.size(), GetMSTimeDiffToNow(oldMSTime));
-
}
inline void CheckGOLockId(GameObjectTemplate const* goInfo, uint32 dataN, uint32 N)
@@ -6346,7 +6280,6 @@ void ObjectMgr::LoadGameObjectTemplate()
if (!result)
{
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded 0 gameobject definitions. DB table `gameobject_template` is empty.");
-
return;
}
@@ -6516,7 +6449,6 @@ void ObjectMgr::LoadGameObjectTemplate()
while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u game object templates in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
void ObjectMgr::LoadExplorationBaseXP()
@@ -6545,7 +6477,6 @@ void ObjectMgr::LoadExplorationBaseXP()
while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u BaseXP definitions in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
uint32 ObjectMgr::GetBaseXP(uint8 level)
@@ -6569,7 +6500,6 @@ void ObjectMgr::LoadPetNames()
if (!result)
{
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded 0 pet name parts. DB table `pet_name_generation` is empty!");
-
return;
}
@@ -6590,7 +6520,6 @@ void ObjectMgr::LoadPetNames()
while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u pet name parts in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
void ObjectMgr::LoadPetNumber()
@@ -6605,7 +6534,6 @@ void ObjectMgr::LoadPetNumber()
}
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded the max pet number: %d in %u ms", _hiPetNumber-1, GetMSTimeDiffToNow(oldMSTime));
-
}
std::string ObjectMgr::GeneratePetName(uint32 entry)
@@ -6639,7 +6567,6 @@ void ObjectMgr::LoadCorpses()
if (!result)
{
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded 0 corpses. DB table `corpse` is empty.");
-
return;
}
@@ -6668,7 +6595,6 @@ void ObjectMgr::LoadCorpses()
while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u corpses in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
void ObjectMgr::LoadReputationRewardRate()
@@ -6731,7 +6657,6 @@ void ObjectMgr::LoadReputationRewardRate()
while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u reputation_reward_rate in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
void ObjectMgr::LoadReputationOnKill()
@@ -6805,7 +6730,6 @@ void ObjectMgr::LoadReputationOnKill()
} while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u creature award reputation definitions in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
void ObjectMgr::LoadReputationSpilloverTemplate()
@@ -6820,7 +6744,6 @@ void ObjectMgr::LoadReputationSpilloverTemplate()
if (!result)
{
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded `reputation_spillover_template`, table is empty.");
-
return;
}
@@ -6917,7 +6840,6 @@ void ObjectMgr::LoadReputationSpilloverTemplate()
while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u reputation_spillover_template in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
void ObjectMgr::LoadPointsOfInterest()
@@ -6964,7 +6886,6 @@ void ObjectMgr::LoadPointsOfInterest()
} while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u Points of Interest definitions in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
void ObjectMgr::LoadQuestPOI()
@@ -7036,7 +6957,6 @@ void ObjectMgr::LoadQuestPOI()
} while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u quest POI definitions in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
void ObjectMgr::LoadNPCSpellClickSpells()
@@ -7104,7 +7024,6 @@ void ObjectMgr::LoadNPCSpellClickSpells()
}
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u spellclick definitions in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
void ObjectMgr::DeleteCreatureData(uint32 guid)
@@ -7183,7 +7102,6 @@ void ObjectMgr::LoadQuestRelationsHelper(QuestRelations& map, std::string table,
} while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u quest relations from %s in %u ms", count, table.c_str(), GetMSTimeDiffToNow(oldMSTime));
-
}
void ObjectMgr::LoadGameobjectQuestRelations()
@@ -7253,7 +7171,6 @@ void ObjectMgr::LoadReservedPlayersNames()
if (!result)
{
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded 0 reserved player names. DB table `reserved_name` is empty!");
-
return;
}
@@ -7280,7 +7197,6 @@ void ObjectMgr::LoadReservedPlayersNames()
while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u reserved player names in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
bool ObjectMgr::IsReservedName(const std::string& name) const
@@ -7434,7 +7350,6 @@ void ObjectMgr::LoadGameObjectForQuests()
if (sObjectMgr->GetGameObjectTemplates()->empty())
{
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded 0 GameObjects for quests");
-
return;
}
@@ -7483,7 +7398,6 @@ void ObjectMgr::LoadGameObjectForQuests()
}
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u GameObjects for quests in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
bool ObjectMgr::LoadTrinityStrings(const char* table, int32 min_value, int32 max_value)
@@ -7575,7 +7489,6 @@ bool ObjectMgr::LoadTrinityStrings(const char* table, int32 min_value, int32 max
else
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u string templates from %s in %u ms", count, table, GetMSTimeDiffToNow(oldMSTime));
-
return true;
}
@@ -7632,7 +7545,6 @@ void ObjectMgr::LoadFishingBaseSkillLevel()
while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u areas for fishing base skill level in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
bool ObjectMgr::CheckDeclinedNames(std::wstring w_ownname, DeclinedName const& names)
@@ -7758,7 +7670,6 @@ void ObjectMgr::LoadGameTele()
while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u GameTeleports in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
GameTele const* ObjectMgr::GetGameTele(const std::string& name) const
@@ -7903,7 +7814,6 @@ void ObjectMgr::LoadMailLevelRewards()
while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u level dependent mail rewards in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
void ObjectMgr::AddSpellToTrainer(uint32 entry, uint32 spell, uint32 spellCost, uint32 reqSkill, uint32 reqSkillValue, uint32 reqLevel)
@@ -8024,7 +7934,6 @@ void ObjectMgr::LoadTrainerSpell()
while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %d Trainers in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
int ObjectMgr::LoadReferenceVendor(int32 vendor, int32 item, std::set<uint32> *skip_vendors)
@@ -8115,7 +8024,6 @@ void ObjectMgr::LoadVendors()
while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %d Vendors in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
void ObjectMgr::LoadGossipMenu()
@@ -8157,7 +8065,6 @@ void ObjectMgr::LoadGossipMenu()
while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u gossip_menu entries in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
void ObjectMgr::LoadGossipMenuItems()
@@ -8221,7 +8128,6 @@ void ObjectMgr::LoadGossipMenuItems()
while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u gossip_menu_option entries in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
void ObjectMgr::AddVendorItem(uint32 entry, uint32 item, int32 maxcount, uint32 incrtime, uint32 extendedCost, bool persist /*= true*/)
@@ -8400,7 +8306,6 @@ void ObjectMgr::LoadScriptNames()
std::sort(_scriptNamesStore.begin(), _scriptNamesStore.end());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %d Script Names in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
uint32 ObjectMgr::GetScriptId(const char *name)
@@ -8504,7 +8409,6 @@ void ObjectMgr::LoadCreatureClassLevelStats()
if (!result)
{
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded 0 creature base stats. DB table `creature_classlevelstats` is empty.");
-
return;
}
@@ -8553,7 +8457,6 @@ void ObjectMgr::LoadCreatureClassLevelStats()
}
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u creature base stats in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
void ObjectMgr::LoadFactionChangeAchievements()
@@ -8590,7 +8493,6 @@ void ObjectMgr::LoadFactionChangeAchievements()
while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u faction change achievement pairs in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
void ObjectMgr::LoadFactionChangeItems()
@@ -8602,7 +8504,6 @@ void ObjectMgr::LoadFactionChangeItems()
if (!result)
{
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded 0 faction change item pairs. DB table `player_factionchange_items` is empty.");
-
return;
}
@@ -8627,7 +8528,6 @@ void ObjectMgr::LoadFactionChangeItems()
while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u faction change item pairs in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
void ObjectMgr::LoadFactionChangeSpells()
@@ -8664,7 +8564,6 @@ void ObjectMgr::LoadFactionChangeSpells()
while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u faction change spell pairs in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
void ObjectMgr::LoadFactionChangeReputations()
@@ -8676,7 +8575,6 @@ void ObjectMgr::LoadFactionChangeReputations()
if (!result)
{
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded 0 faction change reputation pairs. DB table `player_factionchange_reputations` is empty.");
-
return;
}
@@ -8701,7 +8599,6 @@ void ObjectMgr::LoadFactionChangeReputations()
while (result->NextRow());
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u faction change reputation pairs in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-
}
GameObjectTemplate const* ObjectMgr::GetGameObjectTemplate(uint32 entry)