Cleanup of logging - removed a few duplicit functions from olden times, fixed a typo.
--HG-- branch : trunk
This commit is contained in:
1 parent
06ef6e2553
commit
c9b20170a3
55 files changed
+216
-296
No files matched your search
@@ -214,7 +214,7 @@ struct npc_grimstoneAI : public npc_escortAI
|
||||
if (pInstance)
|
||||
{
|
||||
pInstance->SetData(TYPE_RING_OF_LAW,DONE);
|
||||
debug_log("TSCR: npc_grimstone: event reached end and set complete.");
|
||||
sLog.outDebug("TSCR: npc_grimstone: event reached end and set complete.");
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -207,7 +207,7 @@ struct instance_blackrock_depths : public ScriptedInstance
|
||||
|
||||
void SetData64(uint32 type, uint64 data)
|
||||
{
|
||||
debug_log("TSCR: Instance Blackrock Depths: SetData64 update (Type: %u Data %u)", type, data);
|
||||
sLog.outDebug("TSCR: Instance Blackrock Depths: SetData64 update (Type: %u Data %u)", type, data);
|
||||
|
||||
switch(type)
|
||||
{
|
||||
@@ -223,7 +223,7 @@ struct instance_blackrock_depths : public ScriptedInstance
|
||||
|
||||
void SetData(uint32 type, uint32 data)
|
||||
{
|
||||
debug_log("TSCR: Instance Blackrock Depths: SetData update (Type: %u Data %u)", type, data);
|
||||
sLog.outDebug("TSCR: Instance Blackrock Depths: SetData update (Type: %u Data %u)", type, data);
|
||||
|
||||
switch(type)
|
||||
{
|
||||
|
||||
@@ -312,7 +312,7 @@ struct boss_victor_nefariusAI : public ScriptedAI
|
||||
Nefarian->setFaction(103);
|
||||
NefarianGUID = Nefarian->GetGUID();
|
||||
}
|
||||
else error_log("TSCR: Blackwing Lair: Unable to spawn nefarian properly.");
|
||||
else sLog.outError("TSCR: Blackwing Lair: Unable to spawn nefarian properly.");
|
||||
}
|
||||
|
||||
AddSpawnTimer = 4000;
|
||||
|
||||
@@ -534,7 +534,7 @@ CreatureAI* GetAI_water_elemental(Creature* pCreature)
|
||||
// CONVERT TO ACID
|
||||
CreatureAI* GetAI_shadow_of_aran(Creature* pCreature)
|
||||
{
|
||||
outstring_log("TSCR: Convert simpleAI script for Creature Entry %u to ACID", pCreature->GetEntry());
|
||||
sLog.outString("TSCR: Convert simpleAI script for Creature Entry %u to ACID", pCreature->GetEntry());
|
||||
SimpleAI* ai = new SimpleAI (pCreature);
|
||||
|
||||
ai->Spell[0].Enabled = true;
|
||||
|
||||
@@ -1154,7 +1154,7 @@ void boss_julianneAI::DamageTaken(Unit* /*done_by*/, uint32 &damage)
|
||||
|
||||
if (Phase == PHASE_ROMULO)
|
||||
{
|
||||
error_log("TSCR: boss_julianneAI: cannot take damage in PHASE_ROMULO, why was i here?");
|
||||
sLog.outError("TSCR: boss_julianneAI: cannot take damage in PHASE_ROMULO, why was i here?");
|
||||
damage = 0;
|
||||
return;
|
||||
}
|
||||
@@ -1188,7 +1188,7 @@ void boss_julianneAI::DamageTaken(Unit* /*done_by*/, uint32 &damage)
|
||||
return;
|
||||
}
|
||||
}
|
||||
error_log("TSCR: boss_julianneAI: DamageTaken reach end of code, that should not happen.");
|
||||
sLog.outError("TSCR: boss_julianneAI: DamageTaken reach end of code, that should not happen.");
|
||||
}
|
||||
|
||||
void boss_romuloAI::DamageTaken(Unit* /*done_by*/, uint32 &damage)
|
||||
@@ -1242,7 +1242,7 @@ void boss_romuloAI::DamageTaken(Unit* /*done_by*/, uint32 &damage)
|
||||
}
|
||||
}
|
||||
|
||||
error_log("TSCR: boss_romuloAI: DamageTaken reach end of code, that should not happen.");
|
||||
sLog.outError("TSCR: boss_romuloAI: DamageTaken reach end of code, that should not happen.");
|
||||
}
|
||||
|
||||
void boss_julianneAI::UpdateAI(const uint32 diff)
|
||||
|
||||
@@ -220,7 +220,7 @@ struct npc_barnesAI : public npc_escortAI
|
||||
|
||||
void PrepareEncounter()
|
||||
{
|
||||
debug_log("TSCR: Barnes Opera Event - Introduction complete - preparing encounter %d", m_uiEventId);
|
||||
sLog.outDebug("TSCR: Barnes Opera Event - Introduction complete - preparing encounter %d", m_uiEventId);
|
||||
uint8 index = 0;
|
||||
uint8 count = 0;
|
||||
|
||||
@@ -371,17 +371,17 @@ bool GossipSelect_npc_barnes(Player* pPlayer, Creature* pCreature, uint32 /*uiSe
|
||||
case GOSSIP_ACTION_INFO_DEF+3:
|
||||
pPlayer->CLOSE_GOSSIP_MENU();
|
||||
pBarnesAI->m_uiEventId = EVENT_OZ;
|
||||
outstring_log("TSCR: player (GUID %i) manually set Opera event to EVENT_OZ",pPlayer->GetGUID());
|
||||
sLog.outString("TSCR: player (GUID %i) manually set Opera event to EVENT_OZ",pPlayer->GetGUID());
|
||||
break;
|
||||
case GOSSIP_ACTION_INFO_DEF+4:
|
||||
pPlayer->CLOSE_GOSSIP_MENU();
|
||||
pBarnesAI->m_uiEventId = EVENT_HOOD;
|
||||
outstring_log("TSCR: player (GUID %i) manually set Opera event to EVENT_HOOD",pPlayer->GetGUID());
|
||||
sLog.outString("TSCR: player (GUID %i) manually set Opera event to EVENT_HOOD",pPlayer->GetGUID());
|
||||
break;
|
||||
case GOSSIP_ACTION_INFO_DEF+5:
|
||||
pPlayer->CLOSE_GOSSIP_MENU();
|
||||
pBarnesAI->m_uiEventId = EVENT_RAJ;
|
||||
outstring_log("TSCR: player (GUID %i) manually set Opera event to EVENT_RAJ",pPlayer->GetGUID());
|
||||
sLog.outString("TSCR: player (GUID %i) manually set Opera event to EVENT_RAJ",pPlayer->GetGUID());
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -48,6 +48,6 @@ enum OperaEvents
|
||||
EVENT_RAJ = 3
|
||||
};
|
||||
|
||||
#define ERROR_INST_DATA(a) error_log("TSCR: Instance Data for Karazhan not set properly. Encounter for Creature Entry %u may not work properly.", a->GetEntry());
|
||||
#define ERROR_INST_DATA(a) sLog.outError("TSCR: Instance Data for Karazhan not set properly. Encounter for Creature Entry %u may not work properly.", a->GetEntry());
|
||||
#endif
|
||||
|
||||
@@ -63,7 +63,7 @@ struct boss_selin_fireheartAI : public ScriptedAI
|
||||
for (uint8 i = 0; i < size; ++i)
|
||||
{
|
||||
uint64 guid = pInstance->GetData64(DATA_FEL_CRYSTAL);
|
||||
debug_log("TSCR: Selin: Adding Fel Crystal %u to list", guid);
|
||||
sLog.outDebug("TSCR: Selin: Adding Fel Crystal %u to list", guid);
|
||||
Crystals.push_back(guid);
|
||||
}
|
||||
}
|
||||
@@ -108,7 +108,7 @@ struct boss_selin_fireheartAI : public ScriptedAI
|
||||
// Small door opened after event are expected to be closed by default
|
||||
// Set Inst data for encounter
|
||||
pInstance->SetData(DATA_SELIN_EVENT, NOT_STARTED);
|
||||
} else error_log(ERROR_INST_DATA);
|
||||
} else sLog.outError(ERROR_INST_DATA);
|
||||
|
||||
DrainLifeTimer = 3000 + rand()%4000;
|
||||
DrainManaTimer = DrainLifeTimer + 5000;
|
||||
@@ -208,7 +208,7 @@ struct boss_selin_fireheartAI : public ScriptedAI
|
||||
else
|
||||
{
|
||||
// Make an error message in case something weird happened here
|
||||
error_log("TSCR: Selin Fireheart unable to drain crystal as the crystal is either dead or despawned");
|
||||
sLog.outError("TSCR: Selin Fireheart unable to drain crystal as the crystal is either dead or despawned");
|
||||
DrainingCrystal = false;
|
||||
}
|
||||
}
|
||||
@@ -340,7 +340,7 @@ struct mob_fel_crystalAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
}
|
||||
} else error_log(ERROR_INST_DATA);
|
||||
} else sLog.outError(ERROR_INST_DATA);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -169,7 +169,7 @@ struct instance_magisters_terrace : public ScriptedInstance
|
||||
{
|
||||
if (FelCrystals.empty())
|
||||
{
|
||||
error_log("TSCR: Magisters Terrace: No Fel Crystals loaded in Inst Data");
|
||||
sLog.outError("TSCR: Magisters Terrace: No Fel Crystals loaded in Inst Data");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -199,7 +199,7 @@ void npc_unworthy_initiateAI::UpdateAI(const uint32 diff)
|
||||
anchorGUID = anchor->GetGUID();
|
||||
}
|
||||
else
|
||||
error_log("npc_unworthy_initiateAI: unable to find anchor!");
|
||||
sLog.outError("npc_unworthy_initiateAI: unable to find anchor!");
|
||||
|
||||
float dist = 99.0f;
|
||||
GameObject *prison = NULL;
|
||||
@@ -219,7 +219,7 @@ void npc_unworthy_initiateAI::UpdateAI(const uint32 diff)
|
||||
if (prison)
|
||||
prison->ResetDoorOrButton();
|
||||
else
|
||||
error_log("npc_unworthy_initiateAI: unable to find prison!");
|
||||
sLog.outError("npc_unworthy_initiateAI: unable to find prison!");
|
||||
}
|
||||
return;
|
||||
case PHASE_TO_EQUIP:
|
||||
@@ -230,7 +230,7 @@ void npc_unworthy_initiateAI::UpdateAI(const uint32 diff)
|
||||
else
|
||||
{
|
||||
me->GetMotionMaster()->MovePoint(1, anchorX, anchorY, me->GetPositionZ());
|
||||
//debug_log("npc_unworthy_initiateAI: move to %f %f %f", anchorX, anchorY, me->GetPositionZ());
|
||||
//sLog.outDebug("npc_unworthy_initiateAI: move to %f %f %f", anchorX, anchorY, me->GetPositionZ());
|
||||
phase = PHASE_EQUIPING;
|
||||
wait_timer = 0;
|
||||
}
|
||||
@@ -989,9 +989,9 @@ bool GOHello_go_inconspicuous_mine_car(Player* pPlayer, GameObject* /*pGO*/)
|
||||
{
|
||||
car->AI()->SetGUID(miner->GetGUID());
|
||||
CAST_AI(npc_scarlet_minerAI, miner->AI())->InitCartQuest(pPlayer);
|
||||
} else error_log("TSCR: GOHello_go_inconspicuous_mine_car vehicle entry is not correct.");
|
||||
} else error_log("TSCR: GOHello_go_inconspicuous_mine_car player is not on the vehicle.");
|
||||
} else error_log("TSCR: GOHello_go_inconspicuous_mine_car Scarlet Miner cant be found by script.");
|
||||
} else sLog.outError("TSCR: GOHello_go_inconspicuous_mine_car vehicle entry is not correct.");
|
||||
} else sLog.outError("TSCR: GOHello_go_inconspicuous_mine_car player is not on the vehicle.");
|
||||
} else sLog.outError("TSCR: GOHello_go_inconspicuous_mine_car Scarlet Miner cant be found by script.");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -112,7 +112,7 @@ struct instance_stratholme : public ScriptedInstance
|
||||
return true;
|
||||
}
|
||||
|
||||
debug_log("TSCR: Instance Stratholme: Cannot open slaugther square yet.");
|
||||
sLog.outDebug("TSCR: Instance Stratholme: Cannot open slaugther square yet.");
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -208,7 +208,7 @@ struct instance_stratholme : public ScriptedInstance
|
||||
break;
|
||||
Encounter[0] = data;
|
||||
BaronRun_Timer = 2700000;
|
||||
debug_log("TSCR: Instance Stratholme: Baron run in progress.");
|
||||
sLog.outDebug("TSCR: Instance Stratholme: Baron run in progress.");
|
||||
break;
|
||||
case FAIL:
|
||||
//may add code to remove aura from players, but in theory the time should be up already and removed.
|
||||
@@ -266,10 +266,10 @@ struct instance_stratholme : public ScriptedInstance
|
||||
//UpdateGoState(ziggurat4GUID,0,true);
|
||||
if (Creature* pBaron = instance->GetCreature(baronGUID))
|
||||
pBaron->SummonCreature(C_RAMSTEIN,4032.84,-3390.24,119.73,4.71,TEMPSUMMON_TIMED_OR_DEAD_DESPAWN,1800000);
|
||||
debug_log("TSCR: Instance Stratholme: Ramstein spawned.");
|
||||
sLog.outDebug("TSCR: Instance Stratholme: Ramstein spawned.");
|
||||
}
|
||||
else
|
||||
debug_log("TSCR: Instance Stratholme: %u Abomnation left to kill.",count);
|
||||
sLog.outDebug("TSCR: Instance Stratholme: %u Abomnation left to kill.",count);
|
||||
}
|
||||
|
||||
if (data == NOT_STARTED)
|
||||
@@ -278,7 +278,7 @@ struct instance_stratholme : public ScriptedInstance
|
||||
if (data == DONE)
|
||||
{
|
||||
SlaugtherSquare_Timer = 300000;
|
||||
debug_log("TSCR: Instance Stratholme: Slaugther event will continue in 5 minutes.");
|
||||
sLog.outDebug("TSCR: Instance Stratholme: Slaugther event will continue in 5 minutes.");
|
||||
}
|
||||
Encounter[4] = data;
|
||||
break;
|
||||
@@ -419,7 +419,7 @@ struct instance_stratholme : public ScriptedInstance
|
||||
if (GetData(TYPE_BARON_RUN) != DONE)
|
||||
SetData(TYPE_BARON_RUN, FAIL);
|
||||
BaronRun_Timer = 0;
|
||||
debug_log("TSCR: Instance Stratholme: Baron run event reached end. Event has state %u.",GetData(TYPE_BARON_RUN));
|
||||
sLog.outDebug("TSCR: Instance Stratholme: Baron run event reached end. Event has state %u.",GetData(TYPE_BARON_RUN));
|
||||
} else BaronRun_Timer -= diff;
|
||||
}
|
||||
|
||||
@@ -434,7 +434,7 @@ struct instance_stratholme : public ScriptedInstance
|
||||
|
||||
HandleGameObject(ziggurat4GUID, true);
|
||||
HandleGameObject(ziggurat5GUID, true);
|
||||
debug_log("TSCR: Instance Stratholme: Black guard sentries spawned. Opening gates to baron.");
|
||||
sLog.outDebug("TSCR: Instance Stratholme: Black guard sentries spawned. Opening gates to baron.");
|
||||
}
|
||||
SlaugtherSquare_Timer = 0;
|
||||
} else SlaugtherSquare_Timer -= diff;
|
||||
|
||||
@@ -143,7 +143,7 @@ struct boss_brutallusAI : public ScriptedAI
|
||||
{
|
||||
if (!Intro || IsIntro)
|
||||
return;
|
||||
error_log("Start Intro");
|
||||
sLog.outError("Start Intro");
|
||||
Creature *Madrigosa = Unit::GetCreature(*me, pInstance ? pInstance->GetData64(DATA_MADRIGOSA) : 0);
|
||||
if (Madrigosa)
|
||||
{
|
||||
@@ -158,7 +158,7 @@ struct boss_brutallusAI : public ScriptedAI
|
||||
}else
|
||||
{
|
||||
//Madrigosa not found, end intro
|
||||
error_log("Madrigosa was not found");
|
||||
sLog.outError("Madrigosa was not found");
|
||||
EndIntro();
|
||||
}
|
||||
}
|
||||
@@ -168,7 +168,7 @@ struct boss_brutallusAI : public ScriptedAI
|
||||
me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
|
||||
Intro = false;
|
||||
IsIntro = false;
|
||||
error_log("End Intro");
|
||||
sLog.outError("End Intro");
|
||||
}
|
||||
|
||||
void AttackStart(Unit* pWho)
|
||||
|
||||
@@ -260,7 +260,7 @@ struct boss_kalecgosAI : public ScriptedAI
|
||||
}
|
||||
else
|
||||
{
|
||||
error_log("TSCR: Didn't find Shathrowar. Kalecgos event reseted.");
|
||||
sLog.outError("TSCR: Didn't find Shathrowar. Kalecgos event reseted.");
|
||||
EnterEvadeMode();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -727,7 +727,7 @@ struct boss_kiljaedenAI : public Scripted_NoMovementAI
|
||||
if (pRandomPlayer)
|
||||
DoCast(pRandomPlayer, SPELL_LEGION_LIGHTNING, false);
|
||||
else
|
||||
error_log("try to cast SPELL_LEGION_LIGHTNING on invalid target");
|
||||
sLog.outError("try to cast SPELL_LEGION_LIGHTNING on invalid target");
|
||||
|
||||
Timer[TIMER_LEGION_LIGHTNING] = (Phase == PHASE_SACRIFICE) ? 18000 : 30000; // 18 seconds in PHASE_SACRIFICE
|
||||
Timer[TIMER_SOUL_FLAY] = 2500;
|
||||
@@ -1341,7 +1341,7 @@ struct mob_sinster_reflectionAI : public ScriptedAI
|
||||
DoMeleeAttackIfReady();
|
||||
break;
|
||||
}
|
||||
debug_log("Sinister-Timer");
|
||||
sLog.outDebug("Sinister-Timer");
|
||||
for (uint8 i = 0; i < 3; ++i)
|
||||
uiTimer[i] -= diff;
|
||||
}
|
||||
|
||||
@@ -110,7 +110,7 @@ struct instance_sunwell_plateau : public ScriptedInstance
|
||||
}
|
||||
}
|
||||
|
||||
debug_log("TSCR: Instance Sunwell Plateau: GetPlayerInMap, but PlayerList is empty!");
|
||||
sLog.outDebug("TSCR: Instance Sunwell Plateau: GetPlayerInMap, but PlayerList is empty!");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
@@ -436,7 +436,7 @@ bool GOHello_go_altar_of_the_keepers(Player* pPlayer, GameObject* /*pGo*/)
|
||||
|
||||
//if (altarOfTheKeeperCounter < NUMBER_NEEDED_TO_ACTIVATE)
|
||||
//{
|
||||
//error_log("not enough people yet, altarOfTheKeeperCounter = %d", altarOfTheKeeperCounter);
|
||||
//sLog.outError("not enough people yet, altarOfTheKeeperCounter = %d", altarOfTheKeeperCounter);
|
||||
// return false; // not enough people yet
|
||||
//}
|
||||
/*
|
||||
@@ -446,7 +446,7 @@ bool GOHello_go_altar_of_the_keepers(Player* pPlayer, GameObject* /*pGo*/)
|
||||
for (uint8 x = 0; x < 5; ++x)
|
||||
{
|
||||
pTarget = Unit::GetUnit(*pPlayer, altarOfTheKeeperCount[x]);
|
||||
//error_log("number of people currently activating it: %d", x+1);
|
||||
//sLog.outError("number of people currently activating it: %d", x+1);
|
||||
if (!pTarget)
|
||||
continue;
|
||||
if (pTarget->IsNonMeleeSpellCasted(true))
|
||||
@@ -457,11 +457,11 @@ bool GOHello_go_altar_of_the_keepers(Player* pPlayer, GameObject* /*pGo*/)
|
||||
|
||||
if (count < NUMBER_NEEDED_TO_ACTIVATE)
|
||||
{
|
||||
//error_log("still not enough people");
|
||||
//sLog.outError("still not enough people");
|
||||
return true; // not enough people
|
||||
}
|
||||
*/
|
||||
//error_log ("activating stone keepers");
|
||||
//sLog.outError ("activating stone keepers");
|
||||
pInstance->SetData(NULL,1); // activate the Stone Keepers
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -215,7 +215,7 @@ struct instance_uldaman : public ScriptedInstance
|
||||
|
||||
void SetData (uint32 /*type*/, uint32 data)
|
||||
{
|
||||
//error_log ("SetData: data = %d", data);
|
||||
//sLog.outError ("SetData: data = %d", data);
|
||||
if (data == 0) OpenDoor (altarOfTheKeeperTempleDoor);
|
||||
if (data == 0) OpenDoor (archaedasTempleDoor);
|
||||
if (data == 3) OpenDoor (ancientVaultDoor);
|
||||
|
||||
@@ -242,7 +242,7 @@ struct boss_janalaiAI : public ScriptedAI
|
||||
cell.Visit(pair, cSearcher, *(me->GetMap()));
|
||||
}
|
||||
|
||||
//error_log("Eggs %d at middle", templist.size());
|
||||
//sLog.outError("Eggs %d at middle", templist.size());
|
||||
if (!templist.size())
|
||||
return false;
|
||||
|
||||
@@ -508,7 +508,7 @@ struct mob_amanishi_hatcherAI : public ScriptedAI
|
||||
cell.Visit(pair, cSearcher, *(me->GetMap()));
|
||||
}
|
||||
|
||||
//error_log("Eggs %d at %d", templist.size(), side);
|
||||
//sLog.outError("Eggs %d at %d", templist.size(), side);
|
||||
|
||||
for (std::list<Creature*>::const_iterator i = templist.begin(); i != templist.end() && num > 0; ++i)
|
||||
if ((*i)->GetDisplayId() != 11686)
|
||||
|
||||
@@ -172,7 +172,7 @@ struct instance_zulaman : public ScriptedInstance
|
||||
ss << "S " << BossKilled << " " << ChestLooted << " " << QuestMinute;
|
||||
char* data = new char[ss.str().length()+1];
|
||||
strcpy(data, ss.str().c_str());
|
||||
//error_log("TSCR: Zul'aman saved, %s.", data);
|
||||
//sLog.outError("TSCR: Zul'aman saved, %s.", data);
|
||||
return data;
|
||||
}
|
||||
|
||||
@@ -180,17 +180,17 @@ struct instance_zulaman : public ScriptedInstance
|
||||
{
|
||||
if (!load) return;
|
||||
std::istringstream ss(load);
|
||||
//error_log("TSCR: Zul'aman loaded, %s.", ss.str().c_str());
|
||||
//sLog.outError("TSCR: Zul'aman loaded, %s.", ss.str().c_str());
|
||||
char dataHead; // S
|
||||
uint16 data1, data2, data3;
|
||||
ss >> dataHead >> data1 >> data2 >> data3;
|
||||
//error_log("TSCR: Zul'aman loaded, %d %d %d.", data1, data2, data3);
|
||||
//sLog.outError("TSCR: Zul'aman loaded, %d %d %d.", data1, data2, data3);
|
||||
if (dataHead == 'S')
|
||||
{
|
||||
BossKilled = data1;
|
||||
ChestLooted = data2;
|
||||
QuestMinute = data3;
|
||||
} else error_log("TSCR: Zul'aman: corrupted save data.");
|
||||
} else sLog.outError("TSCR: Zul'aman: corrupted save data.");
|
||||
}
|
||||
|
||||
void SetData(uint32 type, uint32 data)
|
||||
|
||||
@@ -170,7 +170,7 @@ struct boss_arlokkAI : public ScriptedAI
|
||||
MarkedTargetGUID = pMarkedTarget->GetGUID();
|
||||
}
|
||||
else
|
||||
error_log("TSCR: boss_arlokk could not accuire pMarkedTarget.");
|
||||
sLog.outError("TSCR: boss_arlokk could not accuire pMarkedTarget.");
|
||||
|
||||
m_uiMark_Timer = 15000;
|
||||
}
|
||||
|
||||
@@ -105,7 +105,7 @@ bool GossipSelect_npc_jaina_proudmoore(Player* pPlayer, Creature* pCreature, uin
|
||||
break;
|
||||
case GOSSIP_ACTION_INFO_DEF:
|
||||
ai->Debug = !ai->Debug;
|
||||
debug_log("TSCR: HyjalAI - Debug mode has been toggled");
|
||||
sLog.outDebug("TSCR: HyjalAI - Debug mode has been toggled");
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
@@ -175,7 +175,7 @@ bool GossipSelect_npc_thrall(Player* pPlayer, Creature* pCreature, uint32 /*uiSe
|
||||
break;
|
||||
case GOSSIP_ACTION_INFO_DEF:
|
||||
ai->Debug = !ai->Debug;
|
||||
debug_log("TSCR: HyjalAI - Debug mode has been toggled");
|
||||
sLog.outDebug("TSCR: HyjalAI - Debug mode has been toggled");
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -400,7 +400,7 @@ void hyjalAI::Reset()
|
||||
pInstance->DoUpdateWorldState(WORLD_STATE_ENEMYCOUNT, 0);
|
||||
pInstance->SetData(DATA_RESET_TRASH_COUNT, 0);
|
||||
}
|
||||
} else error_log(ERROR_INST_DATA);
|
||||
} else sLog.outError(ERROR_INST_DATA);
|
||||
|
||||
//Visibility
|
||||
DoHide = true;
|
||||
@@ -531,7 +531,7 @@ void hyjalAI::SummonNextWave(Wave wave[18], uint32 Count, float Base[4][3])
|
||||
|
||||
if (!pInstance)
|
||||
{
|
||||
error_log(ERROR_INST_DATA);
|
||||
sLog.outError(ERROR_INST_DATA);
|
||||
return;
|
||||
}
|
||||
InfernalCount = 0;//reset infernal count every new wave
|
||||
@@ -561,7 +561,7 @@ void hyjalAI::SummonNextWave(Wave wave[18], uint32 Count, float Base[4][3])
|
||||
else
|
||||
{
|
||||
NextWaveTimer = 15000;
|
||||
debug_log("TSCR: HyjalAI: debug mode is enabled. Next Wave in 15 seconds");
|
||||
sLog.outDebug("TSCR: HyjalAI: debug mode is enabled. Next Wave in 15 seconds");
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -605,7 +605,7 @@ uint32 hyjalAI::GetInstanceData(uint32 Event)
|
||||
{
|
||||
if (pInstance)
|
||||
return pInstance->GetData(Event);
|
||||
else error_log(ERROR_INST_DATA);
|
||||
else sLog.outError(ERROR_INST_DATA);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -248,7 +248,7 @@ struct instance_mount_hyjal : public ScriptedInstance
|
||||
break;
|
||||
}
|
||||
|
||||
debug_log("TSCR: Instance Hyjal: Instance data updated for event %u (Data=%u)",type,data);
|
||||
sLog.outDebug("TSCR: Instance Hyjal: Instance data updated for event %u (Data=%u)",type,data);
|
||||
|
||||
if (data == DONE)
|
||||
{
|
||||
|
||||
@@ -305,7 +305,7 @@ struct npc_time_riftAI : public ScriptedAI
|
||||
mRiftWaveCount = 0;
|
||||
|
||||
entry = PortalWaves[mWaveId].PortalMob[mRiftWaveCount];
|
||||
debug_log("TSCR: npc_time_rift: summoning wave Creature (Wave %u, Entry %u).",mRiftWaveCount,entry);
|
||||
sLog.outDebug("TSCR: npc_time_rift: summoning wave Creature (Wave %u, Entry %u).",mRiftWaveCount,entry);
|
||||
|
||||
++mRiftWaveCount;
|
||||
|
||||
@@ -330,7 +330,7 @@ struct npc_time_riftAI : public ScriptedAI
|
||||
if (me->IsNonMeleeSpellCasted(false))
|
||||
return;
|
||||
|
||||
debug_log("TSCR: npc_time_rift: not casting anylonger, i need to die.");
|
||||
sLog.outDebug("TSCR: npc_time_rift: not casting anylonger, i need to die.");
|
||||
me->setDeathState(JUST_DIED);
|
||||
|
||||
if (pInstance->GetData(TYPE_RIFT) == IN_PROGRESS)
|
||||
|
||||
@@ -178,7 +178,7 @@ struct instance_dark_portal : public ScriptedInstance
|
||||
{
|
||||
if (data == IN_PROGRESS)
|
||||
{
|
||||
debug_log("TSCR: Instance Dark Portal: Starting event.");
|
||||
sLog.outDebug("TSCR: Instance Dark Portal: Starting event.");
|
||||
InitWorldState();
|
||||
m_auiEncounter[1] = IN_PROGRESS;
|
||||
NextPortal_Timer = 15000;
|
||||
@@ -187,7 +187,7 @@ struct instance_dark_portal : public ScriptedInstance
|
||||
if (data == DONE)
|
||||
{
|
||||
//this may be completed further out in the post-event
|
||||
debug_log("TSCR: Instance Dark Portal: Event completed.");
|
||||
sLog.outDebug("TSCR: Instance Dark Portal: Event completed.");
|
||||
Map::PlayerList const& players = instance->GetPlayers();
|
||||
|
||||
if (!players.isEmpty())
|
||||
@@ -252,7 +252,7 @@ struct instance_dark_portal : public ScriptedInstance
|
||||
if (entry == RIFT_BOSS)
|
||||
entry = RandRiftBoss();
|
||||
|
||||
debug_log("TSCR: Instance Dark Portal: Summoning rift boss entry %u.",entry);
|
||||
sLog.outDebug("TSCR: Instance Dark Portal: Summoning rift boss entry %u.",entry);
|
||||
|
||||
Position pos;
|
||||
me->GetRandomNearPosition(pos, 10.0f);
|
||||
@@ -263,7 +263,7 @@ struct instance_dark_portal : public ScriptedInstance
|
||||
if (Creature *summon = me->SummonCreature(entry, pos, TEMPSUMMON_TIMED_OR_DEAD_DESPAWN, 600000))
|
||||
return summon;
|
||||
|
||||
debug_log("TSCR: Instance Dark Portal: What just happened there? No boss, no loot, no fun...");
|
||||
sLog.outDebug("TSCR: Instance Dark Portal: What just happened there? No boss, no loot, no fun...");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -276,7 +276,7 @@ struct instance_dark_portal : public ScriptedInstance
|
||||
if (tmp >= CurrentRiftId)
|
||||
++tmp;
|
||||
|
||||
debug_log("TSCR: Instance Dark Portal: Creating Time Rift at locationId %i (old locationId was %u).",tmp,CurrentRiftId);
|
||||
sLog.outDebug("TSCR: Instance Dark Portal: Creating Time Rift at locationId %i (old locationId was %u).",tmp,CurrentRiftId);
|
||||
|
||||
CurrentRiftId = tmp;
|
||||
|
||||
|
||||
+10
-10
@@ -71,7 +71,7 @@ struct instance_old_hillsbrad : public ScriptedInstance
|
||||
}
|
||||
}
|
||||
|
||||
debug_log("TSCR: Instance Old Hillsbrad: GetPlayerInMap, but PlayerList is empty!");
|
||||
sLog.outDebug("TSCR: Instance Old Hillsbrad: GetPlayerInMap, but PlayerList is empty!");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -111,7 +111,7 @@ struct instance_old_hillsbrad : public ScriptedInstance
|
||||
|
||||
if (!pPlayer)
|
||||
{
|
||||
debug_log("TSCR: Instance Old Hillsbrad: SetData (Type: %u Data %u) cannot find any player.", type, data);
|
||||
sLog.outDebug("TSCR: Instance Old Hillsbrad: SetData (Type: %u Data %u) cannot find any player.", type, data);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -127,7 +127,7 @@ struct instance_old_hillsbrad : public ScriptedInstance
|
||||
++mBarrelCount;
|
||||
DoUpdateWorldState(WORLD_STATE_OH, mBarrelCount);
|
||||
|
||||
debug_log("TSCR: Instance Old Hillsbrad: go_barrel_old_hillsbrad count %u",mBarrelCount);
|
||||
sLog.outDebug("TSCR: Instance Old Hillsbrad: go_barrel_old_hillsbrad count %u",mBarrelCount);
|
||||
|
||||
m_auiEncounter[0] = IN_PROGRESS;
|
||||
|
||||
@@ -148,7 +148,7 @@ struct instance_old_hillsbrad : public ScriptedInstance
|
||||
{
|
||||
++mThrallEventCount;
|
||||
m_auiEncounter[1] = NOT_STARTED;
|
||||
debug_log("TSCR: Instance Old Hillsbrad: Thrall event failed %u times. Resetting all sub-events.",mThrallEventCount);
|
||||
sLog.outDebug("TSCR: Instance Old Hillsbrad: Thrall event failed %u times. Resetting all sub-events.",mThrallEventCount);
|
||||
m_auiEncounter[2] = NOT_STARTED;
|
||||
m_auiEncounter[3] = NOT_STARTED;
|
||||
m_auiEncounter[4] = NOT_STARTED;
|
||||
@@ -161,29 +161,29 @@ struct instance_old_hillsbrad : public ScriptedInstance
|
||||
m_auiEncounter[3] = data;
|
||||
m_auiEncounter[4] = data;
|
||||
m_auiEncounter[5] = data;
|
||||
debug_log("TSCR: Instance Old Hillsbrad: Thrall event failed %u times. Resetting all sub-events.",mThrallEventCount);
|
||||
sLog.outDebug("TSCR: Instance Old Hillsbrad: Thrall event failed %u times. Resetting all sub-events.",mThrallEventCount);
|
||||
}
|
||||
}
|
||||
else
|
||||
m_auiEncounter[1] = data;
|
||||
debug_log("TSCR: Instance Old Hillsbrad: Thrall escort event adjusted to data %u.",data);
|
||||
sLog.outDebug("TSCR: Instance Old Hillsbrad: Thrall escort event adjusted to data %u.",data);
|
||||
break;
|
||||
}
|
||||
case TYPE_THRALL_PART1:
|
||||
m_auiEncounter[2] = data;
|
||||
debug_log("TSCR: Instance Old Hillsbrad: Thrall event part I adjusted to data %u.",data);
|
||||
sLog.outDebug("TSCR: Instance Old Hillsbrad: Thrall event part I adjusted to data %u.",data);
|
||||
break;
|
||||
case TYPE_THRALL_PART2:
|
||||
m_auiEncounter[3] = data;
|
||||
debug_log("TSCR: Instance Old Hillsbrad: Thrall event part II adjusted to data %u.",data);
|
||||
sLog.outDebug("TSCR: Instance Old Hillsbrad: Thrall event part II adjusted to data %u.",data);
|
||||
break;
|
||||
case TYPE_THRALL_PART3:
|
||||
m_auiEncounter[4] = data;
|
||||
debug_log("TSCR: Instance Old Hillsbrad: Thrall event part III adjusted to data %u.",data);
|
||||
sLog.outDebug("TSCR: Instance Old Hillsbrad: Thrall event part III adjusted to data %u.",data);
|
||||
break;
|
||||
case TYPE_THRALL_PART4:
|
||||
m_auiEncounter[5] = data;
|
||||
debug_log("TSCR: Instance Old Hillsbrad: Thrall event part IV adjusted to data %u.",data);
|
||||
sLog.outDebug("TSCR: Instance Old Hillsbrad: Thrall event part IV adjusted to data %u.",data);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ struct instance_razorfen_kraul : public ScriptedInstance
|
||||
return plr;
|
||||
}
|
||||
}
|
||||
debug_log("TSCR: Instance Razorfen Kraul: GetPlayerInMap, but PlayerList is empty!");
|
||||
sLog.outDebug("TSCR: Instance Razorfen Kraul: GetPlayerInMap, but PlayerList is empty!");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
@@ -168,7 +168,7 @@ struct eye_of_cthunAI : public Scripted_NoMovementAI
|
||||
{
|
||||
pInst = c->GetInstanceData();
|
||||
if (!pInst)
|
||||
error_log("TSCR: No Instance eye_of_cthunAI");
|
||||
sLog.outError("TSCR: No Instance eye_of_cthunAI");
|
||||
}
|
||||
|
||||
ScriptedInstance* pInst;
|
||||
@@ -460,7 +460,7 @@ struct cthunAI : public Scripted_NoMovementAI
|
||||
|
||||
pInst = c->GetInstanceData();
|
||||
if (!pInst)
|
||||
error_log("TSCR: No Instance eye_of_cthunAI");
|
||||
sLog.outError("TSCR: No Instance eye_of_cthunAI");
|
||||
}
|
||||
|
||||
ScriptedInstance* pInst;
|
||||
|
||||
@@ -512,7 +512,7 @@ struct npc_geezleAI : public ScriptedAI
|
||||
else
|
||||
(*itr)->Respawn();
|
||||
}
|
||||
} else error_log("SD2 ERROR: FlagList is empty!");
|
||||
} else sLog.outError("SD2 ERROR: FlagList is empty!");
|
||||
}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
|
||||
@@ -182,7 +182,7 @@ struct boss_gothikAI : public BossAI
|
||||
|
||||
if (LiveTriggerGUID.size() < POS_LIVE || DeadTriggerGUID.size() < POS_DEAD)
|
||||
{
|
||||
error_log("Script Gothik: cannot summon triggers!");
|
||||
sLog.outError("Script Gothik: cannot summon triggers!");
|
||||
EnterEvadeMode();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -633,7 +633,7 @@ struct dummy_dragonAI : public ScriptedAI
|
||||
if (!pInstance || uiType != POINT_MOTION_TYPE)
|
||||
return;
|
||||
|
||||
debug_log("dummy_dragonAI: %s reached point %u", me->GetName(), uiPointId);
|
||||
sLog.outDebug("dummy_dragonAI: %s reached point %u", me->GetName(), uiPointId);
|
||||
|
||||
//if healers messed up the raid and we was already initialized
|
||||
if (pInstance->GetData(TYPE_SARTHARION_EVENT) != IN_PROGRESS)
|
||||
@@ -790,7 +790,7 @@ struct dummy_dragonAI : public ScriptedAI
|
||||
me->GetMotionMaster()->MovePoint(m_uiWaypointId,
|
||||
m_aDragonCommon[m_uiWaypointId].m_fX, m_aDragonCommon[m_uiWaypointId].m_fY, m_aDragonCommon[m_uiWaypointId].m_fZ);
|
||||
|
||||
debug_log("dummy_dragonAI: %s moving to point %u", me->GetName(), m_uiWaypointId);
|
||||
sLog.outDebug("dummy_dragonAI: %s moving to point %u", me->GetName(), m_uiWaypointId);
|
||||
m_uiMoveNextTimer = 0;
|
||||
}
|
||||
else
|
||||
|
||||
@@ -109,7 +109,7 @@ struct instance_utgarde_keep : public ScriptedInstance
|
||||
}
|
||||
}
|
||||
|
||||
debug_log("TSCR: Instance Utgarde Keep: GetPlayerInMap, but PlayerList is empty!");
|
||||
sLog.outDebug("TSCR: Instance Utgarde Keep: GetPlayerInMap, but PlayerList is empty!");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
@@ -96,7 +96,7 @@ struct instance_shadow_labyrinth : public ScriptedInstance
|
||||
if (pCreature->isAlive())
|
||||
{
|
||||
++m_uiFelOverseerCount;
|
||||
debug_log("TSCR: Shadow Labyrinth: counting %u Fel Overseers.",m_uiFelOverseerCount);
|
||||
sLog.outDebug("TSCR: Shadow Labyrinth: counting %u Fel Overseers.",m_uiFelOverseerCount);
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -113,7 +113,7 @@ struct instance_shadow_labyrinth : public ScriptedInstance
|
||||
case TYPE_OVERSEER:
|
||||
if (uiData != DONE)
|
||||
{
|
||||
error_log("TSCR: Shadow Labyrinth: TYPE_OVERSEER did not expect other data than DONE");
|
||||
sLog.outError("TSCR: Shadow Labyrinth: TYPE_OVERSEER did not expect other data than DONE");
|
||||
return;
|
||||
}
|
||||
if (m_uiFelOverseerCount)
|
||||
@@ -121,11 +121,11 @@ struct instance_shadow_labyrinth : public ScriptedInstance
|
||||
--m_uiFelOverseerCount;
|
||||
|
||||
if (m_uiFelOverseerCount)
|
||||
debug_log("TSCR: Shadow Labyrinth: %u Fel Overseers left to kill.",m_uiFelOverseerCount);
|
||||
sLog.outDebug("TSCR: Shadow Labyrinth: %u Fel Overseers left to kill.",m_uiFelOverseerCount);
|
||||
else
|
||||
{
|
||||
m_auiEncounter[1] = DONE;
|
||||
debug_log("TSCR: Shadow Labyrinth: TYPE_OVERSEER == DONE");
|
||||
sLog.outDebug("TSCR: Shadow Labyrinth: TYPE_OVERSEER == DONE");
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -2065,7 +2065,7 @@ void boss_illidan_stormrageAI::SummonMaiev()
|
||||
{
|
||||
EnterEvadeMode();
|
||||
me->MonsterTextEmote(EMOTE_UNABLE_TO_SUMMON, 0);
|
||||
error_log("SD2 ERROR: Unable to summon Maiev Shadowsong (entry: 23197). Check your database to see if you have the proper SQL for Maiev Shadowsong (entry: 23197)");
|
||||
sLog.outError("SD2 ERROR: Unable to summon Maiev Shadowsong (entry: 23197). Check your database to see if you have the proper SQL for Maiev Shadowsong (entry: 23197)");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -276,7 +276,7 @@ struct boss_shade_of_akamaAI : public ScriptedAI
|
||||
GridSearcherSucceeded = true;
|
||||
}
|
||||
}
|
||||
} else error_log("SD2 ERROR: No Channelers are stored in the list. This encounter will not work properly");
|
||||
} else sLog.outError("SD2 ERROR: No Channelers are stored in the list. This encounter will not work properly");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -293,13 +293,13 @@ struct boss_shade_of_akamaAI : public ScriptedAI
|
||||
if (reseting)
|
||||
return;
|
||||
|
||||
debug_log("TSCR: Increasing Death Count for Shade of Akama encounter");
|
||||
sLog.outDebug("TSCR: Increasing Death Count for Shade of Akama encounter");
|
||||
++DeathCount;
|
||||
me->RemoveAuraFromStack(SPELL_SHADE_SOUL_CHANNEL_2);
|
||||
if (guid)
|
||||
{
|
||||
if (Sorcerers.empty())
|
||||
error_log("SD2 ERROR: Shade of Akama - attempt to remove guid %u from Sorcerers list but list is already empty", guid);
|
||||
sLog.outError("SD2 ERROR: Shade of Akama - attempt to remove guid %u from Sorcerers list but list is already empty", guid);
|
||||
else Sorcerers.remove(guid);
|
||||
}
|
||||
}
|
||||
@@ -351,17 +351,17 @@ struct boss_shade_of_akamaAI : public ScriptedAI
|
||||
{
|
||||
CAST_AI(mob_ashtongue_channelerAI, (*itr)->AI())->ShadeGUID = me->GetGUID();
|
||||
Channelers.push_back((*itr)->GetGUID());
|
||||
debug_log("TSCR: Shade of Akama Grid Search found channeler %u. Adding to list", (*itr)->GetGUID());
|
||||
sLog.outDebug("TSCR: Shade of Akama Grid Search found channeler %u. Adding to list", (*itr)->GetGUID());
|
||||
}
|
||||
}
|
||||
else error_log("SD2 ERROR: Grid Search was unable to find any channelers. Shade of Akama encounter will be buggy");
|
||||
else sLog.outError("SD2 ERROR: Grid Search was unable to find any channelers. Shade of Akama encounter will be buggy");
|
||||
}
|
||||
|
||||
void SetSelectableChannelers()
|
||||
{
|
||||
if (Channelers.empty())
|
||||
{
|
||||
error_log("SD2 ERROR: Channeler List is empty, Shade of Akama encounter will be buggy");
|
||||
sLog.outError("SD2 ERROR: Channeler List is empty, Shade of Akama encounter will be buggy");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -485,7 +485,7 @@ void mob_ashtongue_channelerAI::JustDied(Unit* /*killer*/)
|
||||
Creature* Shade = (Unit::GetCreature((*me), ShadeGUID));
|
||||
if (Shade && Shade->isAlive())
|
||||
CAST_AI(boss_shade_of_akamaAI, Shade->AI())->IncrementDeathCount();
|
||||
else error_log("SD2 ERROR: Channeler dead but unable to increment DeathCount for Shade of Akama.");
|
||||
else sLog.outError("SD2 ERROR: Channeler dead but unable to increment DeathCount for Shade of Akama.");
|
||||
}
|
||||
|
||||
void mob_ashtongue_sorcererAI::JustDied(Unit* /*killer*/)
|
||||
@@ -493,7 +493,7 @@ void mob_ashtongue_sorcererAI::JustDied(Unit* /*killer*/)
|
||||
Creature* Shade = (Unit::GetCreature((*me), ShadeGUID));
|
||||
if (Shade && Shade->isAlive())
|
||||
CAST_AI(boss_shade_of_akamaAI, Shade->AI())->IncrementDeathCount(me->GetGUID());
|
||||
else error_log("SD2 ERROR: Sorcerer dead but unable to increment DeathCount for Shade of Akama.");
|
||||
else sLog.outError("SD2 ERROR: Sorcerer dead but unable to increment DeathCount for Shade of Akama.");
|
||||
}
|
||||
|
||||
struct npc_akamaAI : public ScriptedAI
|
||||
|
||||
@@ -143,7 +143,7 @@ struct mob_blood_elf_council_voice_triggerAI : public ScriptedAI
|
||||
Council[1] = pInstance->GetData64(DATA_VERASDARKSHADOW);
|
||||
Council[2] = pInstance->GetData64(DATA_LADYMALANDE);
|
||||
Council[3] = pInstance->GetData64(DATA_HIGHNETHERMANCERZEREVOR);
|
||||
} else error_log(ERROR_INST_DATA);
|
||||
} else sLog.outError(ERROR_INST_DATA);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* /*who*/) {}
|
||||
@@ -375,7 +375,7 @@ struct boss_illidari_councilAI : public ScriptedAI
|
||||
}
|
||||
else
|
||||
{
|
||||
error_log(ERROR_INST_DATA);
|
||||
sLog.outError(ERROR_INST_DATA);
|
||||
EnterEvadeMode();
|
||||
return;
|
||||
}
|
||||
@@ -423,7 +423,7 @@ struct boss_illidari_councilAI : public ScriptedAI
|
||||
{
|
||||
if (!pInstance)
|
||||
{
|
||||
error_log(ERROR_INST_DATA);
|
||||
sLog.outError(ERROR_INST_DATA);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -124,7 +124,7 @@ struct instance_black_temple : public ScriptedInstance
|
||||
}
|
||||
}
|
||||
|
||||
debug_log("TSCR: Instance Black Temple: GetPlayerInMap, but PlayerList is empty!");
|
||||
sLog.outDebug("TSCR: Instance Black Temple: GetPlayerInMap, but PlayerList is empty!");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
@@ -119,7 +119,7 @@ struct instance_steam_vault : public ScriptedInstance
|
||||
if (GetData(TYPE_MEKGINEER_STEAMRIGGER) == SPECIAL)
|
||||
HandleGameObject(MainChambersDoor, true);
|
||||
|
||||
debug_log("TSCR: Instance Steamvault: Access panel used.");
|
||||
sLog.outDebug("TSCR: Instance Steamvault: Access panel used.");
|
||||
}
|
||||
m_auiEncounter[0] = data;
|
||||
break;
|
||||
@@ -131,7 +131,7 @@ struct instance_steam_vault : public ScriptedInstance
|
||||
if (GetData(TYPE_HYDROMANCER_THESPIA) == SPECIAL)
|
||||
HandleGameObject(MainChambersDoor, true);
|
||||
|
||||
debug_log("TSCR: Instance Steamvault: Access panel used.");
|
||||
sLog.outDebug("TSCR: Instance Steamvault: Access panel used.");
|
||||
}
|
||||
m_auiEncounter[1] = data;
|
||||
break;
|
||||
|
||||
+1
-1
@@ -51,7 +51,7 @@ struct instance_ramparts : public ScriptedInstance
|
||||
|
||||
void SetData(uint32 uiType, uint32 uiData)
|
||||
{
|
||||
debug_log("TSCR: Instance Ramparts: SetData received for type %u with data %u",uiType,uiData);
|
||||
sLog.outDebug("TSCR: Instance Ramparts: SetData received for type %u with data %u",uiType,uiData);
|
||||
|
||||
switch(uiType)
|
||||
{
|
||||
|
||||
@@ -356,7 +356,7 @@ struct boss_kaelthasAI : public ScriptedAI
|
||||
|
||||
if (!m_auiAdvisorGuid[0] || !m_auiAdvisorGuid[1] || !m_auiAdvisorGuid[2] || !m_auiAdvisorGuid[3])
|
||||
{
|
||||
error_log("TSCR: Kael'Thas One or more advisors missing, Skipping Phases 1-3");
|
||||
sLog.outError("TSCR: Kael'Thas One or more advisors missing, Skipping Phases 1-3");
|
||||
|
||||
DoScriptText(SAY_PHASE4_INTRO2, me);
|
||||
|
||||
@@ -678,7 +678,7 @@ struct boss_kaelthasAI : public ScriptedAI
|
||||
Advisor = Unit::GetCreature((*me), m_auiAdvisorGuid[i]);
|
||||
|
||||
if (!Advisor)
|
||||
error_log("SD2: Kael'Thas Advisor %u does not exist. Possibly despawned? Incorrectly Killed?", i);
|
||||
sLog.outError("SD2: Kael'Thas Advisor %u does not exist. Possibly despawned? Incorrectly Killed?", i);
|
||||
else
|
||||
CAST_AI(advisorbase_ai, Advisor->AI())->Revive(pTarget);
|
||||
}
|
||||
@@ -763,7 +763,7 @@ struct boss_kaelthasAI : public ScriptedAI
|
||||
if (me->getThreatManager().getThreatList().size() >= 2)
|
||||
for (uint32 i = 0; i < 3; ++i)
|
||||
{
|
||||
debug_log("SD2: Kael'Thas mind control not supported.");
|
||||
sLog.outDebug("SD2: Kael'Thas mind control not supported.");
|
||||
//DoCast(pUnit, SPELL_MIND_CONTROL);
|
||||
}
|
||||
|
||||
|
||||
@@ -140,7 +140,7 @@ struct npc_ancestral_wolfAI : public npc_escortAI
|
||||
if (pCreature->GetOwner() && pCreature->GetOwner()->GetTypeId() == TYPEID_PLAYER)
|
||||
Start(false, false, pCreature->GetOwner()->GetGUID());
|
||||
else
|
||||
error_log("TRINITY: npc_ancestral_wolf can not obtain owner or owner is not a player.");
|
||||
sLog.outError("TRINITY: npc_ancestral_wolf can not obtain owner or owner is not a player.");
|
||||
|
||||
pCreature->SetSpeed(MOVE_WALK, 1.5f);
|
||||
Reset();
|
||||
|
||||
@@ -463,7 +463,7 @@ struct npc_commander_dawnforgeAI : public ScriptedAI
|
||||
return true;
|
||||
}
|
||||
|
||||
debug_log("TSCR: npc_commander_dawnforge event already in progress, need to wait.");
|
||||
sLog.outDebug("TSCR: npc_commander_dawnforge event already in progress, need to wait.");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -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