Remove LOTS of compile warnings

--HG--
branch : trunk
This commit is contained in:
Spp
2010-04-19 09:26:37 +02:00
parent fdd8d2f3cc
commit 74dd02d024
549 changed files with 2082 additions and 2122 deletions
@@ -79,7 +79,7 @@ struct boss_amanitarAI : public ScriptedAI
}
}
void JustDied(Unit *Killer)
void JustDied(Unit * /*Killer*/)
{
if (pInstance)
{
@@ -88,7 +88,7 @@ struct boss_amanitarAI : public ScriptedAI
}
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
if (pInstance)
pInstance->SetData(DATA_AMANITAR_EVENT, IN_PROGRESS);
@@ -180,8 +180,8 @@ struct mob_amanitar_mushroomsAI : public Scripted_NoMovementAI
}
}
void EnterCombat(Unit *who) {}
void AttackStart(Unit *victim) {}
void EnterCombat(Unit * /*who*/) {}
void AttackStart(Unit * /*victim*/) {}
void UpdateAI(const uint32 diff)
{
@@ -91,7 +91,7 @@ struct boss_elder_nadoxAI : public ScriptedAI
pInstance->SetData(DATA_ELDER_NADOX_EVENT, NOT_STARTED);
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
DoScriptText(SAY_DEATH,me);
@@ -99,12 +99,12 @@ struct boss_elder_nadoxAI : public ScriptedAI
pInstance->SetData(DATA_ELDER_NADOX_EVENT, IN_PROGRESS);
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * /*victim*/)
{
DoScriptText(RAND(SAY_SLAY_1,SAY_SLAY_2,SAY_SLAY_3), me);
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
DoScriptText(SAY_SLAY_3,me); //SAY_SLAY_3 on death?
@@ -200,13 +200,13 @@ struct mob_ahnkahar_nerubianAI : public ScriptedAI
uiSprintTimer = 10*IN_MILISECONDS;
}
void JustDied(Unit *killer)
void JustDied(Unit * /*killer*/)
{
if (me->GetEntry() == MOB_AHNKAHAR_GUARDIAN_ENTRY)
DeadAhnkaharGuardian = true;
}
void EnterCombat(Unit *who){}
void EnterCombat(Unit * /*who*/){}
void UpdateAI(const uint32 diff)
{
@@ -246,10 +246,10 @@ struct mob_nadox_eggsAI : public Scripted_NoMovementAI
c->UpdateAllStats();
}
void Reset() {}
void EnterCombat(Unit* who) {}
void AttackStart(Unit* victim) {}
void MoveInLineOfSight(Unit* who) {}
void UpdateAI(const uint32 diff) {}
void EnterCombat(Unit* /*who*/) {}
void AttackStart(Unit* /*victim*/) {}
void MoveInLineOfSight(Unit* /*who*/) {}
void UpdateAI(const uint32 /*diff*/) {}
};
CreatureAI* GetAI_mob_ahnkahar_nerubian(Creature* pCreature)
@@ -87,7 +87,7 @@ struct boss_volazjAI : public ScriptedAI
return 100*(me->GetHealth()-damage)/me->GetMaxHealth();
}
void DamageTaken(Unit *pAttacker, uint32 &damage)
void DamageTaken(Unit * /*pAttacker*/, uint32 &damage)
{
if (me->HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE))
damage = 0;
@@ -161,7 +161,7 @@ struct boss_volazjAI : public ScriptedAI
me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
DoScriptText(SAY_AGGRO, me);
@@ -282,7 +282,7 @@ struct boss_volazjAI : public ScriptedAI
DoMeleeAttackIfReady();
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
DoScriptText(SAY_DEATH_1, me);
@@ -296,7 +296,7 @@ struct boss_volazjAI : public ScriptedAI
Summons.DespawnAll();
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * /*victim*/)
{
DoScriptText(RAND(SAY_SLAY_1,SAY_SLAY_2,SAY_SLAY_3), me);
}
@@ -141,7 +141,7 @@ struct boss_jedoga_shadowseekerAI : public ScriptedAI
DoScriptText(RAND(TEXT_SLAY_1, TEXT_SLAY_2, TEXT_SLAY_3), me);
}
void JustDied(Unit* Killer)
void JustDied(Unit* /*Killer*/)
{
DoScriptText(TEXT_DEATH, me);
if (pInstance)
@@ -508,11 +508,11 @@ struct npc_jedogas_aufseher_triggerAI : public Scripted_NoMovementAI
bool bCasted2;
void Reset() {}
void EnterCombat(Unit* who) {}
void AttackStart(Unit* victim) {}
void MoveInLineOfSight(Unit* who) {}
void EnterCombat(Unit* /*who*/) {}
void AttackStart(Unit* /*victim*/) {}
void MoveInLineOfSight(Unit* /*who*/) {}
void UpdateAI(const uint32 diff)
void UpdateAI(const uint32 /*diff*/)
{
if (!pInstance)
return;
@@ -110,7 +110,7 @@ struct boss_taldaramAI : public ScriptedAI
pInstance->SetData(DATA_PRINCE_TALDARAM_EVENT, NOT_STARTED);
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
if (pInstance)
pInstance->SetData(DATA_PRINCE_TALDARAM_EVENT, IN_PROGRESS);
@@ -237,7 +237,7 @@ struct boss_taldaramAI : public ScriptedAI
} else uiPhaseTimer -= diff;
}
void DamageTaken(Unit* done_by, uint32 &damage)
void DamageTaken(Unit* /*done_by*/, uint32 &damage)
{
Unit* pEmbraceTarget = GetEmbraceTarget();
@@ -254,7 +254,7 @@ struct boss_taldaramAI : public ScriptedAI
}
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
DoScriptText(SAY_DEATH, me);
@@ -262,7 +262,7 @@ struct boss_taldaramAI : public ScriptedAI
pInstance->SetData(DATA_PRINCE_TALDARAM_EVENT, DONE);
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * victim)
{
if (victim == me)
return;
@@ -342,10 +342,10 @@ struct mob_taldaram_flamesphereAI : public ScriptedAI
uiDespawnTimer = 10*IN_MILISECONDS;
}
void EnterCombat(Unit *who) {}
void MoveInLineOfSight(Unit *who) {}
void EnterCombat(Unit * /*who*/) {}
void MoveInLineOfSight(Unit * /*who*/) {}
void JustDied(Unit* slayer)
void JustDied(Unit* /*who*/)
{
DoCast(me, SPELL_FLAME_SPHERE_DEATH_EFFECT);
}
@@ -369,7 +369,7 @@ CreatureAI* GetAI_mob_taldaram_flamesphere(Creature* pCreature)
return new mob_taldaram_flamesphereAI (pCreature);
}
bool GOHello_prince_taldaram_sphere(Player *pPlayer, GameObject *pGO)
bool GOHello_prince_taldaram_sphere(Player * /*pPlayer*/, GameObject *pGO)
{
ScriptedInstance *pInstance = pGO->GetInstanceData();
@@ -90,7 +90,7 @@ struct instance_ahnkahet : public ScriptedInstance
return false;
}
void OnCreatureCreate(Creature* pCreature, bool add)
void OnCreatureCreate(Creature* pCreature, bool /*add*/)
{
switch(pCreature->GetEntry())
{
@@ -103,7 +103,7 @@ struct instance_ahnkahet : public ScriptedInstance
}
}
void OnGameObjectCreate(GameObject* pGo, bool add)
void OnGameObjectCreate(GameObject* pGo, bool /*add*/)
{
switch(pGo->GetEntry())
{
@@ -109,7 +109,7 @@ struct boss_anub_arakAI : public ScriptedAI
}
void EnterCombat(Unit *pWho)
void EnterCombat(Unit * /*who*/)
{
DoScriptText(SAY_AGGRO, me);
@@ -246,7 +246,7 @@ struct boss_anub_arakAI : public ScriptedAI
DoMeleeAttackIfReady();
}
void JustDied(Unit *pKiller)
void JustDied(Unit * /*pKiller*/)
{
DoScriptText(SAY_DEATH, me);
@@ -100,13 +100,13 @@ struct boss_hadronoxAI : public ScriptedAI
me->SetHealth(me->GetHealth()+health);
}
void JustDied(Unit* Killer)
void JustDied(Unit* /*Killer*/)
{
if (pInstance)
pInstance->SetData(DATA_HADRONOX_EVENT, DONE);
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
if (pInstance)
pInstance->SetData(DATA_HADRONOX_EVENT, IN_PROGRESS);
@@ -114,7 +114,7 @@ struct boss_krik_thirAI : public ScriptedAI
pInstance->SetData(DATA_KRIKTHIR_THE_GATEWATCHER_EVENT, NOT_STARTED);
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
DoScriptText(SAY_AGGRO, me);
Summon();
@@ -178,7 +178,7 @@ struct boss_krik_thirAI : public ScriptedAI
DoMeleeAttackIfReady();
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
DoScriptText(SAY_DEATH, me);
@@ -194,7 +194,7 @@ struct boss_krik_thirAI : public ScriptedAI
pInstance->DoCompleteAchievement(ACHIEV_WATH_HIM_DIE);
}
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * victim)
{
if (victim == me)
return;
@@ -212,7 +212,7 @@ struct npc_skittering_infectorAI : public ScriptedAI
{
npc_skittering_infectorAI(Creature *c) : ScriptedAI(c) {}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
//The spell is not working propperly
DoCast(me->getVictim(),SPELL_ACID_SPLASH, true);
@@ -344,7 +344,7 @@ struct npc_watcher_gashraAI : public ScriptedAI
uiInfectedBiteTimer = 4*IN_MILISECONDS;
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
DoCast(me, SPELL_ENRAGE, true);
}
@@ -63,7 +63,7 @@ struct instance_azjol_nerub : public ScriptedInstance
return false;
}
void OnCreatureCreate(Creature* pCreature, bool add)
void OnCreatureCreate(Creature* pCreature, bool /*add*/)
{
switch(pCreature->GetEntry())
{
@@ -76,7 +76,7 @@ struct instance_azjol_nerub : public ScriptedInstance
}
}
void OnGameObjectCreate(GameObject* pGo, bool add)
void OnGameObjectCreate(GameObject* pGo, bool /*add*/)
{
switch (pGo->GetEntry())
{
+29 -30
View File
@@ -76,7 +76,7 @@ bool GossipHello_npc_fizzcrank_fullthrottle(Player* pPlayer, Creature* pCreature
return true;
}
bool GossipSelect_npc_fizzcrank_fullthrottle(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_fizzcrank_fullthrottle(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
switch(uiAction)
{
@@ -147,7 +147,7 @@ bool GossipHello_npc_surristrasz(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_surristrasz(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_surristrasz(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
if (uiAction == GOSSIP_OPTION_GOSSIP)
{
@@ -181,7 +181,7 @@ bool GossipHello_npc_tiare(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_tiare(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_tiare(Player* pPlayer, Creature* /*pCreature*/, uint32 /*uiSender*/, uint32 uiAction)
{
if (uiAction == GOSSIP_OPTION_GOSSIP)
{
@@ -231,7 +231,7 @@ struct npc_sinkhole_kill_creditAI : public ScriptedAI
}
}
void EnterCombat(Unit* who){}
void EnterCombat(Unit* /*who*/){}
void UpdateAI(const uint32 diff)
{
@@ -361,7 +361,7 @@ bool GossipHello_npc_keristrasza(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_keristrasza(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_keristrasza(Player* pPlayer, Creature* /*pCreature*/, uint32 /*uiSender*/, uint32 uiAction)
{
if (uiAction == GOSSIP_ACTION_INFO_DEF + 1)
{
@@ -399,7 +399,7 @@ bool GossipHello_npc_corastrasza(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_corastrasza(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_corastrasza(Player* pPlayer, Creature* /*pCreature*/, uint32 /*uiSender*/, uint32 uiAction)
{
if (uiAction == GOSSIP_ACTION_INFO_DEF+1)
{
@@ -436,7 +436,7 @@ bool GossipHello_npc_iruk(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_iruk(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_iruk(Player* pPlayer, Creature* /*pCreature*/, uint32 /*uiSender*/, uint32 uiAction)
{
switch (uiAction)
{
@@ -463,8 +463,8 @@ struct mob_nerubar_victimAI : public ScriptedAI
mob_nerubar_victimAI(Creature *c) : ScriptedAI(c) {}
void Reset() {}
void EnterCombat(Unit *who) {}
void MoveInLineOfSight(Unit *who) {}
void EnterCombat(Unit * /*who*/) {}
void MoveInLineOfSight(Unit * /*who*/) {}
void JustDied(Unit* Killer)
{
@@ -556,12 +556,12 @@ struct npc_jennyAI : public ScriptedAI
}
}
void DamageTaken(Unit* pDone_by, uint32& uiDamage)
void DamageTaken(Unit* /*pDone_by*/, uint32& /*uiDamage*/)
{
DoCast(me, SPELL_DROP_CRATE, true);
}
void UpdateAI(const uint32 diff)
void UpdateAI(const uint32 /*diff*/)
{
if (setCrateNumber)
{
@@ -664,10 +664,10 @@ struct npc_nesingwary_trapperAI : public ScriptedAI
Phase = 1;
go_caribouGUID = 0;
}
void EnterCombat(Unit *who) {}
void MoveInLineOfSight(Unit *who) {}
void EnterCombat(Unit * /*who*/) {}
void MoveInLineOfSight(Unit * /*who*/) {}
void JustDied(Unit *who)
void JustDied(Unit * /*who*/)
{
if (GameObject *go_caribou = me->GetMap()->GetGameObject(go_caribouGUID))
go_caribou->SetLootState(GO_JUST_DEACTIVATED);
@@ -972,7 +972,7 @@ struct npc_nexus_drake_hatchlingAI : public FollowerAI //The spell who makes the
}
}
void UpdateAI(const uint32 diff)
void UpdateAI(const uint32 /*diff*/)
{
if (WithRedDragonBlood && HarpoonerGUID && !me->HasAura(SPELL_RED_DRAGONBLOOD))
{
@@ -1294,7 +1294,7 @@ struct npc_thassarianAI : public npc_escortAI
DoMeleeAttackIfReady();
}
void JustDied(Unit* pKiller)
void JustDied(Unit* /*pKiller*/)
{
if (Creature* pTalbot = me->GetCreature(*me, uiTalbot))
pTalbot->RemoveFromWorld();
@@ -1323,7 +1323,7 @@ bool GossipHello_npc_thassarian(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_thassarian(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_thassarian(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
switch (uiAction)
{
@@ -1353,7 +1353,7 @@ struct npc_image_lich_kingAI : public ScriptedAI
me->RestoreFaction();
}
void MovementInform(uint32 uiType, uint32 uiId)
void MovementInform(uint32 uiType, uint32 /*uiId*/)
{
if (uiType != POINT_MOTION_TYPE)
return;
@@ -1377,7 +1377,7 @@ struct npc_general_arlosAI : public ScriptedAI
{
npc_general_arlosAI(Creature* pCreature) : ScriptedAI(pCreature) {}
void MovementInform(uint32 uiType, uint32 uiId)
void MovementInform(uint32 uiType, uint32 /*uiId*/)
{
if (uiType != POINT_MOTION_TYPE)
return;
@@ -1430,7 +1430,7 @@ struct npc_counselor_talbotAI : public ScriptedAI
uiDeflectionTimer = urand(20000,25000);
uiSoulBlastTimer = urand (12000,18000);
}
void MovementInform(uint32 uiType, uint32 uiId)
void MovementInform(uint32 uiType, uint32 /*uiId*/)
{
if (uiType != POINT_MOTION_TYPE)
return;
@@ -1527,7 +1527,7 @@ struct npc_leryssaAI : public ScriptedAI
uint32 Phase;
uint32 uiPhaseTimer;
void MovementInform(uint32 uiType, uint32 uiId)
void MovementInform(uint32 uiType, uint32 /*uiId*/)
{
if (uiType != POINT_MOTION_TYPE)
return;
@@ -1683,7 +1683,7 @@ struct npc_beryl_sorcererAI : public FollowerAI
}
}
void UpdateAI(const uint32 uiDiff)
void UpdateAI(const uint32 /*uiDiff*/)
{
if (!UpdateVictim())
return;
@@ -1732,9 +1732,8 @@ struct npc_imprisoned_beryl_sorcererAI : public ScriptedAI
CasterGUID = NULL;
}
void EnterCombat(Unit* pWho)
void EnterCombat(Unit* /*pWho*/)
{
return;
}
void SpellHit(Unit* pUnit, const SpellEntry* pSpell)
@@ -1870,7 +1869,7 @@ struct npc_mootoo_the_youngerAI : public npc_escortAI
SetDespawnAtFar(false);
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
if (Player* pPlayer=GetPlayerForEscort())
pPlayer->FailQuest(QUEST_ESCAPING_THE_MIST);
@@ -1957,13 +1956,13 @@ struct npc_bonker_togglevoltAI : public npc_escortAI
SetDespawnAtFar(false);
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
if (Player* pPlayer = GetPlayerForEscort())
pPlayer->FailQuest(QUEST_ESCAPING_THE_MIST);
}
void UpdateEscortAI(const uint32 diff)
void UpdateEscortAI(const uint32 /*diff*/)
{
if (GetAttack() && UpdateVictim())
{
@@ -2090,7 +2089,7 @@ struct npc_trapped_mammoth_calfAI : public ScriptedAI
bStarted = true;
}
void MovementInform(uint32 uiType, uint32 uiId)
void MovementInform(uint32 uiType, uint32 /*uiId*/)
{
GameObject* pTrap;
if (uiType != POINT_MOTION_TYPE)
@@ -2280,9 +2279,9 @@ struct npc_warmage_coldarraAI : public Scripted_NoMovementAI
m_uiTimer = 0;
}
void Aggro(Unit* pWho){}
void Aggro(Unit* /*pWho*/) {}
void AttackStart(Unit* pWho){}
void AttackStart(Unit* /*pWho*/) {}
void UpdateAI(const uint32 uiDiff)
{
@@ -85,7 +85,7 @@ struct boss_eadricAI : public ScriptedAI
bDone = false;
}
void DamageTaken(Unit *done_by, uint32 &damage)
void DamageTaken(Unit * /*done_by*/, uint32 &damage)
{
if (damage >= me->GetHealth())
{
@@ -96,7 +96,7 @@ struct boss_eadricAI : public ScriptedAI
}
}
void MovementInform(uint32 MovementType, uint32 Data)
void MovementInform(uint32 MovementType, uint32 /*Data*/)
{
if (MovementType != POINT_MOTION_TYPE)
return;
@@ -199,13 +199,13 @@ struct boss_paletressAI : public ScriptedAI
pMemory->RemoveFromWorld();
}
void SetData(uint32 uiId, uint32 uiValue)
void SetData(uint32 uiId, uint32 /*uiValue*/)
{
if (uiId == 1)
me->RemoveAura(SPELL_SHIELD);
}
void DamageTaken(Unit *done_by, uint32 &damage)
void DamageTaken(Unit * /*done_by*/, uint32 &damage)
{
if (damage >= me->GetHealth())
{
@@ -358,7 +358,7 @@ struct npc_memoryAI : public ScriptedAI
DoMeleeAttackIfReady();
}
void JustDied(Unit* pKiller)
void JustDied(Unit* /*pKiller*/)
{
if (me->isSummon())
{
@@ -412,7 +412,7 @@ struct npc_argent_soldierAI : public npc_escortAI
}
}
void SetData(uint32 uiType, uint32 uiData)
void SetData(uint32 uiType, uint32 /*uiData*/)
{
switch(me->GetEntry())
{
@@ -474,7 +474,7 @@ struct npc_argent_soldierAI : public npc_escortAI
DoMeleeAttackIfReady();
}
void JustDied(Unit* pKiller)
void JustDied(Unit* /*pKiller*/)
{
if (pInstance)
pInstance->SetData(DATA_ARGENT_SOLDIER_DEFEATED,pInstance->GetData(DATA_ARGENT_SOLDIER_DEFEATED) + 1);
@@ -257,7 +257,7 @@ struct boss_black_knightAI : public ScriptedAI
DoMeleeAttackIfReady();
}
void DamageTaken(Unit* pDoneBy, uint32& uiDamage)
void DamageTaken(Unit* /*pDoneBy*/, uint32& uiDamage)
{
if (uiDamage > me->GetHealth() && uiPhase <= PHASE_SKELETON)
{
@@ -278,7 +278,7 @@ struct boss_black_knightAI : public ScriptedAI
}
}
void JustDied(Unit* pKiller)
void JustDied(Unit* /*pKiller*/)
{
if (pInstance)
pInstance->SetData(BOSS_BLACK_KNIGHT,DONE);
@@ -332,7 +332,7 @@ struct npc_black_knight_skeletal_gryphonAI : public npc_escortAI
Start(false,true,0,NULL);
}
void WaypointReached(uint32 i)
void WaypointReached(uint32 /*i*/)
{
}
@@ -166,7 +166,7 @@ struct generic_vehicleAI_toc5AI : public npc_escortAI
uiBuffTimer = urand(30000,60000);
}
void SetData(uint32 uiType, uint32 uiData)
void SetData(uint32 uiType, uint32 /*uiData*/)
{
switch(uiType)
{
@@ -210,7 +210,7 @@ struct generic_vehicleAI_toc5AI : public npc_escortAI
}
}
void EnterCombat(Unit* pWho)
void EnterCombat(Unit* /*pWho*/)
{
DoCastSpellShield();
}
@@ -406,7 +406,7 @@ struct boss_warrior_toc5AI : public ScriptedAI
DoMeleeAttackIfReady();
}
void JustDied(Unit* pKiller)
void JustDied(Unit* /*pKiller*/)
{
if (pInstance)
pInstance->SetData(BOSS_GRAND_CHAMPIONS, DONE);
@@ -540,7 +540,7 @@ struct boss_mage_toc5AI : public ScriptedAI
DoMeleeAttackIfReady();
}
void JustDied(Unit* pKiller)
void JustDied(Unit* /*pKiller*/)
{
if (pInstance)
pInstance->SetData(BOSS_GRAND_CHAMPIONS, DONE);
@@ -681,7 +681,7 @@ struct boss_shaman_toc5AI : public ScriptedAI
DoMeleeAttackIfReady();
}
void JustDied(Unit* pKiller)
void JustDied(Unit* /*pKiller*/)
{
if (pInstance)
pInstance->SetData(BOSS_GRAND_CHAMPIONS, DONE);
@@ -830,7 +830,7 @@ struct boss_hunter_toc5AI : public ScriptedAI
DoMeleeAttackIfReady();
}
void JustDied(Unit* pKiller)
void JustDied(Unit* /*pKiller*/)
{
if (pInstance)
pInstance->SetData(BOSS_GRAND_CHAMPIONS, DONE);
@@ -945,7 +945,7 @@ struct boss_rouge_toc5AI : public ScriptedAI
DoMeleeAttackIfReady();
}
void JustDied(Unit* pKiller)
void JustDied(Unit* /*pKiller*/)
{
if (pInstance)
pInstance->SetData(BOSS_GRAND_CHAMPIONS, DONE);
@@ -90,7 +90,7 @@ struct instance_trial_of_the_champion : public ScriptedInstance
return false;
}
void OnCreatureCreate(Creature* pCreature, bool bAdd)
void OnCreatureCreate(Creature* pCreature, bool /*bAdd*/)
{
Map::PlayerList const &players = instance->GetPlayers();
uint32 TeamInInstance = 0;
@@ -141,7 +141,7 @@ struct instance_trial_of_the_champion : public ScriptedInstance
}
}
void OnGameObjectCreate(GameObject* pGO, bool bAdd)
void OnGameObjectCreate(GameObject* pGO, bool /*bAdd*/)
{
switch(pGO->GetEntry())
{
@@ -111,7 +111,7 @@ struct npc_announcer_toc5AI : public ScriptedAI
uiPhase = uiPhaseStep;
}
void SetData(uint32 uiType, uint32 uiData)
void SetData(uint32 uiType, uint32 /*uiData*/)
{
switch (uiType)
{
@@ -488,7 +488,7 @@ bool GossipHello_npc_announcer_toc5(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_announcer_toc5(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_announcer_toc5(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
if (uiAction == GOSSIP_ACTION_INFO_DEF+1)
{
+1 -1
View File
@@ -54,7 +54,7 @@ struct npc_warmage_violetstandAI : public Scripted_NoMovementAI
uiTargetGUID = 0;
}
void UpdateAI(const uint32 uiDiff)
void UpdateAI(const uint32 /*uiDiff*/)
{
if (me->IsNonMeleeSpellCasted(false))
return;
+4 -4
View File
@@ -53,9 +53,9 @@ struct npc_mageguard_dalaranAI : public Scripted_NoMovementAI
void Reset(){}
void Aggro(Unit* pWho){}
void Aggro(Unit* /*pWho*/){}
void AttackStart(Unit* pWho){}
void AttackStart(Unit* /*pWho*/){}
void MoveInLineOfSight(Unit *pWho)
{
@@ -97,7 +97,7 @@ struct npc_mageguard_dalaranAI : public Scripted_NoMovementAI
return;
}
void UpdateAI(const uint32 diff){}
void UpdateAI(const uint32 /*diff*/){}
};
CreatureAI* GetAI_npc_mageguard_dalaran(Creature* pCreature)
@@ -131,7 +131,7 @@ bool GossipHello_npc_hira_snowdawn(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_hira_snowdawn(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_hira_snowdawn(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
if (uiAction == GOSSIP_ACTION_TRAIN)
pPlayer->SEND_TRAINERLIST(pCreature->GetGUID());
+1 -1
View File
@@ -48,7 +48,7 @@ bool GossipHello_npc_alexstrasza_wr_gate(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_alexstrasza_wr_gate(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_alexstrasza_wr_gate(Player* pPlayer, Creature* /*pCreature*/, uint32 /*uiSender*/, uint32 uiAction)
{
if (uiAction == GOSSIP_ACTION_INFO_DEF+1)
{
@@ -79,7 +79,7 @@ struct boss_dredAI : public ScriptedAI
uiRaptorCallTimer = urand(20*IN_MILISECONDS,25*IN_MILISECONDS);
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
if (pInstance)
pInstance->SetData(DATA_DRED_EVENT,IN_PROGRESS);
@@ -136,7 +136,7 @@ struct boss_dredAI : public ScriptedAI
DoMeleeAttackIfReady();
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
if (pInstance)
{
@@ -184,7 +184,7 @@ struct npc_drakkari_gutripperAI : public ScriptedAI
DoMeleeAttackIfReady();
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
if (pInstance)
{
@@ -232,7 +232,7 @@ struct npc_drakkari_scytheclawAI : public ScriptedAI
DoMeleeAttackIfReady();
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
if (pInstance)
{
@@ -114,7 +114,7 @@ struct boss_novosAI : public Scripted_NoMovementAI
}
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
DoScriptText(SAY_AGGRO, me);
Phase = PHASE_1;
@@ -167,7 +167,7 @@ struct boss_novosAI : public Scripted_NoMovementAI
break;
}
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
DoScriptText(SAY_DEATH, me);
if (pInstance)
@@ -180,7 +180,7 @@ struct boss_novosAI : public Scripted_NoMovementAI
lSummons.DespawnAll();
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * victim)
{
if (victim == me)
return;
@@ -240,7 +240,7 @@ struct mob_crystal_handlerAI : public ScriptedAI
uiFlashOfDarknessTimer = 5*IN_MILISECONDS;
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
if (Creature* pNovos = Unit::GetCreature(*me, pInstance ? pInstance->GetData64(DATA_NOVOS) : 0))
CAST_AI(boss_novosAI,pNovos->AI())->RemoveCrystal();
@@ -96,7 +96,7 @@ struct boss_tharon_jaAI : public ScriptedAI
pInstance->SetData(DATA_THARON_JA_EVENT, NOT_STARTED);
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
DoScriptText(SAY_AGGRO, me);
@@ -218,12 +218,12 @@ struct boss_tharon_jaAI : public ScriptedAI
}
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * /*victim*/)
{
DoScriptText(RAND(SAY_KILL_1,SAY_KILL_2),me);
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
DoScriptText(SAY_DEATH,me);
@@ -94,7 +94,7 @@ struct boss_trollgoreAI : public ScriptedAI
pInstance->SetData(DATA_TROLLGORE_EVENT, NOT_STARTED);
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
DoScriptText(SAY_AGGRO, me);
@@ -152,7 +152,7 @@ struct boss_trollgoreAI : public ScriptedAI
DoMeleeAttackIfReady();
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
DoScriptText(SAY_DEATH, me);
@@ -166,7 +166,7 @@ struct boss_trollgoreAI : public ScriptedAI
}
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * victim)
{
if (victim == me)
return;
@@ -84,7 +84,7 @@ struct instance_drak_tharon : public ScriptedInstance
return false;
}
void OnGameObjectCreate(GameObject* pGo, bool add)
void OnGameObjectCreate(GameObject* pGo, bool /*add*/)
{
switch(pGo->GetEntry())
{
@@ -103,7 +103,7 @@ struct instance_drak_tharon : public ScriptedInstance
}
}
void OnCreatureCreate(Creature* pCreature, bool add)
void OnCreatureCreate(Creature* pCreature, bool /*add*/)
{
switch(pCreature->GetEntry())
{
@@ -90,7 +90,7 @@ struct boss_bronjahmAI : public ScriptedAI
pInstance->SetData(DATA_BRONJAHM_EVENT, NOT_STARTED);
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
DoScriptText(SAY_AGGRO, me);
@@ -98,7 +98,7 @@ struct boss_bronjahmAI : public ScriptedAI
pInstance->SetData(DATA_BRONJAHM_EVENT, IN_PROGRESS);
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
DoScriptText(SAY_DEATH, me);
@@ -106,7 +106,7 @@ struct boss_bronjahmAI : public ScriptedAI
pInstance->SetData(DATA_BRONJAHM_EVENT, DONE);
}
void KilledUnit(Unit *pWho)
void KilledUnit(Unit * /*who*/)
{
DoScriptText(RAND(SAY_SLAY_1,SAY_SLAY_2), me);
}
@@ -215,14 +215,14 @@ struct mob_corrupted_soul_fragmentAI : public ScriptedAI
}
void MovementInform(uint32 type, uint32 id)
void MovementInform(uint32 /*type*/, uint32 /*id*/)
{
if (pInstance)
if (Creature* pBronjham = Unit::GetCreature(*me,pInstance->GetData64(DATA_BRONJAHM)))
DoCast(pBronjham,SPELL_CONSUME_SOUL);
}
void UpdateAI(const uint32 diff) {}
void UpdateAI(const uint32 /*diff*/) {}
};
CreatureAI* GetAI_mob_corrupted_soul_fragment(Creature* pCreature)
@@ -152,7 +152,7 @@ struct boss_devourer_of_soulsAI : public ScriptedAI
pInstance->SetData(DATA_DEVOURER_EVENT, NOT_STARTED);
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
if (pInstance)
pInstance->SetData(DATA_DEVOURER_EVENT, IN_PROGRESS);
@@ -166,7 +166,7 @@ struct boss_devourer_of_soulsAI : public ScriptedAI
events.ScheduleEvent(EVENT_WAILING_SOULS, urand(60000,70000));
}
void DamageTaken(Unit *pDoneBy, uint32 &uiDamage)
void DamageTaken(Unit * /*pDoneBy*/, uint32 &uiDamage)
{
if (uiMirroredSoulTarget && me->HasAura(SPELL_MIRRORED_SOUL))
{
@@ -184,13 +184,13 @@ struct boss_devourer_of_soulsAI : public ScriptedAI
}
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * /*victim*/)
{
DoScriptText(RAND(SAY_FACE_ANGER_SLAY_1,SAY_FACE_SORROW_SLAY_1,SAY_FACE_DESIRE_SLAY_1,
SAY_FACE_ANGER_SLAY_2,SAY_FACE_SORROW_SLAY_2,SAY_FACE_DESIRE_SLAY_2), me);
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
Position spawnPoint = { 5618.139, 2451.873, 705.854 };
@@ -224,7 +224,7 @@ struct boss_devourer_of_soulsAI : public ScriptedAI
}
}
void SpellHitTarget(Unit* pTarget, const SpellEntry *pSpell)
void SpellHitTarget(Unit* /*pTarget*/, const SpellEntry *pSpell)
{
if (pSpell->Id == H_SPELL_PHANTOM_BLAST)
bThreeFaceAchievement = false;
@@ -362,7 +362,7 @@ bool GossipHello_npc_jaina_or_slyvanas_fos(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_jaina_or_slyvanas_fos(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_jaina_or_slyvanas_fos(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
switch(uiAction)
{
@@ -390,7 +390,7 @@ struct mob_spiteful_apparitionAI: public ScriptedAI
events.Reset();
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
events.ScheduleEvent(EVENT_SPITE, 8000);
}
@@ -434,7 +434,7 @@ struct mob_spectral_wardenAI: public ScriptedAI
events.Reset();
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
events.ScheduleEvent(EVENT_VEIL_OF_SHADOWS, 5000);
events.ScheduleEvent(EVENT_WAIL_OF_SOULS, 10000);
@@ -483,7 +483,7 @@ struct mob_soulguard_watchmanAI: public ScriptedAI
events.Reset();
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
events.ScheduleEvent(EVENT_SHROUD_OF_RUNES, 1000);
events.ScheduleEvent(EVENT_UNHOLY_RAGE, 1000);
@@ -531,7 +531,7 @@ struct mob_soulguard_reaperAI: public ScriptedAI
events.Reset();
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
events.ScheduleEvent(EVENT_FROST_NOVA, 8000);
events.ScheduleEvent(EVENT_SHADOW_LANCE, 5000);
@@ -581,7 +581,7 @@ struct mob_soulguard_bonecasterAI: public ScriptedAI
events.Reset();
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
events.ScheduleEvent(EVENT_BONE_VOLLEY, 6000);
events.ScheduleEvent(EVENT_RAISE_DEAD, 25000);
@@ -635,7 +635,7 @@ struct mob_soulguard_animatorAI: public ScriptedAI
events.Reset();
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
events.ScheduleEvent(EVENT_RAISE_DEAD, 25000);
events.ScheduleEvent(EVENT_SHADOW_BOLT, 5000);
@@ -697,7 +697,7 @@ struct mob_soulguard_adeptAI: public ScriptedAI
events.Reset();
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
events.ScheduleEvent(EVENT_RAISE_DEAD, 25000);
events.ScheduleEvent(EVENT_SHADOW_BOLT, 8000);
@@ -758,7 +758,7 @@ struct mob_soul_horrorAI: public ScriptedAI
events.Reset();
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
events.ScheduleEvent(EVENT_SOUL_STRIKE, 6000);
}
@@ -53,7 +53,7 @@ struct instance_forge_of_souls : public ScriptedInstance
return false;
}
void OnCreatureCreate(Creature* pCreature, bool add)
void OnCreatureCreate(Creature* pCreature, bool /*add*/)
{
Map::PlayerList const &players = instance->GetPlayers();
@@ -45,7 +45,7 @@ struct instance_halls_of_reflection : public ScriptedInstance
m_auiEncounter[i] = NOT_STARTED;
}
void OnCreatureCreate(Creature* pCreature, bool add)
void OnCreatureCreate(Creature* pCreature, bool /*add*/)
{
switch(pCreature->GetEntry())
{
@@ -87,7 +87,7 @@ struct boss_garfrostAI : public ScriptedAI
pInstance->SetData(DATA_GARFROST_EVENT, NOT_STARTED);
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
DoScriptText(SAY_AGGRO, me);
DoCast(me, SPELL_PERMAFROST);
@@ -98,7 +98,7 @@ struct boss_garfrostAI : public ScriptedAI
events.ScheduleEvent(EVENT_THROW_SARONITE, 45000);
}
void DamageTaken(Unit* pDoneBy, uint32& uiDamage)
void DamageTaken(Unit* /*pDoneBy*/, uint32& /*uiDamage*/)
{
if (HealthBelowPct(66) && !phase2)
{
@@ -126,7 +126,7 @@ struct boss_garfrostAI : public ScriptedAI
}
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * victim)
{
if (victim == me)
return;
@@ -134,7 +134,7 @@ struct boss_garfrostAI : public ScriptedAI
DoScriptText(RAND(SAY_SLAY_1,SAY_SLAY_2), me);
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
DoScriptText(SAY_DEATH, me);
if (pInstance)
@@ -142,7 +142,7 @@ struct boss_ickAI : public ScriptedAI
return me->GetCreature(*me, pInstance ? pInstance->GetData64(DATA_KRICK) : 0);
}
void EnterCombat(Unit *pWho)
void EnterCombat(Unit * /*who*/)
{
if (pInstance)
pInstance->SetData(DATA_KRICKANDICK_EVENT, IN_PROGRESS);
@@ -168,7 +168,7 @@ struct boss_ickAI : public ScriptedAI
ScriptedAI::EnterEvadeMode();
}
void JustDied(Unit* pKiller)
void JustDied(Unit* /*pKiller*/)
{
if (Creature* pKrick = GetKrick())
{
@@ -291,7 +291,7 @@ struct boss_krickAI : public ScriptedAI
return me->GetCreature(*me, pInstance ? pInstance->GetData64(DATA_ICK) : 0);
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * victim)
{
if (victim == me)
return;
@@ -299,7 +299,7 @@ struct boss_krickAI : public ScriptedAI
DoScriptText(RAND(SAY_KRICK_SLAY_1,SAY_KRICK_SLAY_2), me);
}
void DamageTaken(Unit *pDoneBy, uint32 &uiDamage)
void DamageTaken(Unit * /*pDoneBy*/, uint32 &uiDamage)
{
// if killed whatever the reason, it breaks the outro
uiDamage = 0;
@@ -107,7 +107,7 @@ struct boss_tyrannusAI : public ScriptedAI
return me->GetCreature(*me, pInstance->GetData64(DATA_RIMEFANG));
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
DoScriptText(SAY_AGGRO, me);
me->ExitVehicle();
@@ -123,12 +123,12 @@ struct boss_tyrannusAI : public ScriptedAI
events.ScheduleEvent(EVENT_DARK_MIGHT, 40000);
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * /*victim*/)
{
DoScriptText(RAND(SAY_SLAY_1,SAY_SLAY_2), me);
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
DoScriptText(SAY_DEATH, me);
@@ -196,7 +196,7 @@ struct boss_rimefangAI : public ScriptedAI
events.Reset();
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
me->InterruptSpell(CURRENT_GENERIC_SPELL);
me->HandleEmoteCommand(EMOTE_ONESHOT_LIFTOFF);
@@ -61,7 +61,7 @@ struct instance_pit_of_saron : public ScriptedInstance
return false;
}
void OnCreatureCreate(Creature* pCreature, bool add)
void OnCreatureCreate(Creature* pCreature, bool /*add*/)
{
Map::PlayerList const &players = instance->GetPlayers();
@@ -161,7 +161,7 @@ struct mob_ymirjar_wrathbringerAI : public ScriptedAI
events.Reset();
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
events.ScheduleEvent(EVENT_BLIGHT, 7000);
}
@@ -206,7 +206,7 @@ struct mob_ymirjar_skyCallerAI: public ScriptedAI
events.Reset();
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
events.ScheduleEvent(EVENT_FROSTBLADE, 1);
events.ScheduleEvent(EVENT_GLACIAL_STRIKE, 8000);
@@ -255,7 +255,7 @@ struct mob_ymirjar_flamebearerAI: public ScriptedAI
events.Reset();
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
events.ScheduleEvent(EVENT_FIREBALL, 4000);
events.ScheduleEvent(EVENT_HELLFIRE, 8000);
@@ -312,7 +312,7 @@ struct mob_ymirjar_deathbringerAI: public ScriptedAI
events.Reset();
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
events.ScheduleEvent(EVENT_EMPOWERED_SHADOW_BOLT, 8000);
}
@@ -357,7 +357,7 @@ struct mob_wrathbone_laborerAI: public ScriptedAI
events.Reset();
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
events.ScheduleEvent(EVENT_BLINDING_DIRT, 8000);
events.ScheduleEvent(EVENT_PUNCTURE_WOUND, 9000);
@@ -413,7 +413,7 @@ struct mob_wrathbone_coldwraithAI: public ScriptedAI
events.Reset();
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
events.ScheduleEvent(EVENT_FREEZING_CIRCLE, 9000);
events.ScheduleEvent(EVENT_FROSTBOLT, 5000);
@@ -464,7 +464,7 @@ struct mob_stonespine_gargoyleAI: public ScriptedAI
events.Reset();
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
events.ScheduleEvent(EVENT_GARGOYLE_STRIKE, 5000);
}
@@ -513,7 +513,7 @@ struct mob_plagueborn_horrorAI: public ScriptedAI
events.Reset();
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
events.ScheduleEvent(EVENT_BLIGHT_BOMB, 999999);
events.ScheduleEvent(EVENT_PUSTULANT_FLESH, 5000);
@@ -568,7 +568,7 @@ struct mob_iceborn_protodrakeAI: public ScriptedAI
events.Reset();
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
events.ScheduleEvent(EVENT_FROST_BREATH, 5000);
}
@@ -612,7 +612,7 @@ struct mob_hungering_ghoulAI: public ScriptedAI
events.Reset();
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
events.ScheduleEvent(EVENT_DEVOUR_FLESH, 4000);
}
@@ -656,7 +656,7 @@ struct mob_fallen_warriorAI: public ScriptedAI
events.Reset();
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
events.ScheduleEvent(EVENT_ARCING_SLICE, 8000);
events.ScheduleEvent(EVENT_DEMORALIZING_SHOUT, 20000);
@@ -710,7 +710,7 @@ struct mob_deathwhisper_torturerAI: public ScriptedAI
events.Reset();
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
events.ScheduleEvent(EVENT_BLACK_BRAND, 10000);
events.ScheduleEvent(EVENT_CURSE_OF_AGONY, 6000);
@@ -761,7 +761,7 @@ struct mob_deathwhisper_shadowcasterAI: public ScriptedAI
events.Reset();
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
events.ScheduleEvent(EVENT_SHADOW_BOLT, 3000);
}
@@ -806,7 +806,7 @@ struct mob_deathwhisper_necrolyteAI: public ScriptedAI
events.Reset();
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
events.ScheduleEvent(EVENT_CONVERSION_BEAM, 12000);
events.ScheduleEvent(EVENT_SHADOW_BOLT_2, 4000);
@@ -857,7 +857,7 @@ struct mob_wrathbone_sorcererAI: public ScriptedAI
events.Reset();
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
events.ScheduleEvent(EVENT_SHADOW_BOLT_3, 3000);
}
@@ -902,7 +902,7 @@ struct mob_geist_ambusherAI: public ScriptedAI
events.Reset();
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
//Only here so when I figure out how to make it cast on an NPC i can do that.
events.ScheduleEvent(EVENT_LEAPING_FACE_MAUL, 99999);
+5 -5
View File
@@ -86,7 +86,7 @@ bool GossipHello_npc_orsonn_and_kodian(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_orsonn_and_kodian(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_orsonn_and_kodian(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
switch(uiAction)
{
@@ -267,7 +267,7 @@ struct npc_emilyAI : public npc_escortAI
}
}
void EnterCombat(Unit* Who)
void EnterCombat(Unit* /*Who*/)
{
DoScriptText(SAY_RANDOMAGGRO, me);
}
@@ -348,9 +348,9 @@ struct npc_mrfloppyAI : public ScriptedAI
void EnterEvadeMode() {}
void MoveInLineOfSight(Unit *who) {}
void MoveInLineOfSight(Unit * /*who*/) {}
void UpdateAI(const uint32 diff)
void UpdateAI(const uint32 /*diff*/)
{
if (!UpdateVictim())
return;
@@ -437,7 +437,7 @@ struct npc_tallhorn_stagAI : public ScriptedAI
m_uiPhase = 1;
}
void UpdateAI(const uint32 uiDiff)
void UpdateAI(const uint32 /*uiDiff*/)
{
if (m_uiPhase = 1)
{
@@ -64,7 +64,7 @@ struct boss_drakkari_colossusAI : public ScriptedAI
bHealth1 = false;
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
if (pInstance)
pInstance->SetData(DATA_DRAKKARI_COLOSSUS_EVENT, IN_PROGRESS);
@@ -122,7 +122,7 @@ struct boss_drakkari_colossusAI : public ScriptedAI
DoMeleeAttackIfReady();
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
if (pInstance)
pInstance->SetData(DATA_DRAKKARI_COLOSSUS_EVENT, DONE);
@@ -162,7 +162,7 @@ struct boss_drakkari_elementalAI : public ScriptedAI
me->RemoveFromWorld();
}
void MovementInform(uint32 uiType, uint32 uiId)
void MovementInform(uint32 uiType, uint32 /*uiId*/)
{
if (uiType != POINT_MOTION_TYPE)
return;
@@ -202,7 +202,7 @@ struct boss_drakkari_elementalAI : public ScriptedAI
DoMeleeAttackIfReady();
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
if (Creature *pColossus = Unit::GetCreature(*me, pInstance ? pInstance->GetData64(DATA_DRAKKARI_COLOSSUS) : 0))
pColossus->Kill(pColossus);
@@ -227,7 +227,7 @@ struct npc_living_mojoAI : public ScriptedAI
uiMojoPuddleTimer = 7*IN_MILISECONDS;
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
//Check if the npc is near of Drakkari Colossus.
@@ -240,7 +240,7 @@ struct npc_living_mojoAI : public ScriptedAI
}
}
void DamageTaken(Unit* pDone_by, uint32& uiDamage)
void DamageTaken(Unit* pDone_by, uint32& /*uiDamage*/)
{
if (me->HasReactState(REACT_PASSIVE))
{
+3 -3
View File
@@ -59,7 +59,7 @@ struct boss_eckAI : public ScriptedAI
pInstance->SetData(DATA_ECK_THE_FEROCIOUS_EVENT, NOT_STARTED);
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
if (pInstance)
pInstance->SetData(DATA_ECK_THE_FEROCIOUS_EVENT, IN_PROGRESS);
@@ -115,7 +115,7 @@ struct boss_eckAI : public ScriptedAI
DoMeleeAttackIfReady();
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
if (pInstance)
pInstance->SetData(DATA_ECK_THE_FEROCIOUS_EVENT, DONE);
@@ -136,7 +136,7 @@ struct npc_ruins_dwellerAI : public ScriptedAI
ScriptedInstance* pInstance;
void JustDied(Unit *who)
void JustDied(Unit * /*who*/)
{
if (pInstance)
{
@@ -116,7 +116,7 @@ struct boss_gal_darahAI : public ScriptedAI
pInstance->SetData(DATA_GAL_DARAH_EVENT, NOT_STARTED);
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
DoScriptText(SAY_AGGRO, me);
@@ -238,7 +238,7 @@ struct boss_gal_darahAI : public ScriptedAI
DoMeleeAttackIfReady();
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
DoScriptText(SAY_DEATH, me);
@@ -263,7 +263,7 @@ struct boss_gal_darahAI : public ScriptedAI
}
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * victim)
{
if (victim == me)
return;
@@ -77,7 +77,7 @@ struct boss_moorabiAI : public ScriptedAI
pInstance->SetData(DATA_MOORABI_EVENT, NOT_STARTED);
}
void EnterCombat(Unit* pWho)
void EnterCombat(Unit* /*pWho*/)
{
DoScriptText(SAY_AGGRO, me);
DoCast(me, SPELL_MOJO_FRENZY, true);
@@ -137,7 +137,7 @@ struct boss_moorabiAI : public ScriptedAI
DoMeleeAttackIfReady();
}
void JustDied(Unit* pKiller)
void JustDied(Unit* /*pKiller*/)
{
DoScriptText(SAY_DEATH, me);
@@ -98,7 +98,7 @@ struct boss_slad_ranAI : public ScriptedAI
pInstance->SetData(DATA_SLAD_RAN_EVENT, NOT_STARTED);
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
DoScriptText(SAY_AGGRO, me);
@@ -159,7 +159,7 @@ struct boss_slad_ranAI : public ScriptedAI
DoMeleeAttackIfReady();
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
DoScriptText(SAY_DEATH, me);
@@ -167,7 +167,7 @@ struct boss_slad_ranAI : public ScriptedAI
pInstance->SetData(DATA_SLAD_RAN_EVENT, DONE);
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * /*victim*/)
{
DoScriptText(RAND(SAY_SLAY_1,SAY_SLAY_2,SAY_SLAY_3), me);
}
@@ -128,7 +128,7 @@ struct instance_gundrak : public ScriptedInstance
return false;
}
void OnCreatureCreate(Creature* pCreature, bool add)
void OnCreatureCreate(Creature* pCreature, bool /*add*/)
{
switch(pCreature->GetEntry())
{
@@ -144,7 +144,7 @@ struct instance_gundrak : public ScriptedInstance
}
}
void OnGameObjectCreate(GameObject* pGo, bool add)
void OnGameObjectCreate(GameObject* pGo, bool /*add*/)
{
switch(pGo->GetEntry())
{
@@ -490,10 +490,10 @@ struct instance_gundrak : public ScriptedInstance
}
};
bool GOHello_altar(Player *pPlayer, GameObject *pGO)
bool GOHello_altar(Player * /*pPlayer*/, GameObject *pGO)
{
ScriptedInstance *pInstance = pGO->GetInstanceData();
uint64 uiStatue;
uint64 uiStatue = 0;
pGO->SetFlag(GAMEOBJECT_FLAGS, GO_FLAG_UNK1);
pGO->SetGoState(GO_STATE_ACTIVE);
+3 -3
View File
@@ -72,7 +72,7 @@ struct npc_Apothecary_HanesAI : public npc_escortAI
PotTimer = 10000; //10 sec cooldown on potion
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
if (Player* pPlayer = GetPlayerForEscort())
pPlayer->FailQuest(QUEST_TRAIL_OF_FIRE);
@@ -250,7 +250,7 @@ bool GossipHello_npc_razael_and_lyana(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_razael_and_lyana(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_razael_and_lyana(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
switch (uiAction)
{
@@ -292,7 +292,7 @@ bool GossipHello_npc_mcgoyver(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_mcgoyver(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_mcgoyver(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
switch(uiAction)
{
+6 -6
View File
@@ -68,7 +68,7 @@ bool GossipHello_npc_arete(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_arete(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_arete(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
switch(uiAction)
{
@@ -123,7 +123,7 @@ bool GossipHello_npc_dame_evniki_kapsalis(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_dame_evniki_kapsalis(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_dame_evniki_kapsalis(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
if (uiAction == GOSSIP_ACTION_TRADE)
pPlayer->SEND_VENDORLIST(pCreature->GetGUID());
@@ -160,7 +160,7 @@ bool GossipHello_npc_squire_david(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_squire_david(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_squire_david(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
if (uiAction == GOSSIP_ACTION_INFO_DEF+1)
{
@@ -201,7 +201,7 @@ struct npc_argent_valiantAI : public ScriptedAI
uiShieldBreakerTimer = 10000;
}
void MovementInform(uint32 uiType, uint32 uiId)
void MovementInform(uint32 uiType, uint32 /*uiId*/)
{
if (uiType != POINT_MOTION_TYPE)
return;
@@ -263,7 +263,7 @@ struct npc_argent_tournament_postAI : public ScriptedAI
{
npc_argent_tournament_postAI(Creature* pCreature) : ScriptedAI(pCreature) {}
void UpdateAI(const uint32 uiDiff)
void UpdateAI(const uint32 /*uiDiff*/)
{
if (me->IsNonMeleeSpellCasted(false))
return;
@@ -308,7 +308,7 @@ struct npc_alorah_and_grimminAI : public ScriptedAI
uiCast = 1;
}
void UpdateAI(const uint32 uiDiff)
void UpdateAI(const uint32 /*uiDiff*/)
{
if (uiCast = 1)
{
@@ -83,7 +83,7 @@ struct boss_anubrekhanAI : public BossAI
DoScriptText(SAY_SLAY, me);
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
_EnterCombat();
DoScriptText(SAY_AGGRO, me);
@@ -66,7 +66,7 @@ struct boss_faerlinaAI : public BossAI
bool doDelayFrenzy;
bool bAchievement;
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
_EnterCombat();
DoScriptText(RAND(SAY_AGGRO_1,SAY_AGGRO_2,SAY_AGGRO_3,SAY_AGGRO_4), me);
@@ -92,13 +92,13 @@ struct boss_faerlinaAI : public BossAI
BossAI::MoveInLineOfSight(who);
}
void KilledUnit(Unit* victim)
void KilledUnit(Unit* /*victim*/)
{
if (!(rand()%3))
DoScriptText(RAND(SAY_SLAY_1,SAY_SLAY_2), me);
}
void JustDied(Unit* Killer)
void JustDied(Unit* /*Killer*/)
{
_JustDied();
DoScriptText(SAY_DEATH, me);
@@ -186,7 +186,7 @@ struct mob_faerlina_addAI : public ScriptedAI
}
}
void JustDied(Unit *killer)
void JustDied(Unit * /*killer*/)
{
if (pInstance && getDifficulty() == RAID_DIFFICULTY_10MAN_NORMAL)
{
@@ -262,7 +262,7 @@ struct boss_four_horsemenAI : public BossAI
}
}
void KilledUnit(Unit* victim)
void KilledUnit(Unit* /*victim*/)
{
if (!(rand()%5))
{
@@ -273,7 +273,7 @@ struct boss_four_horsemenAI : public BossAI
}
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
events.Reset();
summons.DespawnAll();
@@ -294,7 +294,7 @@ struct boss_four_horsemenAI : public BossAI
DoScriptText(SAY_DEATH[id], me);
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
_EnterCombat();
@@ -72,7 +72,7 @@ struct boss_gluthAI : public BossAI
BossAI::MoveInLineOfSight(who);
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
for (uint32 i = 0; i < 3; ++i)
if (Creature *trigger = DoSummon(WORLD_TRIGGER, PosSummon[i]))
@@ -171,7 +171,7 @@ struct boss_gothikAI : public BossAI
thirtyPercentReached = false;
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
for (uint32 i = 0; i < POS_LIVE; ++i)
if (Creature *trigger = DoSummon(WORLD_TRIGGER, PosSummonLive[i]))
@@ -219,13 +219,13 @@ struct boss_gothikAI : public BossAI
summons.Despawn(summon);
}
void KilledUnit(Unit* victim)
void KilledUnit(Unit* /*victim*/)
{
if (!(rand()%5))
DoScriptText(SAY_KILL, me);
}
void JustDied(Unit* Killer)
void JustDied(Unit* /*Killer*/)
{
LiveTriggerGUID.clear();
DeadTriggerGUID.clear();
@@ -334,7 +334,7 @@ struct boss_gothikAI : public BossAI
return false;
}
void SpellHit(Unit *caster, const SpellEntry *spell)
void SpellHit(Unit * /*caster*/, const SpellEntry *spell)
{
uint32 spellId = 0;
switch(spell->Id)
@@ -504,7 +504,7 @@ struct mob_gothik_minionAI : public CombatAI
damage = 0;
}
void JustDied(Unit *killer)
void JustDied(Unit * /*killer*/)
{
if (me->isSummon())
{
@@ -39,7 +39,7 @@ struct boss_grobbulusAI : public BossAI
me->ApplySpellImmune(0, IMMUNITY_ID, SPELL_POISON_CLOUD_ADD, true);
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
_EnterCombat();
events.ScheduleEvent(EVENT_CLOUD, 15000);
@@ -49,19 +49,19 @@ struct boss_heiganAI : public BossAI
bool eruptDirection;
Phases phase;
void KilledUnit(Unit* Victim)
void KilledUnit(Unit* /*Victim*/)
{
if (!(rand()%5))
DoScriptText(SAY_SLAY, me);
}
void JustDied(Unit* Killer)
void JustDied(Unit* /*Killer*/)
{
_JustDied();
DoScriptText(SAY_DEATH, me);
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
_EnterCombat();
DoScriptText(SAY_AGGRO, me);
@@ -321,7 +321,7 @@ struct boss_kelthuzadAI : public BossAI
DoScriptText(RAND(SAY_SLAY_1,SAY_SLAY_2), me);
}
void JustDied(Unit* Killer)
void JustDied(Unit* /*Killer*/)
{
_JustDied();
DoScriptText(SAY_DEATH, me);
@@ -335,7 +335,7 @@ struct boss_kelthuzadAI : public BossAI
chained.clear();
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
me->setFaction(uiFaction);
@@ -634,7 +634,7 @@ CreatureAI* GetAI_boss_kelthuzadAI(Creature* pCreature)
return new boss_kelthuzadAI (pCreature);
}
bool AreaTrigger_at_kelthuzad_center(Player* pPlayer, const AreaTriggerEntry *at)
bool AreaTrigger_at_kelthuzad_center(Player* pPlayer, const AreaTriggerEntry * /*at*/)
{
if (pPlayer->isGameMaster())
return false;
@@ -41,7 +41,7 @@ struct boss_loathebAI : public BossAI
{
boss_loathebAI(Creature *c) : BossAI(c, BOSS_LOATHEB) {}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
_EnterCombat();
events.ScheduleEvent(EVENT_AURA, 10000);
@@ -63,7 +63,7 @@ struct boss_maexxnaAI : public BossAI
bool enraged;
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
_EnterCombat();
enraged = false;
@@ -142,7 +142,7 @@ struct mob_webwrapAI : public NullCreatureAI
uint64 victimGUID;
void SetGUID(const uint64 &guid, int32 param)
void SetGUID(const uint64 &guid, int32 /*param*/)
{
victimGUID = guid;
if (me->m_spells[0] && victimGUID)
@@ -150,7 +150,7 @@ struct mob_webwrapAI : public NullCreatureAI
victim->CastSpell(victim, me->m_spells[0], true, NULL, NULL, me->GetGUID());
}
void JustDied(Unit *killer)
void JustDied(Unit * /*killer*/)
{
if (me->m_spells[0] && victimGUID)
if (Unit *victim = Unit::GetUnit(*me, victimGUID))
@@ -75,7 +75,7 @@ struct boss_nothAI : public BossAI
_Reset();
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
_EnterCombat();
DoScriptText(SAY_AGGRO, me);
@@ -100,7 +100,7 @@ struct boss_nothAI : public BossAI
}
}
void KilledUnit(Unit* victim)
void KilledUnit(Unit* /*victim*/)
{
if (!(rand()%5))
DoScriptText(SAY_SLAY, me);
@@ -113,7 +113,7 @@ struct boss_nothAI : public BossAI
summon->AI()->DoZoneInCombat();
}
void JustDied(Unit* Killer)
void JustDied(Unit* /*Killer*/)
{
_JustDied();
DoScriptText(SAY_DEATH, me);
@@ -55,13 +55,13 @@ struct boss_patchwerkAI : public BossAI
uint32 EncounterTime;
void KilledUnit(Unit* Victim)
void KilledUnit(Unit* /*Victim*/)
{
if (!(rand()%5))
DoScriptText(SAY_SLAY, me);
}
void JustDied(Unit* Killer)
void JustDied(Unit* /*Killer*/)
{
_JustDied();
DoScriptText(SAY_DEATH, me);
@@ -82,7 +82,7 @@ struct boss_patchwerkAI : public BossAI
}
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
_EnterCombat();
Enraged = false;
@@ -57,7 +57,7 @@ struct boss_razuviousAI : public BossAI
{
boss_razuviousAI(Creature *c) : BossAI(c, BOSS_RAZUVIOUS) {}
void KilledUnit(Unit* victim)
void KilledUnit(Unit* /*victim*/)
{
if (!(rand()%3))
DoPlaySoundToSet(me, SOUND_SLAY);
@@ -72,14 +72,14 @@ struct boss_razuviousAI : public BossAI
}
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
_JustDied();
DoPlaySoundToSet(me, SOUND_DEATH);
me->CastSpell(me, SPELL_HOPELESS, true); // TODO: this may affect other creatures
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
_EnterCombat();
DoPlaySoundToSet(me, SOUND_AGGRO);
@@ -111,7 +111,7 @@ struct boss_sapphironAI : public BossAI
CheckFrostResistTimer = 5000;
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
_EnterCombat();
@@ -136,7 +136,7 @@ struct boss_sapphironAI : public BossAI
}
}
void JustDied(Unit* who)
void JustDied(Unit* /*who*/)
{
_JustDied();
me->CastSpell(me, SPELL_DIES, true);
@@ -128,13 +128,13 @@ struct boss_thaddiusAI : public BossAI
bool checkFeugenAlive;
uint32 uiAddsTimer;
void KilledUnit(Unit* victim)
void KilledUnit(Unit* /*victim*/)
{
if (!(rand()%5))
DoScriptText(SAY_SLAY, me);
}
void JustDied(Unit* Killer)
void JustDied(Unit* /*Killer*/)
{
_JustDied();
DoScriptText(SAY_DEATH, me);
@@ -171,7 +171,7 @@ struct boss_thaddiusAI : public BossAI
}
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
_EnterCombat();
DoScriptText(RAND(SAY_AGGRO_1,SAY_AGGRO_2,SAY_AGGRO_3), me);
@@ -180,7 +180,7 @@ struct boss_thaddiusAI : public BossAI
events.ScheduleEvent(EVENT_BERSERK, 360000);
}
void DamageTaken(Unit *pDoneBy, uint32 &uiDamage)
void DamageTaken(Unit * /*pDoneBy*/, uint32 & /*uiDamage*/)
{
me->SetReactState(REACT_AGGRESSIVE);
}
@@ -270,12 +270,12 @@ struct mob_stalaggAI : public ScriptedAI
magneticPullTimer = 20000;
}
void EnterCombat(Unit *pWho)
void EnterCombat(Unit * /*pWho*/)
{
DoCast(SPELL_STALAGG_TESLA);
}
void JustDied(Unit *killer)
void JustDied(Unit * /*killer*/)
{
if (pInstance)
if (Creature *pThaddius = me->GetCreature(*me, pInstance->GetData64(DATA_THADDIUS)))
@@ -347,12 +347,12 @@ struct mob_feugenAI : public ScriptedAI
staticFieldTimer = 5000;
}
void EnterCombat(Unit *pWho)
void EnterCombat(Unit * /*pWho*/)
{
DoCast(SPELL_FEUGEN_TESLA);
}
void JustDied(Unit *killer)
void JustDied(Unit * /*killer*/)
{
if (pInstance)
if (Creature *pThaddius = me->GetCreature(*me, pInstance->GetData64(DATA_THADDIUS)))
@@ -95,7 +95,7 @@ struct boss_malygosAI : public ScriptedAI
//Source Deadly Boss Mod
enrage = 615000; //10 min
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
if (phase == 1)
DoScriptText(SAY_PHASE1_AGGRO, me);
@@ -104,9 +104,9 @@ struct boss_malygosAI : public ScriptedAI
if (phase == 3)
DoScriptText(SAY_PHASE1_AGGRO, me);
}
void AttackStart(Unit* who) {}
void MoveInLineOfSight(Unit* who) {}
void UpdateAI(const uint32 diff)
void AttackStart(Unit* /*who*/) {}
void MoveInLineOfSight(Unit* /*who*/) {}
void UpdateAI(const uint32 /*diff*/)
{
phase =1;
//Return since we have no target
@@ -122,11 +122,11 @@ struct boss_malygosAI : public ScriptedAI
DoMeleeAttackIfReady();
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
DoScriptText(SAY_DEATH, me);
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * victim)
{
if (victim == me)
return;
@@ -86,7 +86,7 @@ struct boss_anomalusAI : public ScriptedAI
pInstance->SetData(DATA_ANOMALUS_EVENT, NOT_STARTED);
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
DoScriptText(SAY_AGGRO, me);
@@ -94,7 +94,7 @@ struct boss_anomalusAI : public ScriptedAI
pInstance->SetData(DATA_ANOMALUS_EVENT, IN_PROGRESS);
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
DoScriptText(SAY_DEATH, me);
@@ -195,7 +195,7 @@ struct mob_chaotic_riftAI : public Scripted_NoMovementAI
DoCast(me, SPELL_ARCANEFORM, false);
}
void JustDied(Unit *killer)
void JustDied(Unit * /*killer*/)
{
if (Creature* pAnomalus = Unit::GetCreature(*me, pInstance ? pInstance->GetData64(DATA_ANOMALUS) : 0))
CAST_AI(boss_anomalusAI,pAnomalus->AI())->bDeadChaoticRift = true;
@@ -86,7 +86,7 @@ struct boss_keristraszaAI : public ScriptedAI
pInstance->SetData(DATA_KERISTRASZA_EVENT, NOT_STARTED);
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
DoScriptText(SAY_AGGRO, me);
DoCastAOE(SPELL_INTENSE_COLD);
@@ -95,7 +95,7 @@ struct boss_keristraszaAI : public ScriptedAI
pInstance->SetData(DATA_KERISTRASZA_EVENT, IN_PROGRESS);
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
DoScriptText(SAY_DEATH, me);
@@ -107,7 +107,7 @@ struct boss_keristraszaAI : public ScriptedAI
}
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * /*victim*/)
{
DoScriptText(SAY_SLAY, me);
}
@@ -215,7 +215,7 @@ CreatureAI* GetAI_boss_keristrasza(Creature* pCreature)
return new boss_keristraszaAI (pCreature);
}
bool GOHello_containment_sphere(Player *pPlayer, GameObject *pGO)
bool GOHello_containment_sphere(Player * /*pPlayer*/, GameObject *pGO)
{
ScriptedInstance *pInstance = pGO->GetInstanceData();
@@ -109,7 +109,7 @@ struct boss_magus_telestraAI : public ScriptedAI
pInstance->SetData(DATA_MAGUS_TELESTRA_EVENT, NOT_STARTED);
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
DoScriptText(SAY_AGGRO, me);
@@ -117,7 +117,7 @@ struct boss_magus_telestraAI : public ScriptedAI
pInstance->SetData(DATA_MAGUS_TELESTRA_EVENT, IN_PROGRESS);
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
DoScriptText(SAY_DEATH, me);
@@ -129,7 +129,7 @@ struct boss_magus_telestraAI : public ScriptedAI
}
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * /*victim*/)
{
DoScriptText(SAY_KILL, me);
}
@@ -86,7 +86,7 @@ struct boss_ormorokAI : public ScriptedAI
pInstance->SetData(DATA_ORMOROK_EVENT, NOT_STARTED);
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
DoScriptText(SAY_AGGRO, me);
@@ -94,7 +94,7 @@ struct boss_ormorokAI : public ScriptedAI
pInstance->SetData(DATA_ORMOROK_EVENT, IN_PROGRESS);
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
DoScriptText(SAY_DEATH, me);
@@ -102,7 +102,7 @@ struct boss_ormorokAI : public ScriptedAI
pInstance->SetData(DATA_ORMOROK_EVENT, DONE);
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * /*victim*/)
{
DoScriptText(SAY_KILL, me);
}
@@ -125,7 +125,7 @@ struct boss_ormorokAI : public ScriptedAI
fSpikeXY[3][0] = fBaseX-(SPIKE_DISTANCE*uiCrystalSpikesCount*cos(fBaseO-(M_PI/2)));
fSpikeXY[3][1] = fBaseY-(SPIKE_DISTANCE*uiCrystalSpikesCount*sin(fBaseO-(M_PI/2)));
for (uint8 i = 0; i < 4; ++i)
Creature* Spike = me->SummonCreature(MOB_CRYSTAL_SPIKE, fSpikeXY[i][0], fSpikeXY[i][1], fBaseZ, 0, TEMPSUMMON_TIMED_DESPAWN, 7*IN_MILISECONDS);
me->SummonCreature(MOB_CRYSTAL_SPIKE, fSpikeXY[i][0], fSpikeXY[i][1], fBaseZ, 0, TEMPSUMMON_TIMED_DESPAWN, 7*IN_MILISECONDS);
if (++uiCrystalSpikesCount >= 13)
bCrystalSpikes = false;
uiCrystalSpikesTimer2 = 200;
@@ -28,10 +28,10 @@ struct boss_commander_kolurgAI : public ScriptedAI
boss_commander_kolurgAI(Creature *c) : ScriptedAI(c) {}
void Reset() {}
void EnterCombat(Unit* who) {}
void AttackStart(Unit* who) {}
void MoveInLineOfSight(Unit* who) {}
void UpdateAI(const uint32 diff)
void EnterCombat(Unit* /*who*/) {}
void AttackStart(Unit* /*who*/) {}
void MoveInLineOfSight(Unit* /*who*/) {}
void UpdateAI(const uint32 /*diff*/)
{
//Return since we have no target
if (!UpdateVictim())
@@ -39,7 +39,7 @@ struct boss_commander_kolurgAI : public ScriptedAI
DoMeleeAttackIfReady();
}
void JustDied(Unit* killer) {}
void JustDied(Unit* /*killer*/) {}
};
CreatureAI* GetAI_boss_commander_kolurg(Creature* pCreature)
@@ -28,13 +28,13 @@ struct boss_commander_stoutbeardAI : public ScriptedAI
boss_commander_stoutbeardAI(Creature *c) : ScriptedAI(c) {}
void Reset() {}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
DoScriptText(SAY_AGGRO, me);
}
void AttackStart(Unit* who) {}
void MoveInLineOfSight(Unit* who) {}
void UpdateAI(const uint32 diff)
void AttackStart(Unit* /*who*/) {}
void MoveInLineOfSight(Unit* /*who*/) {}
void UpdateAI(const uint32 /*diff*/)
{
//Return since we have no target
if (!UpdateVictim())
@@ -42,7 +42,7 @@ struct boss_commander_stoutbeardAI : public ScriptedAI
DoMeleeAttackIfReady();
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
DoScriptText(SAY_DEATH, me);
}
@@ -48,7 +48,7 @@ struct instance_nexus : public ScriptedInstance
Keristrasza = 0;
}
void OnCreatureCreate(Creature *pCreature, bool bAdd)
void OnCreatureCreate(Creature *pCreature, bool /*bAdd*/)
{
Map::PlayerList const &players = instance->GetPlayers();
uint32 TeamInInstance = 0;
@@ -110,7 +110,7 @@ struct instance_nexus : public ScriptedInstance
}
}
void OnGameObjectCreate(GameObject *pGo, bool bAdd)
void OnGameObjectCreate(GameObject *pGo, bool /*bAdd*/)
{
switch (pGo->GetEntry())
{
@@ -74,7 +74,7 @@ struct boss_drakosAI : public ScriptedAI
pInstance->SetData(DATA_DRAKOS_EVENT, NOT_STARTED);
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
DoScriptText(SAY_AGGRO, me);
@@ -144,14 +144,14 @@ struct boss_drakosAI : public ScriptedAI
DoMeleeAttackIfReady();
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
DoScriptText(SAY_DEATH, me);
if (pInstance)
pInstance->SetData(DATA_DRAKOS_EVENT, DONE);
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * /*victim*/)
{
DoScriptText(RAND(SAY_KILL_1,SAY_KILL_2,SAY_KILL_3), me);
}
@@ -89,15 +89,15 @@ struct boss_eregosAI : public ScriptedAI
pInstance->SetData(DATA_EREGOS_EVENT, NOT_STARTED);
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
if (pInstance)
pInstance->SetData(DATA_EREGOS_EVENT, IN_PROGRESS);
}
void AttackStart(Unit* who) {}
void MoveInLineOfSight(Unit* who) {}
void UpdateAI(const uint32 diff)
void AttackStart(Unit* /*who*/) {}
void MoveInLineOfSight(Unit* /*who*/) {}
void UpdateAI(const uint32 /*diff*/)
{
//Return since we have no target
if (!UpdateVictim())
@@ -106,7 +106,7 @@ struct boss_eregosAI : public ScriptedAI
DoMeleeAttackIfReady();
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
if (pInstance)
pInstance->SetData(DATA_EREGOS_EVENT, DONE);
@@ -59,7 +59,7 @@ struct boss_uromAI : public ScriptedAI
if (pInstance)
pInstance->SetData(DATA_UROM_EVENT, NOT_STARTED);
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
DoScriptText(SAY_AGGRO, me);
@@ -67,9 +67,9 @@ struct boss_uromAI : public ScriptedAI
pInstance->SetData(DATA_UROM_EVENT, IN_PROGRESS);
}
void AttackStart(Unit* who) {}
void MoveInLineOfSight(Unit* who) {}
void UpdateAI(const uint32 diff)
void AttackStart(Unit* /*who*/) {}
void MoveInLineOfSight(Unit* /*who*/) {}
void UpdateAI(const uint32 /*diff*/)
{
//Return since we have no target
if (!UpdateVictim())
@@ -77,14 +77,14 @@ struct boss_uromAI : public ScriptedAI
DoMeleeAttackIfReady();
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
DoScriptText(SAY_DEATH, me);
if (pInstance)
pInstance->SetData(DATA_UROM_EVENT, DONE);
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * victim)
{
if (victim == me)
return;
@@ -57,16 +57,16 @@ struct boss_varosAI : public ScriptedAI
if (pInstance)
pInstance->SetData(DATA_VAROS_EVENT, NOT_STARTED);
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
DoScriptText(SAY_AGGRO, me);
if (pInstance)
pInstance->SetData(DATA_VAROS_EVENT, IN_PROGRESS);
}
void AttackStart(Unit* who) {}
void MoveInLineOfSight(Unit* who) {}
void UpdateAI(const uint32 diff)
void AttackStart(Unit* /*who*/) {}
void MoveInLineOfSight(Unit* /*who*/) {}
void UpdateAI(const uint32 /*diff*/)
{
//Return since we have no target
if (!UpdateVictim())
@@ -74,14 +74,14 @@ struct boss_varosAI : public ScriptedAI
DoMeleeAttackIfReady();
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
DoScriptText(SAY_DEATH, me);
if (pInstance)
pInstance->SetData(DATA_VAROS_EVENT, DONE);
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * victim)
{
if (victim == me)
return;
@@ -37,7 +37,7 @@ struct instance_oculus : public ScriptedInstance
uint8 m_auiEncounter[MAX_ENCOUNTER];
std::string str_data;
void OnCreatureCreate(Creature* pCreature, bool add)
void OnCreatureCreate(Creature* pCreature, bool /*add*/)
{
switch(pCreature->GetEntry())
{
@@ -63,7 +63,7 @@ bool GossipHello_npc_oculus_drake(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_oculus_drake(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_oculus_drake(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
switch(pCreature->GetEntry())
{
@@ -272,7 +272,7 @@ struct boss_sartharionAI : public ScriptedAI
pInstance->SetData(TYPE_SARTHARION_EVENT, NOT_STARTED);
}
void EnterCombat(Unit* pWho)
void EnterCombat(Unit* /*pWho*/)
{
DoScriptText(SAY_SARTHARION_AGGRO,me);
DoZoneInCombat();
@@ -284,7 +284,7 @@ struct boss_sartharionAI : public ScriptedAI
}
}
void JustDied(Unit* pKiller)
void JustDied(Unit* /*pKiller*/)
{
DoScriptText(SAY_SARTHARION_DEATH,me);
@@ -301,7 +301,7 @@ struct boss_sartharionAI : public ScriptedAI
}
}
void KilledUnit(Unit* pVictim)
void KilledUnit(Unit* /*pVictim*/)
{
DoScriptText(RAND(SAY_SARTHARION_SLAY_1,SAY_SARTHARION_SLAY_2,SAY_SARTHARION_SLAY_3), me);
}
@@ -722,9 +722,9 @@ struct dummy_dragonAI : public ScriptedAI
case NPC_VESPERON:
{
if (pInstance && !pInstance->GetData(TYPE_SARTHARION_EVENT) == IN_PROGRESS)
Creature* Acolyte = me->SummonCreature(NPC_ACOLYTE_OF_VESPERON, AcolyteofVesperon.x, AcolyteofVesperon.y , AcolyteofVesperon.z, 0, TEMPSUMMON_CORPSE_TIMED_DESPAWN,20000);
me->SummonCreature(NPC_ACOLYTE_OF_VESPERON, AcolyteofVesperon.x, AcolyteofVesperon.y , AcolyteofVesperon.z, 0, TEMPSUMMON_CORPSE_TIMED_DESPAWN,20000);
else
Creature* Acolyte = me->SummonCreature(NPC_ACOLYTE_OF_VESPERON, AcolyteofVesperon2.x, AcolyteofVesperon2.y , AcolyteofVesperon2.z, 0, TEMPSUMMON_CORPSE_TIMED_DESPAWN,20000);
me->SummonCreature(NPC_ACOLYTE_OF_VESPERON, AcolyteofVesperon2.x, AcolyteofVesperon2.y , AcolyteofVesperon2.z, 0, TEMPSUMMON_CORPSE_TIMED_DESPAWN,20000);
iTextId = WHISPER_OPEN_PORTAL;
break;
@@ -742,7 +742,7 @@ struct dummy_dragonAI : public ScriptedAI
//Refresh respawnTime so time again are set to 30secs?
}
void JustDied(Unit* pKiller)
void JustDied(Unit* /*pKiller*/)
{
int32 iTextId = 0;
uint32 uiSpellId = 0;
@@ -818,14 +818,14 @@ struct mob_tenebronAI : public dummy_dragonAI
m_uiHatchEggTimer = 30000;
}
void Aggro(Unit* pWho)
void Aggro(Unit* /*pWho*/)
{
DoScriptText(SAY_TENEBRON_AGGRO, me);
DoZoneInCombat();
DoCast(me, SPELL_POWER_OF_TENEBRON);
}
void KilledUnit(Unit* pVictim)
void KilledUnit(Unit* /*pVictim*/)
{
DoScriptText(RAND(SAY_TENEBRON_SLAY_1,SAY_TENEBRON_SLAY_2), me);
/*if (pInstance->GetData(TYPE_SARTHARION_EVENT) == IN_PROGRESS)
@@ -905,14 +905,14 @@ struct mob_shadronAI : public dummy_dragonAI
me->RemoveAurasDueToSpell(SPELL_GIFT_OF_TWILIGTH_SHA);
}
void Aggro(Unit* pWho)
void Aggro(Unit* /*pWho*/)
{
DoScriptText(SAY_SHADRON_AGGRO,me);
DoZoneInCombat();
DoCast(me, SPELL_POWER_OF_SHADRON);
}
void KilledUnit(Unit* pVictim)
void KilledUnit(Unit* /*pVictim*/)
{
DoScriptText(RAND(SAY_SHADRON_SLAY_1,SAY_SHADRON_SLAY_2), me);
/*if (pInstance->GetData(TYPE_SARTHARION_EVENT) == IN_PROGRESS)
@@ -989,14 +989,14 @@ struct mob_vesperonAI : public dummy_dragonAI
m_uiAcolyteVesperonTimer = 60000;
}
void Aggro(Unit* pWho)
void Aggro(Unit* /*pWho*/)
{
DoScriptText(SAY_VESPERON_AGGRO,me);
DoZoneInCombat();
DoCast(me, SPELL_POWER_OF_VESPERON);
}
void KilledUnit(Unit* pVictim)
void KilledUnit(Unit* /*pVictim*/)
{
DoScriptText(RAND(SAY_VESPERON_SLAY_1,SAY_VESPERON_SLAY_2), me);
/*if (pInstance->GetData(TYPE_SARTHARION_EVENT) == IN_PROGRESS)
@@ -1088,11 +1088,11 @@ struct mob_acolyte_of_shadronAI : public ScriptedAI
me->AddAura(SPELL_TWILIGHT_SHIFT_ENTER,me);
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
if (pInstance)
{
Creature* pDebuffTarget = NULL;
//Creature* pDebuffTarget = NULL;
Map *map = me->GetMap();
if (map->IsDungeon())
{
@@ -1130,7 +1130,7 @@ struct mob_acolyte_of_shadronAI : public ScriptedAI
}
}
void UpdateAI(const uint32 uiDiff)
void UpdateAI(const uint32 /*uiDiff*/)
{
if (!UpdateVictim())
return;
@@ -1166,7 +1166,7 @@ struct mob_acolyte_of_vesperonAI : public ScriptedAI
DoCast(me, SPELL_TWILIGHT_TORMENT_VESP_ACO);
}
void JustDied(Unit* pKiller)
void JustDied(Unit* /*pKiller*/)
{
// remove twilight torment on Vesperon
if (pInstance)
@@ -1201,7 +1201,7 @@ struct mob_acolyte_of_vesperonAI : public ScriptedAI
}
}
void UpdateAI(const uint32 uiDiff)
void UpdateAI(const uint32 /*uiDiff*/)
{
if (!UpdateVictim())
return;
@@ -1252,8 +1252,8 @@ struct mob_twilight_eggsAI : public Scripted_NoMovementAI
else
m_uiHatchEggTimer -= uiDiff;
}
void AttackStart(Unit* pWho) {}
void MoveInLineOfSight(Unit* pWho) {}
void AttackStart(Unit* /*pWho*/) {}
void MoveInLineOfSight(Unit* /*pWho*/) {}
};
CreatureAI* GetAI_mob_twilight_eggs(Creature* pCreature)
@@ -27,7 +27,7 @@ struct instance_obsidian_sanctum : public ScriptedInstance
m_uiVesperonGUID = 0;
}
void OnCreatureCreate(Creature* pCreature, bool add)
void OnCreatureCreate(Creature* pCreature, bool /*add*/)
{
switch(pCreature->GetEntry())
{
+6 -6
View File
@@ -102,7 +102,7 @@ struct npc_injured_rainspeaker_oracleAI : public npc_escortAI
}
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
if (!HasEscortState(STATE_ESCORT_ESCORTING))
return;
@@ -128,7 +128,7 @@ bool GossipHello_npc_injured_rainspeaker_oracle(Player* pPlayer, Creature* pCrea
return true;
}
bool GossipSelect_npc_injured_rainspeaker_oracle(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_injured_rainspeaker_oracle(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
if (uiAction == GOSSIP_ACTION_INFO_DEF+1)
{
@@ -149,7 +149,7 @@ bool GossipSelect_npc_injured_rainspeaker_oracle(Player* pPlayer, Creature* pCre
return true;
}
bool QuestAccept_npc_injured_rainspeaker_oracle(Player* pPlayer, Creature* pCreature, Quest const *_Quest)
bool QuestAccept_npc_injured_rainspeaker_oracle(Player* /*pPlayer*/, Creature* pCreature, Quest const * /*_Quest*/)
{
DoScriptText(SAY_QUEST_ACCEPT_IRO, pCreature);
return false;
@@ -195,7 +195,7 @@ bool GossipHello_npc_vekjik(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_vekjik(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_vekjik(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
switch(uiAction)
{
@@ -245,7 +245,7 @@ bool GossipHello_npc_avatar_of_freya(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_avatar_of_freya(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_avatar_of_freya(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
switch (uiAction)
{
@@ -284,7 +284,7 @@ struct npc_bushwhackerAI : public ScriptedAI
me->GetMotionMaster()->MovePoint(0,pSummoner->GetPositionX(),pSummoner->GetPositionY(),pSummoner->GetPositionZ());
}
void UpdateAI(const uint32 uiDiff)
void UpdateAI(const uint32 /*uiDiff*/)
{
if (!UpdateVictim())
return;
+6 -6
View File
@@ -54,7 +54,7 @@ bool GossipHello_npc_agnetta_tyrsdottar(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_agnetta_tyrsdottar(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_agnetta_tyrsdottar(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
if (uiAction == GOSSIP_ACTION_INFO_DEF+1)
{
@@ -92,7 +92,7 @@ bool GossipHello_npc_frostborn_scout(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_frostborn_scout(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_frostborn_scout(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
switch (uiAction)
{
@@ -145,7 +145,7 @@ bool GossipHello_npc_thorim(Player* pPlayer, Creature* pCreature)
return false;
}
bool GossipSelect_npc_thorim(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_thorim(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
switch (uiAction)
{
@@ -251,7 +251,7 @@ struct npc_victorious_challengerAI : public ScriptedAI
DoMeleeAttackIfReady();
}
void KilledUnit(Unit* victim)
void KilledUnit(Unit* /*victim*/)
{
me->RestoreFaction();
}
@@ -273,7 +273,7 @@ bool GossipHello_npc_victorious_challenger(Player* pPlayer, Creature* pCreature)
return false;
}
bool GossipSelect_npc_victorious_challenger(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_victorious_challenger(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
if (uiAction == GOSSIP_ACTION_INFO_DEF+1)
{
@@ -322,7 +322,7 @@ bool GossipHello_npc_loklira_crone(Player* pPlayer, Creature* pCreature)
return false;
}
bool GossipSelect_npc_loklira_crone(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_loklira_crone(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
switch (uiAction)
{
@@ -155,7 +155,7 @@ struct boss_bjarngrimAI : public ScriptedAI
m_pInstance->SetData(TYPE_BJARNGRIM, NOT_STARTED);
}
void EnterCombat(Unit* pWho)
void EnterCombat(Unit* /*pWho*/)
{
DoScriptText(SAY_AGGRO, me);
@@ -166,12 +166,12 @@ struct boss_bjarngrimAI : public ScriptedAI
m_pInstance->SetData(TYPE_BJARNGRIM, IN_PROGRESS);
}
void KilledUnit(Unit* pVictim)
void KilledUnit(Unit* /*pVictim*/)
{
DoScriptText(RAND(SAY_SLAY_1,SAY_SLAY_2,SAY_SLAY_3), me);
}
void JustDied(Unit* pKiller)
void JustDied(Unit* /*pKiller*/)
{
DoScriptText(SAY_DEATH, me);
@@ -109,7 +109,7 @@ struct boss_ionarAI : public ScriptedAI
pInstance->SetData(TYPE_IONAR, NOT_STARTED);
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
DoScriptText(SAY_AGGRO, me);
@@ -117,7 +117,7 @@ struct boss_ionarAI : public ScriptedAI
pInstance->SetData(TYPE_IONAR, IN_PROGRESS);
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
DoScriptText(SAY_DEATH, me);
@@ -127,7 +127,7 @@ struct boss_ionarAI : public ScriptedAI
pInstance->SetData(TYPE_IONAR, DONE);
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * /*victim*/)
{
DoScriptText(RAND(SAY_SLAY_1,SAY_SLAY_2,SAY_SLAY_3), me);
}
@@ -158,7 +158,7 @@ struct boss_ionarAI : public ScriptedAI
}
}
void DamageTaken(Unit *pDoneBy, uint32 &uiDamage)
void DamageTaken(Unit * /*pDoneBy*/, uint32 &uiDamage)
{
if (me->GetVisibility() == VISIBILITY_OFF)
uiDamage = 0;
@@ -268,7 +268,7 @@ CreatureAI* GetAI_boss_ionar(Creature* pCreature)
return new boss_ionarAI(pCreature);
}
bool EffectDummyCreature_boss_ionar(Unit* pCaster, uint32 uiSpellId, uint32 uiEffIndex, Creature* pCreatureTarget)
bool EffectDummyCreature_boss_ionar(Unit* /*pCaster*/, uint32 uiSpellId, uint32 uiEffIndex, Creature* pCreatureTarget)
{
//always check spellid and effectindex
if (uiSpellId == SPELL_DISPERSE && uiEffIndex == 0)
@@ -322,7 +322,7 @@ struct mob_spark_of_ionarAI : public ScriptedAI
me->ForcedDespawn();
}
void DamageTaken(Unit *pDoneBy, uint32 &uiDamage)
void DamageTaken(Unit * /*pDoneBy*/, uint32 &uiDamage)
{
uiDamage = 0;
}
@@ -93,7 +93,7 @@ struct boss_lokenAI : public ScriptedAI
m_pInstance->SetData(TYPE_LOKEN, NOT_STARTED);
}
void EnterCombat(Unit* pWho)
void EnterCombat(Unit* /*pWho*/)
{
DoScriptText(SAY_AGGRO, me);
@@ -103,7 +103,7 @@ struct boss_lokenAI : public ScriptedAI
m_pInstance->SetData(TYPE_LOKEN, IN_PROGRESS);
}
void JustDied(Unit* pKiller)
void JustDied(Unit* /*pKiller*/)
{
DoScriptText(SAY_DEATH, me);
@@ -126,7 +126,7 @@ struct boss_lokenAI : public ScriptedAI
m_pInstance->SetData(TYPE_LOKEN, DONE);
}
void KilledUnit(Unit* pVictim)
void KilledUnit(Unit* /*pVictim*/)
{
DoScriptText(RAND(SAY_SLAY_1,SAY_SLAY_2,SAY_SLAY_3), me);
}
@@ -114,7 +114,7 @@ struct boss_volkhanAI : public ScriptedAI
m_pInstance->SetData(TYPE_VOLKHAN, NOT_STARTED);
}
void EnterCombat(Unit* pWho)
void EnterCombat(Unit* /*pWho*/)
{
DoScriptText(SAY_AGGRO, me);
@@ -135,7 +135,7 @@ struct boss_volkhanAI : public ScriptedAI
}
}
void JustDied(Unit* pKiller)
void JustDied(Unit* /*pKiller*/)
{
DoScriptText(SAY_DEATH, me);
DespawnGolem();
@@ -159,7 +159,7 @@ struct boss_volkhanAI : public ScriptedAI
}
}
void KilledUnit(Unit* pVictim)
void KilledUnit(Unit* /*pVictim*/)
{
DoScriptText(RAND(SAY_SLAY_1,SAY_SLAY_2,SAY_SLAY_3), me);
}
@@ -200,7 +200,7 @@ struct boss_volkhanAI : public ScriptedAI
}
}
void SpellHit(Unit* pCaster, const SpellEntry* pSpell)
void SpellHit(Unit* /*pCaster*/, const SpellEntry* pSpell)
{
if (pSpell->Id == SPELL_TEMPER_DUMMY)
m_bIsStriking = true;
@@ -397,7 +397,7 @@ struct mob_molten_golemAI : public ScriptedAI
}
}
void DamageTaken(Unit* pDoneBy, uint32 &uiDamage)
void DamageTaken(Unit* /*pDoneBy*/, uint32 &uiDamage)
{
if (uiDamage > me->GetHealth())
{
@@ -415,7 +415,7 @@ struct mob_molten_golemAI : public ScriptedAI
}
}
void SpellHit(Unit* pCaster, const SpellEntry* pSpell)
void SpellHit(Unit* /*pCaster*/, const SpellEntry* pSpell)
{
//this is the dummy effect of the spells
if (pSpell->Id == SPELL_SHATTER_N || pSpell->Id == SPELL_SHATTER_H)
@@ -64,7 +64,7 @@ struct instance_halls_of_lightning : public ScriptedInstance
m_uiLokenGlobeGUID = 0;
}
void OnCreatureCreate(Creature* pCreature, bool add)
void OnCreatureCreate(Creature* pCreature, bool /*add*/)
{
switch(pCreature->GetEntry())
{
@@ -83,7 +83,7 @@ struct instance_halls_of_lightning : public ScriptedInstance
}
}
void OnGameObjectCreate(GameObject* pGo, bool add)
void OnGameObjectCreate(GameObject* pGo, bool /*add*/)
{
switch(pGo->GetEntry())
{
@@ -62,7 +62,7 @@ struct boss_krystallusAI : public ScriptedAI
if (pInstance)
pInstance->SetData(DATA_KRYSTALLUS_EVENT, NOT_STARTED);
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
DoScriptText(SAY_AGGRO, me);
@@ -116,7 +116,7 @@ struct boss_krystallusAI : public ScriptedAI
DoMeleeAttackIfReady();
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
DoScriptText(SAY_DEATH, me);
@@ -124,7 +124,7 @@ struct boss_krystallusAI : public ScriptedAI
pInstance->SetData(DATA_KRYSTALLUS_EVENT, DONE);
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * victim)
{
if (victim == me)
return;
@@ -66,7 +66,7 @@ struct boss_maiden_of_griefAI : public ScriptedAI
pInstance->SetData(DATA_MAIDEN_OF_GRIEF_EVENT, NOT_STARTED);
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
DoScriptText(SAY_AGGRO, me);
@@ -135,7 +135,7 @@ struct boss_maiden_of_griefAI : public ScriptedAI
DoMeleeAttackIfReady();
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
DoScriptText(SAY_DEATH, me);
@@ -152,7 +152,7 @@ struct boss_maiden_of_griefAI : public ScriptedAI
itr->getSource()->CompletedAchievement(AchievGoodGrief);
}
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * victim)
{
if (victim == me)
return;
@@ -106,7 +106,7 @@ struct boss_sjonnirAI : public ScriptedAI
pInstance->SetData(DATA_SJONNIR_EVENT, NOT_STARTED);
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
DoScriptText(SAY_AGGRO, me);
@@ -191,7 +191,7 @@ struct boss_sjonnirAI : public ScriptedAI
lSummons.Summon(summon);
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
DoScriptText(SAY_DEATH, me);
lSummons.DespawnAll();
@@ -203,7 +203,7 @@ struct boss_sjonnirAI : public ScriptedAI
pInstance->DoCompleteAchievement(ACHIEV_ABUSE_THE_OOZE);
}
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * victim)
{
if (victim == me)
return;
@@ -266,7 +266,7 @@ struct mob_iron_sludgeAI : public ScriptedAI
ScriptedInstance* pInstance;
void JustDied(Unit* pKiller)
void JustDied(Unit* /*pKiller*/)
{
if (pInstance)
if (Creature* pSjonnir = Unit::GetCreature(*me, pInstance->GetData64(DATA_SJONNIR)))
@@ -361,7 +361,7 @@ struct npc_brann_hosAI : public npc_escortAI
Start();
}
void DamageTaken(Unit* done_by, uint32 &damage)
void DamageTaken(Unit* /*done_by*/, uint32 & /*damage*/)
{
if (!bHasBeenDamaged)
bHasBeenDamaged = true;
@@ -685,7 +685,7 @@ bool GossipHello_npc_brann_hos(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_brann_hos(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_brann_hos(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
if (uiAction == GOSSIP_ACTION_INFO_DEF+1 || uiAction == GOSSIP_ACTION_INFO_DEF+2)
{
@@ -62,7 +62,7 @@ struct instance_halls_of_stone : public ScriptedInstance
m_auiEncounter[i] = NOT_STARTED;
}
void OnCreatureCreate(Creature* pCreature, bool add)
void OnCreatureCreate(Creature* pCreature, bool /*add*/)
{
switch(pCreature->GetEntry())
{
@@ -76,7 +76,7 @@ struct instance_halls_of_stone : public ScriptedInstance
}
}
void OnGameObjectCreate(GameObject* pGo, bool add)
void OnGameObjectCreate(GameObject* pGo, bool /*add*/)
{
switch(pGo->GetEntry())
{
@@ -129,7 +129,7 @@ struct boss_algalonAI : public ScriptedAI
pInstance->SetData(TYPE_ALGALON, IN_PROGRESS);
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * /*victim*/)
{
DoScriptText(RAND(SAY_SLAY_1,SAY_SLAY_2), me);
}
@@ -155,7 +155,7 @@ struct boss_steelbreakerAI : public ScriptedAI
ScriptedInstance* pInstance;
uint32 phase;
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
DoScriptText(SAY_STEELBREAKER_AGGRO, me);
DoZoneInCombat();
@@ -175,7 +175,7 @@ struct boss_steelbreakerAI : public ScriptedAI
events.RescheduleEvent(EVENT_OVERWHELMING_POWER, rand()%5000);
}
void DamageTaken(Unit* pKiller, uint32 &damage)
void DamageTaken(Unit* /*pKiller*/, uint32 &damage)
{
if (damage >= me->GetHealth())
{
@@ -191,14 +191,14 @@ struct boss_steelbreakerAI : public ScriptedAI
}
}
void JustDied(Unit* Killer)
void JustDied(Unit* /*Killer*/)
{
DoScriptText(RAND(SAY_STEELBREAKER_DEATH_1,SAY_STEELBREAKER_DEATH_2), me);
if (IsEncounterComplete(pInstance, me) && pInstance)
pInstance->SetData(TYPE_ASSEMBLY, DONE);
}
void KilledUnit(Unit *who)
void KilledUnit(Unit * /*who*/)
{
DoScriptText(RAND(SAY_STEELBREAKER_SLAY_1,SAY_STEELBREAKER_SLAY_2), me);
@@ -206,7 +206,7 @@ struct boss_steelbreakerAI : public ScriptedAI
DoCast(me, SPELL_ELECTRICAL_CHARGE);
}
void SpellHit(Unit *from, const SpellEntry *spell)
void SpellHit(Unit * /*from*/, const SpellEntry *spell)
{
if (spell->Id == SPELL_SUPERCHARGE)
UpdatePhase();
@@ -268,7 +268,7 @@ struct boss_runemaster_molgeimAI : public ScriptedAI
EventMap events;
uint32 phase;
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
DoScriptText(SAY_MOLGEIM_AGGRO, me);
DoZoneInCombat();
@@ -288,7 +288,7 @@ struct boss_runemaster_molgeimAI : public ScriptedAI
events.RescheduleEvent(EVENT_RUNE_OF_SUMMONING, urand(20000,30000));
}
void DamageTaken(Unit* pKiller, uint32 &damage)
void DamageTaken(Unit* /*pKiller*/, uint32 &damage)
{
if (damage >= me->GetHealth())
{
@@ -304,19 +304,19 @@ struct boss_runemaster_molgeimAI : public ScriptedAI
}
}
void JustDied(Unit* Killer)
void JustDied(Unit* /*Killer*/)
{
DoScriptText(RAND(SAY_MOLGEIM_DEATH_1,SAY_MOLGEIM_DEATH_2), me);
if (IsEncounterComplete(pInstance, me) && pInstance)
pInstance->SetData(TYPE_ASSEMBLY, DONE);
}
void KilledUnit(Unit *who)
void KilledUnit(Unit * /*who*/)
{
DoScriptText(RAND(SAY_MOLGEIM_SLAY_1,SAY_MOLGEIM_SLAY_2), me);
}
void SpellHit(Unit *from, const SpellEntry *spell)
void SpellHit(Unit * /*from*/, const SpellEntry *spell)
{
if (spell->Id == SPELL_SUPERCHARGE)
UpdatePhase();
@@ -383,7 +383,7 @@ struct mob_lightning_elementalAI : public ScriptedAI
AttackStart(pTarget);
}
void UpdateAI(const uint32 diff)
void UpdateAI(const uint32 /*diff*/)
{
if (!me->isInCombat())
return;
@@ -435,7 +435,7 @@ struct boss_stormcaller_brundirAI : public ScriptedAI
ScriptedInstance* pInstance;
uint32 phase;
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
DoScriptText(SAY_BRUNDIR_AGGRO, me);
DoZoneInCombat();
@@ -458,7 +458,7 @@ struct boss_stormcaller_brundirAI : public ScriptedAI
}
}
void DamageTaken(Unit* pKiller, uint32 &damage)
void DamageTaken(Unit* /*pKiller*/, uint32 &damage)
{
if (damage >= me->GetHealth())
{
@@ -474,19 +474,19 @@ struct boss_stormcaller_brundirAI : public ScriptedAI
}
}
void JustDied(Unit* Killer)
void JustDied(Unit* /*Killer*/)
{
DoScriptText(RAND(SAY_BRUNDIR_DEATH_1,SAY_BRUNDIR_DEATH_2), me);
if (IsEncounterComplete(pInstance, me) && pInstance)
pInstance->SetData(TYPE_ASSEMBLY, DONE);
}
void KilledUnit(Unit *who)
void KilledUnit(Unit * /*who*/)
{
DoScriptText(RAND(SAY_BRUNDIR_SLAY_1,SAY_BRUNDIR_SLAY_2), me);
}
void SpellHit(Unit *from, const SpellEntry *spell)
void SpellHit(Unit * /*from*/, const SpellEntry *spell)
{
if (spell->Id == SPELL_SUPERCHARGE)
UpdatePhase();
@@ -50,24 +50,24 @@ struct boss_auriaya_AI : public BossAI
SONIC_SCREECH_Timer = 30000;
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
_EnterCombat();
DoScriptText(SAY_AGGRO,me);
}
void KilledUnit(Unit* victim)
void KilledUnit(Unit* /*victim*/)
{
DoScriptText(RAND(SAY_SLAY_1,SAY_SLAY_2), me);
}
void JustDied(Unit *victim)
void JustDied(Unit * /*victim*/)
{
DoScriptText(SAY_DEATH, me);
_JustDied();
}
void MoveInLineOfSight(Unit* who) {}
void MoveInLineOfSight(Unit* /*who*/) {}
void UpdateAI(const uint32 diff)
{
@@ -102,7 +102,7 @@ struct boss_flame_leviathanAI : public BossAI
me->SetReactState(REACT_AGGRESSIVE);
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
_EnterCombat();
DoScriptText(SAY_AGGRO, me);
@@ -125,13 +125,13 @@ struct boss_flame_leviathanAI : public BossAI
AttackStart(pTarget);
}
void JustDied(Unit *victim)
void JustDied(Unit * /*victim*/)
{
DoScriptText(SAY_DEATH, me);
_JustDied();
}
void SpellHit(Unit *caster, const SpellEntry *spell)
void SpellHit(Unit * /*caster*/, const SpellEntry *spell)
{
if (spell->Id == 62472)
vehicle->InstallAllAccessories();
@@ -310,7 +310,7 @@ struct boss_flame_leviathan_safety_containerAI : public PassiveAI
{
boss_flame_leviathan_safety_containerAI(Creature *c) : PassiveAI(c) {}
void MovementInform(uint32 type, uint32 id)
void MovementInform(uint32 /*type*/, uint32 id)
{
if (id == me->GetEntry())
{
@@ -320,7 +320,7 @@ struct boss_flame_leviathan_safety_containerAI : public PassiveAI
}
}
void UpdateAI(const uint32 diff)
void UpdateAI(const uint32 /*diff*/)
{
if (!me->GetVehicle() && me->isSummon() && me->GetMotionMaster()->GetCurrentMovementGeneratorType() != POINT_MOTION_TYPE)
me->GetMotionMaster()->MoveFall(409.8f, me->GetEntry());
@@ -334,12 +334,12 @@ struct spell_pool_of_tarAI : public TriggerAI
me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
}
void DamageTaken(Unit *who, uint32 &damage)
void DamageTaken(Unit * /*who*/, uint32 &damage)
{
damage = 0;
}
void SpellHit(Unit* caster, const SpellEntry *spell)
void SpellHit(Unit* /*caster*/, const SpellEntry *spell)
{
if (spell->SchoolMask & SPELL_SCHOOL_MASK_FIRE && !me->HasAura(SPELL_BLAZE))
me->CastSpell(me, SPELL_BLAZE, true);
@@ -62,18 +62,18 @@ struct boss_freyaAI : public BossAI
_Reset();
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * /*victim*/)
{
DoScriptText(RAND(SAY_SLAY_1,SAY_SLAY_2), me);
}
void JustDied(Unit *victim)
void JustDied(Unit * /*victim*/)
{
DoScriptText(SAY_DEATH, me);
_JustDied();
}
void EnterCombat(Unit* pWho)
void EnterCombat(Unit* /*pWho*/)
{
DoScriptText(SAY_AGGRO, me);
_EnterCombat();
@@ -43,18 +43,18 @@ struct boss_hodirAI : public BossAI
_Reset();
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * /*victim*/)
{
DoScriptText(RAND(SAY_SLAY_1,SAY_SLAY_2), me);
}
void JustDied(Unit *victim)
void JustDied(Unit * /*victim*/)
{
DoScriptText(SAY_DEATH, me);
_JustDied();
}
void EnterCombat(Unit* pWho)
void EnterCombat(Unit* /*pWho*/)
{
DoScriptText(SAY_AGGRO, me);
_EnterCombat();
@@ -52,24 +52,24 @@ struct boss_ignis_AI : public BossAI
uiSlagPotTimer = 100;
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
DoScriptText(SAY_AGGRO,me);
_EnterCombat();
}
void KilledUnit(Unit* victim)
void KilledUnit(Unit* /*victim*/)
{
DoScriptText(RAND(SAY_SLAY_1,SAY_SLAY_2), me);
}
void JustDied(Unit *victim)
void JustDied(Unit * /*victim*/)
{
DoScriptText(SAY_DEATH, me);
_JustDied();
}
void MoveInLineOfSight(Unit* who) {}
void MoveInLineOfSight(Unit* /*who*/) {}
void UpdateAI(const uint32 diff)
{
@@ -68,18 +68,18 @@ struct boss_kologarnAI : public BossAI
me->Attack(who, true);
}
void JustDied(Unit *victim)
void JustDied(Unit * /*victim*/)
{
DoScriptText(SAY_DEATH, me);
_JustDied();
}
void KilledUnit(Unit* who)
void KilledUnit(Unit* /*who*/)
{
DoScriptText(RAND(SAY_SLAY_2,SAY_SLAY_2), me);
}
void PassengerBoarded(Unit *who, int8 seatId, bool apply)
void PassengerBoarded(Unit *who, int8 /*seatId*/, bool apply)
{
if (who->GetTypeId() == TYPEID_UNIT)
{
@@ -92,7 +92,7 @@ struct boss_kologarnAI : public BossAI
}
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
DoScriptText(SAY_AGGRO, me);
_EnterCombat();
@@ -90,17 +90,17 @@ struct boss_razorscaleAI : public BossAI
me->ApplySpellImmune(1, IMMUNITY_EFFECT,SPELL_EFFECT_ATTACK_ME, true);
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
DoScriptText(SAY_AGGRO, me);
DoZoneInCombat();
}
void JustDied(Unit* Killer)
void JustDied(Unit* /*Killer*/)
{
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * /*victim*/)
{
DoScriptText(SAY_KILL, me);
}
@@ -261,7 +261,7 @@ struct boss_razorscaleAI : public BossAI
SummonAddsTimer = 45000;
}
void FlyPhase(uint8 Phase, const uint32 diff)
void FlyPhase(uint8 Phase, const uint32 /*diff*/)
{
const float x = 587.54;
const float y = -174.92;
@@ -58,18 +58,18 @@ struct boss_thorimAI : public BossAI
_EnterEvadeMode();
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * /*victim*/)
{
DoScriptText(RAND(SAY_SLAY_1,SAY_SLAY_2), me);
}
void JustDied(Unit *victim)
void JustDied(Unit * /*victim*/)
{
DoScriptText(SAY_DEATH, me);
_JustDied();
}
void EnterCombat(Unit* pWho)
void EnterCombat(Unit* /*pWho*/)
{
DoScriptText(RAND(SAY_AGGRO_1,SAY_AGGRO_2), me);
_EnterCombat();
@@ -215,7 +215,7 @@ struct boss_xt002_AI : public BossAI
heart_exposed = 0;
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
DoScriptText(SAY_AGGRO, me);
_EnterCombat();
@@ -253,12 +253,12 @@ struct boss_xt002_AI : public BossAI
}
}
void KilledUnit(Unit* victim)
void KilledUnit(Unit* /*victim*/)
{
DoScriptText(RAND(SAY_SLAY_1,SAY_SLAY_2), me);
}
void JustDied(Unit *victim)
void JustDied(Unit * /*victim*/)
{
DoScriptText(SAY_DEATH, me);
_JustDied();
@@ -516,7 +516,7 @@ struct mob_xt002_heartAI : public ScriptedAI
ScriptedInstance* m_pInstance;
void JustDied(Unit *victim)
void JustDied(Unit * /*victim*/)
{
if (m_pInstance)
if (Creature* pXT002 = me->GetCreature(*me, m_pInstance->GetData64(TYPE_XT002)))
@@ -527,7 +527,7 @@ struct mob_xt002_heartAI : public ScriptedAI
me->RemoveAurasDueToSpell(SPELL_EXPOSED_HEART);
}
void DamageTaken(Unit *pDone, uint32 &damage)
void DamageTaken(Unit * /*pDone*/, uint32 &damage)
{
if (Creature* pXT002 = me->GetCreature(*me, m_pInstance->GetData64(TYPE_XT002)))
if (pXT002->AI())
@@ -569,7 +569,7 @@ struct mob_scrapbotAI : public ScriptedAI
me->GetMotionMaster()->MoveChase(pXT002);
}
void UpdateAI(const uint32 diff)
void UpdateAI(const uint32 /*diff*/)
{
if (Creature* pXT002 = me->GetCreature(*me, m_pInstance->GetData64(TYPE_XT002)))
{
@@ -673,12 +673,12 @@ struct mob_boombotAI : public ScriptedAI
me->GetMotionMaster()->MoveChase(pXT002);
}
void JustDied(Unit *killer)
void JustDied(Unit * /*killer*/)
{
DoCast(SPELL_BOOM);
}
void UpdateAI(const uint32 diff)
void UpdateAI(const uint32 /*diff*/)
{
if (Creature* pXT002 = me->GetCreature(*me, m_pInstance->GetData64(TYPE_XT002)))
{
@@ -90,7 +90,7 @@ struct instance_ulduar : public ScriptedInstance
return false;
}
void OnCreatureCreate(Creature* pCreature, bool add)
void OnCreatureCreate(Creature* pCreature, bool /*add*/)
{
switch(pCreature->GetEntry())
{
@@ -48,7 +48,7 @@ bool GoHello_ulduar_teleporter(Player *pPlayer, GameObject *pGO)
return true;
}
bool GOSelect_ulduar_teleporter(Player *pPlayer, GameObject *pGO, uint32 sender, uint32 action)
bool GOSelect_ulduar_teleporter(Player *pPlayer, GameObject * /*pGO*/, uint32 sender, uint32 action)
{
if (sender != GOSSIP_SENDER_MAIN) return true;
if (!pPlayer->getAttackers().empty()) return true;
@@ -112,7 +112,7 @@ struct boss_ingvar_the_plundererAI : public ScriptedAI
pInstance->SetData(DATA_INGVAR_EVENT, NOT_STARTED);
}
void DamageTaken(Unit *done_by, uint32 &damage)
void DamageTaken(Unit * /*done_by*/, uint32 &damage)
{
if (damage >= me->GetHealth() && !bIsUndead)
{
@@ -151,7 +151,7 @@ struct boss_ingvar_the_plundererAI : public ScriptedAI
DoScriptText(YELL_AGGRO_2,me);
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
DoScriptText(YELL_AGGRO_1,me);
@@ -159,7 +159,7 @@ struct boss_ingvar_the_plundererAI : public ScriptedAI
pInstance->SetData(DATA_INGVAR_EVENT, IN_PROGRESS);
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
DoScriptText(YELL_DEAD_2,me);
@@ -167,7 +167,7 @@ struct boss_ingvar_the_plundererAI : public ScriptedAI
pInstance->SetData(DATA_INGVAR_EVENT, DONE);
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * /*victim*/)
{
if (bIsUndead)
DoScriptText(YELL_KILL_1,me);
@@ -234,7 +234,7 @@ struct boss_ingvar_the_plundererAI : public ScriptedAI
Unit *pTarget = SelectUnit(SELECT_TARGET_TOPAGGRO, 1);
if (pTarget)
{
Creature* temp = me->SummonCreature(ENTRY_THROW_TARGET,pTarget->GetPositionX(),pTarget->GetPositionY(),pTarget->GetPositionZ(),0,TEMPSUMMON_TIMED_DESPAWN,2000);
me->SummonCreature(ENTRY_THROW_TARGET,pTarget->GetPositionX(),pTarget->GetPositionY(),pTarget->GetPositionZ(),0,TEMPSUMMON_TIMED_DESPAWN,2000);
DoCast(me, SPELL_SHADOW_AXE_SUMMON);
}
@@ -333,9 +333,9 @@ struct mob_annhylde_the_callerAI : public ScriptedAI
}
}
void AttackStart(Unit* who) {}
void MoveInLineOfSight(Unit* who) {}
void EnterCombat(Unit *who) {}
void AttackStart(Unit* /*who*/) {}
void MoveInLineOfSight(Unit* /*who*/) {}
void EnterCombat(Unit * /*who*/) {}
void UpdateAI(const uint32 diff)
{
if (uiResurectTimer)
@@ -402,9 +402,9 @@ struct mob_ingvar_throw_dummyAI : public ScriptedAI
}
uiDespawnTimer = 7000;
}
void AttackStart(Unit* who) {}
void MoveInLineOfSight(Unit* who) {}
void EnterCombat(Unit *who) {}
void AttackStart(Unit* /*who*/) {}
void MoveInLineOfSight(Unit* /*who*/) {}
void EnterCombat(Unit * /*who*/) {}
void UpdateAI(const uint32 diff)
{
if (uiDespawnTimer <= diff)

Some files were not shown because too many files have changed in this diff Show More