Cleanup of logging - removed a few duplicit functions from olden times, fixed a typo.
--HG-- branch : trunk
This commit is contained in:
@@ -259,7 +259,7 @@ bool GOHello_go_ethereum_prison(Player *pPlayer, GameObject *pGO)
|
||||
if (Spell)
|
||||
pCreature->CastSpell(pPlayer, Spell, false);
|
||||
else
|
||||
error_log("TSCR: go_ethereum_prison summoned Creature (entry %u) but faction (%u) are not expected by script.", pCreature->GetEntry(), pCreature->getFaction());
|
||||
sLog.outError("TSCR: go_ethereum_prison summoned Creature (entry %u) but faction (%u) are not expected by script.", pCreature->GetEntry(), pCreature->getFaction());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -139,7 +139,7 @@ bool ItemUse_item_flying_machine(Player* pPlayer, Item* pItem, SpellCastTargets
|
||||
if (pPlayer->GetBaseSkillValue(SKILL_RIDING) == 300)
|
||||
return false;
|
||||
|
||||
debug_log("TSCR: Player attempt to use item %u, but did not meet riding requirement",itemId);
|
||||
sLog.outDebug("TSCR: Player attempt to use item %u, but did not meet riding requirement",itemId);
|
||||
pPlayer->SendEquipError(EQUIP_ERR_ERR_CANT_EQUIP_SKILL,pItem,NULL);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -238,7 +238,7 @@ bool EquippedOk(Player* pPlayer, uint32 spellId)
|
||||
if (pItem->GetProto()->RequiredSpell == reqSpell)
|
||||
{
|
||||
//player has item equipped that require specialty. Not allow to unlearn, player has to unequip first
|
||||
debug_log("TSCR: player attempt to unlearn spell %u, but item %u is equipped.",reqSpell,pItem->GetProto()->ItemId);
|
||||
sLog.outDebug("TSCR: player attempt to unlearn spell %u, but item %u is equipped.",reqSpell,pItem->GetProto()->ItemId);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -123,7 +123,7 @@ struct npc_air_force_botsAI : public ScriptedAI
|
||||
}
|
||||
|
||||
if (!m_pSpawnAssoc)
|
||||
error_db_log("TCSR: Creature template entry %u has ScriptName npc_air_force_bots, but it's not handled by that script", pCreature->GetEntry());
|
||||
sLog.outErrorDb("TCSR: Creature template entry %u has ScriptName npc_air_force_bots, but it's not handled by that script", pCreature->GetEntry());
|
||||
else
|
||||
{
|
||||
CreatureInfo const* spawnedTemplate = GetCreatureTemplateStore(m_pSpawnAssoc->m_uiSpawnedCreatureEntry);
|
||||
@@ -131,7 +131,7 @@ struct npc_air_force_botsAI : public ScriptedAI
|
||||
if (!spawnedTemplate)
|
||||
{
|
||||
m_pSpawnAssoc = NULL;
|
||||
error_db_log("TCSR: Creature template entry %u does not exist in DB, which is required by npc_air_force_bots", m_pSpawnAssoc->m_uiSpawnedCreatureEntry);
|
||||
sLog.outErrorDb("TCSR: Creature template entry %u does not exist in DB, which is required by npc_air_force_bots", m_pSpawnAssoc->m_uiSpawnedCreatureEntry);
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -150,7 +150,7 @@ struct npc_air_force_botsAI : public ScriptedAI
|
||||
m_uiSpawnedGUID = pSummoned->GetGUID();
|
||||
else
|
||||
{
|
||||
error_db_log("TCSR: npc_air_force_bots: wasn't able to spawn Creature %u", m_pSpawnAssoc->m_uiSpawnedCreatureEntry);
|
||||
sLog.outErrorDb("TCSR: npc_air_force_bots: wasn't able to spawn Creature %u", m_pSpawnAssoc->m_uiSpawnedCreatureEntry);
|
||||
m_pSpawnAssoc = NULL;
|
||||
}
|
||||
|
||||
@@ -787,7 +787,7 @@ void npc_doctorAI::UpdateAI(const uint32 diff)
|
||||
case DOCTOR_ALLIANCE: patientEntry = AllianceSoldierId[rand()%3]; break;
|
||||
case DOCTOR_HORDE: patientEntry = HordeSoldierId[rand()%3]; break;
|
||||
default:
|
||||
error_log("TSCR: Invalid entry for Triage doctor. Please check your database");
|
||||
sLog.outError("TSCR: Invalid entry for Triage doctor. Please check your database");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user