mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-25 03:12:09 +01:00
Merge remote-tracking branch 'origin/master' into 4.3.4
Conflicts: src/server/game/Achievements/AchievementMgr.cpp src/server/game/Events/GameEventMgr.cpp src/server/game/Globals/ObjectMgr.cpp src/server/game/Spells/SpellMgr.cpp src/server/worldserver/worldserver.conf.dist
This commit is contained in:
@@ -251,13 +251,12 @@ void ScriptMgr::Initialize()
|
||||
|
||||
LoadDatabase();
|
||||
|
||||
sLog->outInfo(LOG_FILTER_TSCR, "Loading C++ scripts");
|
||||
sLog->outInfo(LOG_FILTER_SERVER_LOADING, "Loading C++ scripts");
|
||||
|
||||
FillSpellSummary();
|
||||
AddScripts();
|
||||
|
||||
sLog->outInfo(LOG_FILTER_TSCR, ">> Loaded %u C++ scripts in %u ms", GetScriptCount(), GetMSTimeDiffToNow(oldMSTime));
|
||||
|
||||
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u C++ scripts in %u ms", GetScriptCount(), GetMSTimeDiffToNow(oldMSTime));
|
||||
}
|
||||
|
||||
void ScriptMgr::Unload()
|
||||
|
||||
@@ -164,7 +164,7 @@ class ScriptObject
|
||||
protected:
|
||||
|
||||
ScriptObject(const char* name)
|
||||
: _name(std::string(name))
|
||||
: _name(name)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -25,10 +25,10 @@ ScriptPointVector const SystemMgr::_empty;
|
||||
|
||||
void SystemMgr::LoadScriptTexts()
|
||||
{
|
||||
sLog->outInfo(LOG_FILTER_TSCR, "TSCR: Loading Script Texts...");
|
||||
sLog->outInfo(LOG_FILTER_SERVER_LOADING, "Loading Script Texts...");
|
||||
LoadTrinityStrings("script_texts", TEXT_SOURCE_RANGE, 1+(TEXT_SOURCE_RANGE*2));
|
||||
|
||||
sLog->outInfo(LOG_FILTER_TSCR, "TSCR: Loading Script Texts additional data...");
|
||||
sLog->outInfo(LOG_FILTER_SERVER_LOADING, "Loading Script Texts additional data...");
|
||||
uint32 oldMSTime = getMSTime();
|
||||
|
||||
// 0 1 2 3
|
||||
@@ -36,8 +36,7 @@ void SystemMgr::LoadScriptTexts()
|
||||
|
||||
if (!result)
|
||||
{
|
||||
sLog->outInfo(LOG_FILTER_TSCR, ">> Loaded 0 additional Script Texts data. DB table `script_texts` is empty.");
|
||||
|
||||
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded 0 additional Script Texts data. DB table `script_texts` is empty.");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -83,23 +82,21 @@ void SystemMgr::LoadScriptTexts()
|
||||
}
|
||||
while (result->NextRow());
|
||||
|
||||
sLog->outInfo(LOG_FILTER_TSCR, ">> Loaded %u additional Script Texts data in %u ms", uiCount, GetMSTimeDiffToNow(oldMSTime));
|
||||
|
||||
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u additional Script Texts data in %u ms", uiCount, GetMSTimeDiffToNow(oldMSTime));
|
||||
}
|
||||
|
||||
void SystemMgr::LoadScriptTextsCustom()
|
||||
{
|
||||
sLog->outInfo(LOG_FILTER_TSCR, "TSCR: Loading Custom Texts...");
|
||||
sLog->outInfo(LOG_FILTER_SERVER_LOADING, "Loading Custom Texts...");
|
||||
LoadTrinityStrings("custom_texts", TEXT_SOURCE_RANGE*2, 1+(TEXT_SOURCE_RANGE*3));
|
||||
|
||||
sLog->outInfo(LOG_FILTER_TSCR, "TSCR: Loading Custom Texts additional data...");
|
||||
sLog->outInfo(LOG_FILTER_SERVER_LOADING, "Loading Custom Texts additional data...");
|
||||
|
||||
QueryResult result = WorldDatabase.Query("SELECT entry, sound, type, language, emote FROM custom_texts");
|
||||
|
||||
if (!result)
|
||||
{
|
||||
sLog->outInfo(LOG_FILTER_TSCR, ">> Loaded 0 additional Custom Texts data. DB table `custom_texts` is empty.");
|
||||
|
||||
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded 0 additional Custom Texts data. DB table `custom_texts` is empty.");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -145,8 +142,7 @@ void SystemMgr::LoadScriptTextsCustom()
|
||||
}
|
||||
while (result->NextRow());
|
||||
|
||||
sLog->outInfo(LOG_FILTER_TSCR, ">> Loaded %u additional Custom Texts data.", uiCount);
|
||||
|
||||
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u additional Custom Texts data.", uiCount);
|
||||
}
|
||||
|
||||
void SystemMgr::LoadScriptWaypoints()
|
||||
@@ -163,15 +159,14 @@ void SystemMgr::LoadScriptWaypoints()
|
||||
if (result)
|
||||
uiCreatureCount = result->GetRowCount();
|
||||
|
||||
sLog->outInfo(LOG_FILTER_TSCR, "TSCR: Loading Script Waypoints for " UI64FMTD " creature(s)...", uiCreatureCount);
|
||||
sLog->outInfo(LOG_FILTER_SERVER_LOADING, "Loading Script Waypoints for " UI64FMTD " creature(s)...", uiCreatureCount);
|
||||
|
||||
// 0 1 2 3 4 5
|
||||
result = WorldDatabase.Query("SELECT entry, pointid, location_x, location_y, location_z, waittime FROM script_waypoint ORDER BY pointid");
|
||||
|
||||
if (!result)
|
||||
{
|
||||
sLog->outInfo(LOG_FILTER_TSCR, ">> Loaded 0 Script Waypoints. DB table `script_waypoint` is empty.");
|
||||
|
||||
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded 0 Script Waypoints. DB table `script_waypoint` is empty.");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -206,6 +201,5 @@ void SystemMgr::LoadScriptWaypoints()
|
||||
}
|
||||
while (result->NextRow());
|
||||
|
||||
sLog->outInfo(LOG_FILTER_TSCR, ">> Loaded %u Script Waypoint nodes in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
|
||||
|
||||
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u Script Waypoint nodes in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user