Fix build with scripts included

This commit is contained in:
Machiavelli
2011-02-20 21:07:03 +01:00
parent 250bc09ded
commit c1445cd475
26 changed files with 52 additions and 52 deletions
+1 -1
View File
@@ -159,7 +159,7 @@ public:
{ {
uint32 value = atoi((char*)spawntimeSecs); uint32 value = atoi((char*)spawntimeSecs);
pGameObj->SetRespawnTime(value); pGameObj->SetRespawnTime(value);
//sLog->outDebug("*** spawntimeSecs: %d", value); //sLog->OutDebug(LOG_FILTER_TSCR, "*** spawntimeSecs: %d", value);
} }
// fill the gameobject data and save to the db // fill the gameobject data and save to the db
@@ -239,7 +239,7 @@ public:
{ {
pInstance->UpdateEncounterState(ENCOUNTER_CREDIT_KILL_CREATURE, NPC_GRIMSTONE, me); pInstance->UpdateEncounterState(ENCOUNTER_CREDIT_KILL_CREATURE, NPC_GRIMSTONE, me);
pInstance->SetData(TYPE_RING_OF_LAW,DONE); pInstance->SetData(TYPE_RING_OF_LAW,DONE);
sLog->outDebug("TSCR: npc_grimstone: event reached end and set complete."); sLog->OutDebug(LOG_FILTER_TSCR, "TSCR: npc_grimstone: event reached end and set complete.");
} }
break; break;
} }
@@ -214,7 +214,7 @@ public:
void SetData64(uint32 type, uint64 data) void SetData64(uint32 type, uint64 data)
{ {
sLog->outDebug("TSCR: Instance Blackrock Depths: SetData64 update (Type: %u Data " UI64FMTD ")", type, data); sLog->OutDebug(LOG_FILTER_TSCR, "TSCR: Instance Blackrock Depths: SetData64 update (Type: %u Data " UI64FMTD ")", type, data);
switch(type) switch(type)
{ {
@@ -230,7 +230,7 @@ public:
void SetData(uint32 type, uint32 data) void SetData(uint32 type, uint32 data)
{ {
sLog->outDebug("TSCR: Instance Blackrock Depths: SetData update (Type: %u Data %u)", type, data); sLog->OutDebug(LOG_FILTER_TSCR, "TSCR: Instance Blackrock Depths: SetData update (Type: %u Data %u)", type, data);
switch(type) switch(type)
{ {
@@ -227,7 +227,7 @@ public:
void PrepareEncounter() void PrepareEncounter()
{ {
sLog->outDebug("TSCR: Barnes Opera Event - Introduction complete - preparing encounter %d", m_uiEventId); sLog->OutDebug(LOG_FILTER_TSCR, "TSCR: Barnes Opera Event - Introduction complete - preparing encounter %d", m_uiEventId);
uint8 index = 0; uint8 index = 0;
uint8 count = 0; uint8 count = 0;
@@ -75,7 +75,7 @@ public:
for (uint8 i = 0; i < size; ++i) for (uint8 i = 0; i < size; ++i)
{ {
uint64 guid = pInstance->GetData64(DATA_FEL_CRYSTAL); uint64 guid = pInstance->GetData64(DATA_FEL_CRYSTAL);
sLog->outDebug("TSCR: Selin: Adding Fel Crystal " UI64FMTD " to list", guid); sLog->OutDebug(LOG_FILTER_TSCR, "TSCR: Selin: Adding Fel Crystal " UI64FMTD " to list", guid);
Crystals.push_back(guid); Crystals.push_back(guid);
} }
} }
@@ -216,7 +216,7 @@ public:
else else
{ {
me->GetMotionMaster()->MovePoint(1, anchorX, anchorY, me->GetPositionZ()); me->GetMotionMaster()->MovePoint(1, anchorX, anchorY, me->GetPositionZ());
//sLog->outDebug("npc_unworthy_initiateAI: move to %f %f %f", anchorX, anchorY, me->GetPositionZ()); //sLog->OutDebug(LOG_FILTER_TSCR, "npc_unworthy_initiateAI: move to %f %f %f", anchorX, anchorY, me->GetPositionZ());
phase = PHASE_EQUIPING; phase = PHASE_EQUIPING;
wait_timer = 0; wait_timer = 0;
} }
@@ -122,7 +122,7 @@ class instance_stratholme : public InstanceMapScript
return true; return true;
} }
sLog->outDebug("TSCR: Instance Stratholme: Cannot open slaugther square yet."); sLog->OutDebug(LOG_FILTER_TSCR, "TSCR: Instance Stratholme: Cannot open slaugther square yet.");
return false; return false;
} }
@@ -240,7 +240,7 @@ class instance_stratholme : public InstanceMapScript
break; break;
EncounterState[0] = data; EncounterState[0] = data;
events.ScheduleEvent(EVENT_BARON_RUN, 2700000); events.ScheduleEvent(EVENT_BARON_RUN, 2700000);
sLog->outDebug("TSCR: Instance Stratholme: Baron run in progress."); sLog->OutDebug(LOG_FILTER_TSCR, "TSCR: Instance Stratholme: Baron run in progress.");
break; break;
case FAIL: case FAIL:
DoRemoveAurasDueToSpellOnPlayers(SPELL_BARON_ULTIMATUM); DoRemoveAurasDueToSpellOnPlayers(SPELL_BARON_ULTIMATUM);
@@ -298,10 +298,10 @@ class instance_stratholme : public InstanceMapScript
//UpdateGoState(ziggurat4GUID,0,true); //UpdateGoState(ziggurat4GUID,0,true);
if (Creature* pBaron = instance->GetCreature(baronGUID)) if (Creature* pBaron = instance->GetCreature(baronGUID))
pBaron->SummonCreature(C_RAMSTEIN, 4032.84f, -3390.24f, 119.73f, 4.71f, TEMPSUMMON_TIMED_OR_DEAD_DESPAWN, 1800000); pBaron->SummonCreature(C_RAMSTEIN, 4032.84f, -3390.24f, 119.73f, 4.71f, TEMPSUMMON_TIMED_OR_DEAD_DESPAWN, 1800000);
sLog->outDebug("TSCR: Instance Stratholme: Ramstein spawned."); sLog->OutDebug(LOG_FILTER_TSCR, "TSCR: Instance Stratholme: Ramstein spawned.");
} }
else else
sLog->outDebug("TSCR: Instance Stratholme: %u Abomnation left to kill.",count); sLog->OutDebug(LOG_FILTER_TSCR, "TSCR: Instance Stratholme: %u Abomnation left to kill.",count);
} }
if (data == NOT_STARTED) if (data == NOT_STARTED)
@@ -310,7 +310,7 @@ class instance_stratholme : public InstanceMapScript
if (data == DONE) if (data == DONE)
{ {
events.ScheduleEvent(EVENT_SLAUGHTER_SQUARE, 60000); events.ScheduleEvent(EVENT_SLAUGHTER_SQUARE, 60000);
sLog->outDebug("TSCR: Instance Stratholme: Slaugther event will continue in 1 minute."); sLog->OutDebug(LOG_FILTER_TSCR, "TSCR: Instance Stratholme: Slaugther event will continue in 1 minute.");
} }
EncounterState[4] = data; EncounterState[4] = data;
break; break;
@@ -446,7 +446,7 @@ class instance_stratholme : public InstanceMapScript
case EVENT_BARON_RUN: case EVENT_BARON_RUN:
if (GetData(TYPE_BARON_RUN) != DONE) if (GetData(TYPE_BARON_RUN) != DONE)
SetData(TYPE_BARON_RUN, FAIL); SetData(TYPE_BARON_RUN, FAIL);
sLog->outDebug("TSCR: Instance Stratholme: Baron run event reached end. Event has state %u.", GetData(TYPE_BARON_RUN)); sLog->OutDebug(LOG_FILTER_TSCR, "TSCR: Instance Stratholme: Baron run event reached end. Event has state %u.", GetData(TYPE_BARON_RUN));
break; break;
case EVENT_SLAUGHTER_SQUARE: case EVENT_SLAUGHTER_SQUARE:
if (Creature* baron = instance->GetCreature(baronGUID)) if (Creature* baron = instance->GetCreature(baronGUID))
@@ -456,7 +456,7 @@ class instance_stratholme : public InstanceMapScript
HandleGameObject(ziggurat4GUID, true); HandleGameObject(ziggurat4GUID, true);
HandleGameObject(ziggurat5GUID, true); HandleGameObject(ziggurat5GUID, true);
sLog->outDebug("TSCR: Instance Stratholme: Black guard sentries spawned. Opening gates to baron."); sLog->OutDebug(LOG_FILTER_TSCR, "TSCR: Instance Stratholme: Black guard sentries spawned. Opening gates to baron.");
} }
break; break;
default: default:
@@ -1424,7 +1424,7 @@ public:
DoMeleeAttackIfReady(); DoMeleeAttackIfReady();
break; break;
} }
sLog->outDebug("Sinister-Timer"); sLog->OutDebug(LOG_FILTER_TSCR, "Sinister-Timer");
for (uint8 i = 0; i < 3; ++i) for (uint8 i = 0; i < 3; ++i)
uiTimer[i] -= diff; uiTimer[i] -= diff;
} }
@@ -134,7 +134,7 @@ public:
} }
} }
sLog->outDebug("TSCR: Instance Sunwell Plateau: GetPlayerInMap, but PlayerList is empty!"); sLog->OutDebug(LOG_FILTER_TSCR, "TSCR: Instance Sunwell Plateau: GetPlayerInMap, but PlayerList is empty!");
return NULL; return NULL;
} }
@@ -69,7 +69,7 @@ public:
break; break;
case GOSSIP_ACTION_INFO_DEF: case GOSSIP_ACTION_INFO_DEF:
ai->Debug = !ai->Debug; ai->Debug = !ai->Debug;
sLog->outDebug("TSCR: HyjalAI - Debug mode has been toggled"); sLog->OutDebug(LOG_FILTER_TSCR, "TSCR: HyjalAI - Debug mode has been toggled");
break; break;
} }
return true; return true;
@@ -148,7 +148,7 @@ public:
break; break;
case GOSSIP_ACTION_INFO_DEF: case GOSSIP_ACTION_INFO_DEF:
ai->Debug = !ai->Debug; ai->Debug = !ai->Debug;
sLog->outDebug("TSCR: HyjalAI - Debug mode has been toggled"); sLog->OutDebug(LOG_FILTER_TSCR, "TSCR: HyjalAI - Debug mode has been toggled");
break; break;
} }
return true; return true;
@@ -563,7 +563,7 @@ void hyjalAI::SummonNextWave(const Wave wave[18], uint32 Count, float Base[4][3]
else else
{ {
NextWaveTimer = 15000; NextWaveTimer = 15000;
sLog->outDebug("TSCR: HyjalAI: debug mode is enabled. Next Wave in 15 seconds"); sLog->OutDebug(LOG_FILTER_TSCR, "TSCR: HyjalAI: debug mode is enabled. Next Wave in 15 seconds");
} }
} }
else else
@@ -260,7 +260,7 @@ public:
break; break;
} }
sLog->outDebug("TSCR: Instance Hyjal: Instance data updated for event %u (Data=%u)",type,data); sLog->OutDebug(LOG_FILTER_TSCR, "TSCR: Instance Hyjal: Instance data updated for event %u (Data=%u)",type,data);
if (data == DONE) if (data == DONE)
{ {
@@ -325,7 +325,7 @@ public:
mRiftWaveCount = 0; mRiftWaveCount = 0;
entry = PortalWaves[mWaveId].PortalMob[mRiftWaveCount]; entry = PortalWaves[mWaveId].PortalMob[mRiftWaveCount];
sLog->outDebug("TSCR: npc_time_rift: summoning wave Creature (Wave %u, Entry %u).",mRiftWaveCount,entry); sLog->OutDebug(LOG_FILTER_TSCR, "TSCR: npc_time_rift: summoning wave Creature (Wave %u, Entry %u).",mRiftWaveCount,entry);
++mRiftWaveCount; ++mRiftWaveCount;
@@ -350,7 +350,7 @@ public:
if (me->IsNonMeleeSpellCasted(false)) if (me->IsNonMeleeSpellCasted(false))
return; return;
sLog->outDebug("TSCR: npc_time_rift: not casting anylonger, i need to die."); sLog->OutDebug(LOG_FILTER_TSCR, "TSCR: npc_time_rift: not casting anylonger, i need to die.");
me->setDeathState(JUST_DIED); me->setDeathState(JUST_DIED);
if (pInstance->GetData(TYPE_RIFT) == IN_PROGRESS) if (pInstance->GetData(TYPE_RIFT) == IN_PROGRESS)
@@ -194,7 +194,7 @@ public:
{ {
if (data == IN_PROGRESS) if (data == IN_PROGRESS)
{ {
sLog->outDebug("TSCR: Instance Dark Portal: Starting event."); sLog->OutDebug(LOG_FILTER_TSCR, "TSCR: Instance Dark Portal: Starting event.");
InitWorldState(); InitWorldState();
m_auiEncounter[1] = IN_PROGRESS; m_auiEncounter[1] = IN_PROGRESS;
NextPortal_Timer = 15000; NextPortal_Timer = 15000;
@@ -203,7 +203,7 @@ public:
if (data == DONE) if (data == DONE)
{ {
//this may be completed further out in the post-event //this may be completed further out in the post-event
sLog->outDebug("TSCR: Instance Dark Portal: Event completed."); sLog->OutDebug(LOG_FILTER_TSCR, "TSCR: Instance Dark Portal: Event completed.");
Map::PlayerList const& players = instance->GetPlayers(); Map::PlayerList const& players = instance->GetPlayers();
if (!players.isEmpty()) if (!players.isEmpty())
@@ -268,7 +268,7 @@ public:
if (entry == RIFT_BOSS) if (entry == RIFT_BOSS)
entry = RandRiftBoss(); entry = RandRiftBoss();
sLog->outDebug("TSCR: Instance Dark Portal: Summoning rift boss entry %u.",entry); sLog->OutDebug(LOG_FILTER_TSCR, "TSCR: Instance Dark Portal: Summoning rift boss entry %u.",entry);
Position pos; Position pos;
me->GetRandomNearPosition(pos, 10.0f); me->GetRandomNearPosition(pos, 10.0f);
@@ -279,7 +279,7 @@ public:
if (Creature* summon = me->SummonCreature(entry, pos, TEMPSUMMON_TIMED_OR_DEAD_DESPAWN, 600000)) if (Creature* summon = me->SummonCreature(entry, pos, TEMPSUMMON_TIMED_OR_DEAD_DESPAWN, 600000))
return summon; return summon;
sLog->outDebug("TSCR: Instance Dark Portal: What just happened there? No boss, no loot, no fun..."); sLog->OutDebug(LOG_FILTER_TSCR, "TSCR: Instance Dark Portal: What just happened there? No boss, no loot, no fun...");
return NULL; return NULL;
} }
@@ -292,7 +292,7 @@ public:
if (tmp >= CurrentRiftId) if (tmp >= CurrentRiftId)
++tmp; ++tmp;
sLog->outDebug("TSCR: Instance Dark Portal: Creating Time Rift at locationId %i (old locationId was %u).",tmp,CurrentRiftId); sLog->OutDebug(LOG_FILTER_TSCR, "TSCR: Instance Dark Portal: Creating Time Rift at locationId %i (old locationId was %u).",tmp,CurrentRiftId);
CurrentRiftId = tmp; CurrentRiftId = tmp;
@@ -83,7 +83,7 @@ public:
} }
} }
sLog->outDebug("TSCR: Instance Old Hillsbrad: GetPlayerInMap, but PlayerList is empty!"); sLog->OutDebug(LOG_FILTER_TSCR, "TSCR: Instance Old Hillsbrad: GetPlayerInMap, but PlayerList is empty!");
return NULL; return NULL;
} }
@@ -123,7 +123,7 @@ public:
if (!pPlayer) if (!pPlayer)
{ {
sLog->outDebug("TSCR: Instance Old Hillsbrad: SetData (Type: %u Data %u) cannot find any player.", type, data); sLog->OutDebug(LOG_FILTER_TSCR, "TSCR: Instance Old Hillsbrad: SetData (Type: %u Data %u) cannot find any player.", type, data);
return; return;
} }
@@ -139,7 +139,7 @@ public:
++mBarrelCount; ++mBarrelCount;
DoUpdateWorldState(WORLD_STATE_OH, mBarrelCount); DoUpdateWorldState(WORLD_STATE_OH, mBarrelCount);
sLog->outDebug("TSCR: Instance Old Hillsbrad: go_barrel_old_hillsbrad count %u",mBarrelCount); sLog->OutDebug(LOG_FILTER_TSCR, "TSCR: Instance Old Hillsbrad: go_barrel_old_hillsbrad count %u",mBarrelCount);
m_auiEncounter[0] = IN_PROGRESS; m_auiEncounter[0] = IN_PROGRESS;
@@ -160,7 +160,7 @@ public:
{ {
++mThrallEventCount; ++mThrallEventCount;
m_auiEncounter[1] = NOT_STARTED; m_auiEncounter[1] = NOT_STARTED;
sLog->outDebug("TSCR: Instance Old Hillsbrad: Thrall event failed %u times. Resetting all sub-events.",mThrallEventCount); sLog->OutDebug(LOG_FILTER_TSCR, "TSCR: Instance Old Hillsbrad: Thrall event failed %u times. Resetting all sub-events.",mThrallEventCount);
m_auiEncounter[2] = NOT_STARTED; m_auiEncounter[2] = NOT_STARTED;
m_auiEncounter[3] = NOT_STARTED; m_auiEncounter[3] = NOT_STARTED;
m_auiEncounter[4] = NOT_STARTED; m_auiEncounter[4] = NOT_STARTED;
@@ -173,29 +173,29 @@ public:
m_auiEncounter[3] = data; m_auiEncounter[3] = data;
m_auiEncounter[4] = data; m_auiEncounter[4] = data;
m_auiEncounter[5] = data; m_auiEncounter[5] = data;
sLog->outDebug("TSCR: Instance Old Hillsbrad: Thrall event failed %u times. Resetting all sub-events.",mThrallEventCount); sLog->OutDebug(LOG_FILTER_TSCR, "TSCR: Instance Old Hillsbrad: Thrall event failed %u times. Resetting all sub-events.",mThrallEventCount);
} }
} }
else else
m_auiEncounter[1] = data; m_auiEncounter[1] = data;
sLog->outDebug("TSCR: Instance Old Hillsbrad: Thrall escort event adjusted to data %u.",data); sLog->OutDebug(LOG_FILTER_TSCR, "TSCR: Instance Old Hillsbrad: Thrall escort event adjusted to data %u.",data);
break; break;
} }
case TYPE_THRALL_PART1: case TYPE_THRALL_PART1:
m_auiEncounter[2] = data; m_auiEncounter[2] = data;
sLog->outDebug("TSCR: Instance Old Hillsbrad: Thrall event part I adjusted to data %u.",data); sLog->OutDebug(LOG_FILTER_TSCR, "TSCR: Instance Old Hillsbrad: Thrall event part I adjusted to data %u.",data);
break; break;
case TYPE_THRALL_PART2: case TYPE_THRALL_PART2:
m_auiEncounter[3] = data; m_auiEncounter[3] = data;
sLog->outDebug("TSCR: Instance Old Hillsbrad: Thrall event part II adjusted to data %u.",data); sLog->OutDebug(LOG_FILTER_TSCR, "TSCR: Instance Old Hillsbrad: Thrall event part II adjusted to data %u.",data);
break; break;
case TYPE_THRALL_PART3: case TYPE_THRALL_PART3:
m_auiEncounter[4] = data; m_auiEncounter[4] = data;
sLog->outDebug("TSCR: Instance Old Hillsbrad: Thrall event part III adjusted to data %u.",data); sLog->OutDebug(LOG_FILTER_TSCR, "TSCR: Instance Old Hillsbrad: Thrall event part III adjusted to data %u.",data);
break; break;
case TYPE_THRALL_PART4: case TYPE_THRALL_PART4:
m_auiEncounter[5] = data; m_auiEncounter[5] = data;
sLog->outDebug("TSCR: Instance Old Hillsbrad: Thrall event part IV adjusted to data %u.",data); sLog->OutDebug(LOG_FILTER_TSCR, "TSCR: Instance Old Hillsbrad: Thrall event part IV adjusted to data %u.",data);
break; break;
} }
} }
@@ -65,7 +65,7 @@ public:
return plr; return plr;
} }
} }
sLog->outDebug("TSCR: Instance Razorfen Kraul: GetPlayerInMap, but PlayerList is empty!"); sLog->OutDebug(LOG_FILTER_TSCR, "TSCR: Instance Razorfen Kraul: GetPlayerInMap, but PlayerList is empty!");
return NULL; return NULL;
} }
@@ -118,7 +118,7 @@ public:
} }
} }
sLog->outDebug("TSCR: Instance Utgarde Keep: GetPlayerInMap, but PlayerList is empty!"); sLog->OutDebug(LOG_FILTER_TSCR, "TSCR: Instance Utgarde Keep: GetPlayerInMap, but PlayerList is empty!");
return NULL; return NULL;
} }
@@ -108,7 +108,7 @@ public:
if (creature->isAlive()) if (creature->isAlive())
{ {
++m_uiFelOverseerCount; ++m_uiFelOverseerCount;
sLog->outDebug("TSCR: Shadow Labyrinth: counting %u Fel Overseers.",m_uiFelOverseerCount); sLog->OutDebug(LOG_FILTER_TSCR, "TSCR: Shadow Labyrinth: counting %u Fel Overseers.",m_uiFelOverseerCount);
} }
break; break;
} }
@@ -133,11 +133,11 @@ public:
--m_uiFelOverseerCount; --m_uiFelOverseerCount;
if (m_uiFelOverseerCount) if (m_uiFelOverseerCount)
sLog->outDebug("TSCR: Shadow Labyrinth: %u Fel Overseers left to kill.",m_uiFelOverseerCount); sLog->OutDebug(LOG_FILTER_TSCR, "TSCR: Shadow Labyrinth: %u Fel Overseers left to kill.",m_uiFelOverseerCount);
else else
{ {
m_auiEncounter[1] = DONE; m_auiEncounter[1] = DONE;
sLog->outDebug("TSCR: Shadow Labyrinth: TYPE_OVERSEER == DONE"); sLog->OutDebug(LOG_FILTER_TSCR, "TSCR: Shadow Labyrinth: TYPE_OVERSEER == DONE");
} }
} }
break; break;
@@ -331,7 +331,7 @@ public:
if (reseting) if (reseting)
return; return;
sLog->outDebug("TSCR: Increasing Death Count for Shade of Akama encounter"); sLog->OutDebug(LOG_FILTER_TSCR, "TSCR: Increasing Death Count for Shade of Akama encounter");
++DeathCount; ++DeathCount;
me->RemoveAuraFromStack(SPELL_SHADE_SOUL_CHANNEL_2); me->RemoveAuraFromStack(SPELL_SHADE_SOUL_CHANNEL_2);
if (guid) if (guid)
@@ -389,7 +389,7 @@ public:
{ {
CAST_AI(mob_ashtongue_channeler::mob_ashtongue_channelerAI, (*itr)->AI())->ShadeGUID = me->GetGUID(); CAST_AI(mob_ashtongue_channeler::mob_ashtongue_channelerAI, (*itr)->AI())->ShadeGUID = me->GetGUID();
Channelers.push_back((*itr)->GetGUID()); Channelers.push_back((*itr)->GetGUID());
sLog->outDebug("TSCR: Shade of Akama Grid Search found channeler " UI64FMTD ". Adding to list", (*itr)->GetGUID()); sLog->OutDebug(LOG_FILTER_TSCR, "TSCR: Shade of Akama Grid Search found channeler " UI64FMTD ". Adding to list", (*itr)->GetGUID());
} }
} }
else sLog->outError("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");
@@ -136,7 +136,7 @@ public:
} }
} }
sLog->outDebug("TSCR: Instance Black Temple: GetPlayerInMap, but PlayerList is empty!"); sLog->OutDebug(LOG_FILTER_TSCR, "TSCR: Instance Black Temple: GetPlayerInMap, but PlayerList is empty!");
return NULL; return NULL;
} }
@@ -138,7 +138,7 @@ public:
if (GetData(TYPE_MEKGINEER_STEAMRIGGER) == SPECIAL) if (GetData(TYPE_MEKGINEER_STEAMRIGGER) == SPECIAL)
HandleGameObject(MainChambersDoor, true); HandleGameObject(MainChambersDoor, true);
sLog->outDebug("TSCR: Instance Steamvault: Access panel used."); sLog->OutDebug(LOG_FILTER_TSCR, "TSCR: Instance Steamvault: Access panel used.");
} }
m_auiEncounter[0] = data; m_auiEncounter[0] = data;
break; break;
@@ -150,7 +150,7 @@ public:
if (GetData(TYPE_HYDROMANCER_THESPIA) == SPECIAL) if (GetData(TYPE_HYDROMANCER_THESPIA) == SPECIAL)
HandleGameObject(MainChambersDoor, true); HandleGameObject(MainChambersDoor, true);
sLog->outDebug("TSCR: Instance Steamvault: Access panel used."); sLog->OutDebug(LOG_FILTER_TSCR, "TSCR: Instance Steamvault: Access panel used.");
} }
m_auiEncounter[1] = data; m_auiEncounter[1] = data;
break; break;
@@ -66,7 +66,7 @@ class instance_ramparts : public InstanceMapScript
void SetData(uint32 uiType, uint32 uiData) void SetData(uint32 uiType, uint32 uiData)
{ {
sLog->outDebug("TSCR: Instance Ramparts: SetData received for type %u with data %u",uiType,uiData); sLog->OutDebug(LOG_FILTER_TSCR, "TSCR: Instance Ramparts: SetData received for type %u with data %u",uiType,uiData);
switch(uiType) switch(uiType)
{ {
@@ -785,7 +785,7 @@ class boss_kaelthas : public CreatureScript
if (me->getThreatManager().getThreatList().size() >= 2) if (me->getThreatManager().getThreatList().size() >= 2)
for (uint32 i = 0; i < 3; ++i) for (uint32 i = 0; i < 3; ++i)
{ {
sLog->outDebug("SD2: Kael'Thas mind control not supported."); sLog->OutDebug(LOG_FILTER_TSCR, "SD2: Kael'Thas mind control not supported.");
//DoCast(pUnit, SPELL_MIND_CONTROL); //DoCast(pUnit, SPELL_MIND_CONTROL);
} }
+1 -1
View File
@@ -497,7 +497,7 @@ public:
return true; return true;
} }
sLog->outDebug("TSCR: npc_commander_dawnforge event already in progress, need to wait."); sLog->OutDebug(LOG_FILTER_TSCR, "TSCR: npc_commander_dawnforge event already in progress, need to wait.");
return false; return false;
} }
+1 -1
View File
@@ -160,7 +160,7 @@ public:
if (pPlayer->GetBaseSkillValue(SKILL_RIDING) == 300) if (pPlayer->GetBaseSkillValue(SKILL_RIDING) == 300)
return false; return false;
sLog->outDebug("TSCR: Player attempt to use item %u, but did not meet riding requirement",itemId); sLog->outDebug(LOG_FILTER_TSCR, "TSCR: Player attempt to use item %u, but did not meet riding requirement",itemId);
pPlayer->SendEquipError(EQUIP_ERR_CANT_EQUIP_SKILL,pItem,NULL); pPlayer->SendEquipError(EQUIP_ERR_CANT_EQUIP_SKILL,pItem,NULL);
return true; return true;
} }
+1 -1
View File
@@ -236,7 +236,7 @@ bool EquippedOk(Player* pPlayer, uint32 spellId)
if (pItem->GetProto()->RequiredSpell == reqSpell) if (pItem->GetProto()->RequiredSpell == reqSpell)
{ {
//player has item equipped that require specialty. Not allow to unlearn, player has to unequip first //player has item equipped that require specialty. Not allow to unlearn, player has to unequip first
sLog->outDebug("TSCR: player attempt to unlearn spell %u, but item %u is equipped.",reqSpell,pItem->GetProto()->ItemId); sLog->OutDebug(LOG_FILTER_TSCR, "TSCR: player attempt to unlearn spell %u, but item %u is equipped.",reqSpell,pItem->GetProto()->ItemId);
return false; return false;
} }
} }