diff options
| author | Azazel <azazel.kon@gmail.com> | 2011-02-17 19:47:08 +0600 |
|---|---|---|
| committer | Azazel <azazel.kon@gmail.com> | 2011-02-17 19:47:08 +0600 |
| commit | 4dc1eaa47cdeb992aa51db8ad019cff9ff595fe8 (patch) | |
| tree | 44f7cbcd60bf558d4c290dcaf759edd511af29df /src/server/game/AI/ScriptedAI | |
| parent | aaa9b069d9982355d8371fdaad45fd7fd560a192 (diff) | |
Core/Misc: improve error log messages by adding more info. Specially for Aokromes.
Diffstat (limited to 'src/server/game/AI/ScriptedAI')
| -rw-r--r-- | src/server/game/AI/ScriptedAI/ScriptedEscortAI.cpp | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/server/game/AI/ScriptedAI/ScriptedEscortAI.cpp b/src/server/game/AI/ScriptedAI/ScriptedEscortAI.cpp index c41ce1881d8..fb97feb8ab4 100644 --- a/src/server/game/AI/ScriptedAI/ScriptedEscortAI.cpp +++ b/src/server/game/AI/ScriptedAI/ScriptedEscortAI.cpp @@ -433,29 +433,27 @@ void npc_escortAI::Start(bool bIsActiveAttacker, bool bRun, uint64 uiPlayerGUID, { if (me->getVictim()) { - sLog->outError("TSCR ERROR: EscortAI attempt to Start while in combat. Scriptname: %s, creature entry: %u", me->GetScriptName().c_str(), me->GetEntry()); + sLog->outError("TSCR ERROR: EscortAI (script: %s, creature entry: %u) attempts to Start while in combat", me->GetScriptName().c_str(), me->GetEntry()); return; } if (HasEscortState(STATE_ESCORT_ESCORTING)) { - sLog->outError("TSCR: EscortAI attempt to Start while already escorting."); + sLog->outError("TSCR: EscortAI (script: %s, creature entry: %u) attempts to Start while already escorting", me->GetScriptName().c_str(), me->GetEntry()); return; } if (!ScriptWP) // sd2 never adds wp in script, but tc does { - - if (!WaypointList.empty()) - WaypointList.clear(); - - FillPointMovementListForCreature(); - + if (!WaypointList.empty()) + WaypointList.clear(); + FillPointMovementListForCreature(); } if (WaypointList.empty()) { - sLog->outErrorDb("TSCR: EscortAI Start with 0 waypoints (possible missing entry in script_waypoint. Quest: %u).", pQuest ? pQuest->GetQuestId() : 0); + sLog->outErrorDb("TSCR: EscortAI (script: %s, creature entry: %u) starts with 0 waypoints (possible missing entry in script_waypoint. Quest: %u).", + me->GetScriptName().c_str(), me->GetEntry(), pQuest ? pQuest->GetQuestId() : 0); return; } |
