mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
Clarify areatrigger related tables loading errors.
This commit is contained in:
parent
61255a1a8f
commit
68190a9a0c
1 changed files with 37 additions and 36 deletions
|
|
@ -4997,12 +4997,11 @@ void ObjectMgr::LoadQuestAreaTriggers()
|
|||
AreaTriggerEntry const* atEntry = sAreaTriggerStore.LookupEntry(trigger_ID);
|
||||
if (!atEntry)
|
||||
{
|
||||
sLog.outErrorDb("Area trigger (ID:%u) does not exist in `AreaTrigger.dbc`.",trigger_ID);
|
||||
sLog.outErrorDb("Table `areatrigger_involvedrelation` has area trigger (ID: %u) not listed in `AreaTrigger.dbc`.", trigger_ID);
|
||||
continue;
|
||||
}
|
||||
|
||||
Quest const* quest = GetQuestTemplate(quest_ID);
|
||||
|
||||
if (!quest)
|
||||
{
|
||||
sLog.outErrorDb("Table `areatrigger_involvedrelation` has record (id: %u) for not existing quest %u",trigger_ID,quest_ID);
|
||||
|
|
@ -5061,7 +5060,7 @@ void ObjectMgr::LoadTavernAreaTriggers()
|
|||
AreaTriggerEntry const* atEntry = sAreaTriggerStore.LookupEntry(Trigger_ID);
|
||||
if (!atEntry)
|
||||
{
|
||||
sLog.outErrorDb("Area trigger (ID:%u) does not exist in `AreaTrigger.dbc`.",Trigger_ID);
|
||||
sLog.outErrorDb("Table `areatrigger_tavern` has area trigger (ID:%u) not listed in `AreaTrigger.dbc`.", Trigger_ID);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
@ -5106,9 +5105,10 @@ void ObjectMgr::LoadAreaTriggerScripts()
|
|||
AreaTriggerEntry const* atEntry = sAreaTriggerStore.LookupEntry(Trigger_ID);
|
||||
if (!atEntry)
|
||||
{
|
||||
sLog.outErrorDb("Area trigger (ID:%u) does not exist in `AreaTrigger.dbc`.",Trigger_ID);
|
||||
sLog.outErrorDb("Table `areatrigger_scripts` has area trigger (ID:%u) not listed in `AreaTrigger.dbc`.", Trigger_ID);
|
||||
continue;
|
||||
}
|
||||
|
||||
mAreaTriggerScripts[Trigger_ID] = GetScriptId(scriptName);
|
||||
} while( result->NextRow() );
|
||||
|
||||
|
|
@ -5526,7 +5526,7 @@ void ObjectMgr::LoadAreaTriggerTeleports()
|
|||
AreaTriggerEntry const* atEntry = sAreaTriggerStore.LookupEntry(Trigger_ID);
|
||||
if (!atEntry)
|
||||
{
|
||||
sLog.outErrorDb("Area trigger (ID:%u) does not exist in `AreaTrigger.dbc`.",Trigger_ID);
|
||||
sLog.outErrorDb("Table `areatrigger_teleport` has area trigger (ID:%u) not listed in `AreaTrigger.dbc`.", Trigger_ID);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
@ -5535,16 +5535,17 @@ void ObjectMgr::LoadAreaTriggerTeleports()
|
|||
ItemPrototype const *pProto = GetItemPrototype(at.requiredItem);
|
||||
if (!pProto)
|
||||
{
|
||||
sLog.outError("Key item %u does not exist for trigger %u, removing key requirement.", at.requiredItem, Trigger_ID);
|
||||
sLog.outError("Table `areatrigger_teleport` has not existed key item %u for trigger %u, removing key requirement.", at.requiredItem, Trigger_ID);
|
||||
at.requiredItem = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (at.requiredItem2)
|
||||
{
|
||||
ItemPrototype const *pProto = GetItemPrototype(at.requiredItem2);
|
||||
if(!pProto)
|
||||
{
|
||||
sLog.outError("Second item %u not exist for trigger %u, remove key requirement.", at.requiredItem2, Trigger_ID);
|
||||
sLog.outError("Table `areatrigger_teleport` has not existed second key item %u for trigger %u, remove key requirement.", at.requiredItem2, Trigger_ID);
|
||||
at.requiredItem2 = 0;
|
||||
}
|
||||
}
|
||||
|
|
@ -5554,7 +5555,7 @@ void ObjectMgr::LoadAreaTriggerTeleports()
|
|||
ItemPrototype const *pProto = GetItemPrototype(at.heroicKey);
|
||||
if (!pProto)
|
||||
{
|
||||
sLog.outError("Heroic key item %u not exist for trigger %u, remove key requirement.", at.heroicKey, Trigger_ID);
|
||||
sLog.outError("Table `areatrigger_teleport` has not existed heroic key item %u for trigger %u, remove key requirement.", at.heroicKey, Trigger_ID);
|
||||
at.heroicKey = 0;
|
||||
}
|
||||
}
|
||||
|
|
@ -5564,7 +5565,7 @@ void ObjectMgr::LoadAreaTriggerTeleports()
|
|||
ItemPrototype const *pProto = GetItemPrototype(at.heroicKey2);
|
||||
if (!pProto)
|
||||
{
|
||||
sLog.outError("Heroic second key item %u not exist for trigger %u, remove key requirement.", at.heroicKey2, Trigger_ID);
|
||||
sLog.outError("Table `areatrigger_teleport` has not existed heroic second key item %u for trigger %u, remove key requirement.", at.heroicKey2, Trigger_ID);
|
||||
at.heroicKey2 = 0;
|
||||
}
|
||||
}
|
||||
|
|
@ -5574,7 +5575,7 @@ void ObjectMgr::LoadAreaTriggerTeleports()
|
|||
QuestMap::iterator qReqItr = mQuestTemplates.find(at.requiredQuest);
|
||||
if (qReqItr == mQuestTemplates.end())
|
||||
{
|
||||
sLog.outErrorDb("Required Quest %u not exist for trigger %u, remove quest done requirement.",at.requiredQuest,Trigger_ID);
|
||||
sLog.outErrorDb("Table `areatrigger_teleport` has not existed required quest %u for trigger %u, remove quest done requirement.",at.requiredQuest,Trigger_ID);
|
||||
at.requiredQuest = 0;
|
||||
}
|
||||
}
|
||||
|
|
@ -5584,7 +5585,7 @@ void ObjectMgr::LoadAreaTriggerTeleports()
|
|||
QuestMap::iterator qReqItr = mQuestTemplates.find(at.requiredQuestHeroic);
|
||||
if (qReqItr == mQuestTemplates.end())
|
||||
{
|
||||
sLog.outErrorDb("Required Quest %u not exist for trigger %u, remove quest done requirement.",at.requiredQuestHeroic,Trigger_ID);
|
||||
sLog.outErrorDb("Table `areatrigger_teleport` has not existed required heroic quest %u for trigger %u, remove quest done requirement.",at.requiredQuestHeroic,Trigger_ID);
|
||||
at.requiredQuestHeroic = 0;
|
||||
}
|
||||
}
|
||||
|
|
@ -5592,13 +5593,13 @@ void ObjectMgr::LoadAreaTriggerTeleports()
|
|||
MapEntry const* mapEntry = sMapStore.LookupEntry(at.target_mapId);
|
||||
if (!mapEntry)
|
||||
{
|
||||
sLog.outErrorDb("Area trigger (ID:%u) target map (ID: %u) does not exist in `Map.dbc`.",Trigger_ID,at.target_mapId);
|
||||
sLog.outErrorDb("Table `areatrigger_teleport` has not existed target map (ID: %u) for Area trigger (ID:%u).", at.target_mapId, Trigger_ID);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (at.target_X==0 && at.target_Y==0 && at.target_Z==0)
|
||||
{
|
||||
sLog.outErrorDb("Area trigger (ID:%u) target coordinates not provided.",Trigger_ID);
|
||||
sLog.outErrorDb("Table `areatrigger_teleport` has area trigger (ID:%u) without target coordinates.",Trigger_ID);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue