diff options
| author | Spp <none@none> | 2010-04-19 09:26:37 +0200 |
|---|---|---|
| committer | Spp <none@none> | 2010-04-19 09:26:37 +0200 |
| commit | 74dd02d024007c3a09219177fabfe9010b1bce63 (patch) | |
| tree | 041286f1a0a20c9714199b03c60808d3b7291e48 /src/scripts/northrend | |
| parent | fdd8d2f3cc7108043f6bad036b994770f904866f (diff) | |
Remove LOTS of compile warnings
--HG--
branch : trunk
Diffstat (limited to 'src/scripts/northrend')
124 files changed, 537 insertions, 538 deletions
diff --git a/src/scripts/northrend/azjol_nerub/ahnkahet/boss_amanitar.cpp b/src/scripts/northrend/azjol_nerub/ahnkahet/boss_amanitar.cpp index c7219d791c0..51c4bce0c2d 100644 --- a/src/scripts/northrend/azjol_nerub/ahnkahet/boss_amanitar.cpp +++ b/src/scripts/northrend/azjol_nerub/ahnkahet/boss_amanitar.cpp @@ -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) { diff --git a/src/scripts/northrend/azjol_nerub/ahnkahet/boss_elder_nadox.cpp b/src/scripts/northrend/azjol_nerub/ahnkahet/boss_elder_nadox.cpp index 515b5d80678..2215d91c749 100644 --- a/src/scripts/northrend/azjol_nerub/ahnkahet/boss_elder_nadox.cpp +++ b/src/scripts/northrend/azjol_nerub/ahnkahet/boss_elder_nadox.cpp @@ -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) diff --git a/src/scripts/northrend/azjol_nerub/ahnkahet/boss_herald_volazj.cpp b/src/scripts/northrend/azjol_nerub/ahnkahet/boss_herald_volazj.cpp index 5b222c9b116..d74b760fde7 100644 --- a/src/scripts/northrend/azjol_nerub/ahnkahet/boss_herald_volazj.cpp +++ b/src/scripts/northrend/azjol_nerub/ahnkahet/boss_herald_volazj.cpp @@ -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); } diff --git a/src/scripts/northrend/azjol_nerub/ahnkahet/boss_jedoga_shadowseeker.cpp b/src/scripts/northrend/azjol_nerub/ahnkahet/boss_jedoga_shadowseeker.cpp index 2a80d9885de..eb8046f63cd 100644 --- a/src/scripts/northrend/azjol_nerub/ahnkahet/boss_jedoga_shadowseeker.cpp +++ b/src/scripts/northrend/azjol_nerub/ahnkahet/boss_jedoga_shadowseeker.cpp @@ -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; diff --git a/src/scripts/northrend/azjol_nerub/ahnkahet/boss_prince_taldaram.cpp b/src/scripts/northrend/azjol_nerub/ahnkahet/boss_prince_taldaram.cpp index 5d28a7efbbb..93a66ccfbca 100644 --- a/src/scripts/northrend/azjol_nerub/ahnkahet/boss_prince_taldaram.cpp +++ b/src/scripts/northrend/azjol_nerub/ahnkahet/boss_prince_taldaram.cpp @@ -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(); diff --git a/src/scripts/northrend/azjol_nerub/ahnkahet/instance_ahnkahet.cpp b/src/scripts/northrend/azjol_nerub/ahnkahet/instance_ahnkahet.cpp index fa2f2bc1f0f..4e6e3ec8c9f 100644 --- a/src/scripts/northrend/azjol_nerub/ahnkahet/instance_ahnkahet.cpp +++ b/src/scripts/northrend/azjol_nerub/ahnkahet/instance_ahnkahet.cpp @@ -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()) { diff --git a/src/scripts/northrend/azjol_nerub/azjol_nerub/boss_anubarak.cpp b/src/scripts/northrend/azjol_nerub/azjol_nerub/boss_anubarak.cpp index d1563b14873..340ae254b0f 100644 --- a/src/scripts/northrend/azjol_nerub/azjol_nerub/boss_anubarak.cpp +++ b/src/scripts/northrend/azjol_nerub/azjol_nerub/boss_anubarak.cpp @@ -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); diff --git a/src/scripts/northrend/azjol_nerub/azjol_nerub/boss_hadronox.cpp b/src/scripts/northrend/azjol_nerub/azjol_nerub/boss_hadronox.cpp index c5c4f64c926..0fc4e87d7c5 100644 --- a/src/scripts/northrend/azjol_nerub/azjol_nerub/boss_hadronox.cpp +++ b/src/scripts/northrend/azjol_nerub/azjol_nerub/boss_hadronox.cpp @@ -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); diff --git a/src/scripts/northrend/azjol_nerub/azjol_nerub/boss_krikthir_the_gatewatcher.cpp b/src/scripts/northrend/azjol_nerub/azjol_nerub/boss_krikthir_the_gatewatcher.cpp index dc7608d76ec..fa035693008 100644 --- a/src/scripts/northrend/azjol_nerub/azjol_nerub/boss_krikthir_the_gatewatcher.cpp +++ b/src/scripts/northrend/azjol_nerub/azjol_nerub/boss_krikthir_the_gatewatcher.cpp @@ -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); } diff --git a/src/scripts/northrend/azjol_nerub/azjol_nerub/instance_azjol_nerub.cpp b/src/scripts/northrend/azjol_nerub/azjol_nerub/instance_azjol_nerub.cpp index bf322e8b392..4d7f1fa2172 100644 --- a/src/scripts/northrend/azjol_nerub/azjol_nerub/instance_azjol_nerub.cpp +++ b/src/scripts/northrend/azjol_nerub/azjol_nerub/instance_azjol_nerub.cpp @@ -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()) { diff --git a/src/scripts/northrend/borean_tundra.cpp b/src/scripts/northrend/borean_tundra.cpp index 1936b20507b..b36463b581f 100644 --- a/src/scripts/northrend/borean_tundra.cpp +++ b/src/scripts/northrend/borean_tundra.cpp @@ -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) { diff --git a/src/scripts/northrend/crusaders_coliseum/trial_of_the_champion/boss_argent_challenge.cpp b/src/scripts/northrend/crusaders_coliseum/trial_of_the_champion/boss_argent_challenge.cpp index d8b68a41471..c33ea69fa2d 100644 --- a/src/scripts/northrend/crusaders_coliseum/trial_of_the_champion/boss_argent_challenge.cpp +++ b/src/scripts/northrend/crusaders_coliseum/trial_of_the_champion/boss_argent_challenge.cpp @@ -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); diff --git a/src/scripts/northrend/crusaders_coliseum/trial_of_the_champion/boss_black_knight.cpp b/src/scripts/northrend/crusaders_coliseum/trial_of_the_champion/boss_black_knight.cpp index 2a92412daac..e1f4586ca6c 100644 --- a/src/scripts/northrend/crusaders_coliseum/trial_of_the_champion/boss_black_knight.cpp +++ b/src/scripts/northrend/crusaders_coliseum/trial_of_the_champion/boss_black_knight.cpp @@ -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*/) { } diff --git a/src/scripts/northrend/crusaders_coliseum/trial_of_the_champion/boss_grand_champions.cpp b/src/scripts/northrend/crusaders_coliseum/trial_of_the_champion/boss_grand_champions.cpp index e1812f4b608..4bf8143a210 100644 --- a/src/scripts/northrend/crusaders_coliseum/trial_of_the_champion/boss_grand_champions.cpp +++ b/src/scripts/northrend/crusaders_coliseum/trial_of_the_champion/boss_grand_champions.cpp @@ -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); diff --git a/src/scripts/northrend/crusaders_coliseum/trial_of_the_champion/instance_trial_of_the_champion.cpp b/src/scripts/northrend/crusaders_coliseum/trial_of_the_champion/instance_trial_of_the_champion.cpp index 78893ee5eb8..04b671ec11c 100644 --- a/src/scripts/northrend/crusaders_coliseum/trial_of_the_champion/instance_trial_of_the_champion.cpp +++ b/src/scripts/northrend/crusaders_coliseum/trial_of_the_champion/instance_trial_of_the_champion.cpp @@ -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()) { diff --git a/src/scripts/northrend/crusaders_coliseum/trial_of_the_champion/trial_of_the_champion.cpp b/src/scripts/northrend/crusaders_coliseum/trial_of_the_champion/trial_of_the_champion.cpp index a246a16b0f2..090b64b96cc 100644 --- a/src/scripts/northrend/crusaders_coliseum/trial_of_the_champion/trial_of_the_champion.cpp +++ b/src/scripts/northrend/crusaders_coliseum/trial_of_the_champion/trial_of_the_champion.cpp @@ -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) { diff --git a/src/scripts/northrend/crystalsong_forest.cpp b/src/scripts/northrend/crystalsong_forest.cpp index 389fa2da610..22e2ae1e091 100644 --- a/src/scripts/northrend/crystalsong_forest.cpp +++ b/src/scripts/northrend/crystalsong_forest.cpp @@ -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; diff --git a/src/scripts/northrend/dalaran.cpp b/src/scripts/northrend/dalaran.cpp index 03df79c69fe..7d5e76ffe35 100644 --- a/src/scripts/northrend/dalaran.cpp +++ b/src/scripts/northrend/dalaran.cpp @@ -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()); diff --git a/src/scripts/northrend/dragonblight.cpp b/src/scripts/northrend/dragonblight.cpp index 62d4c6e3763..0b85abc25aa 100644 --- a/src/scripts/northrend/dragonblight.cpp +++ b/src/scripts/northrend/dragonblight.cpp @@ -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) { diff --git a/src/scripts/northrend/draktharon_keep/boss_dred.cpp b/src/scripts/northrend/draktharon_keep/boss_dred.cpp index 193c1ff0fe2..ba64a4748dd 100644 --- a/src/scripts/northrend/draktharon_keep/boss_dred.cpp +++ b/src/scripts/northrend/draktharon_keep/boss_dred.cpp @@ -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) { diff --git a/src/scripts/northrend/draktharon_keep/boss_novos.cpp b/src/scripts/northrend/draktharon_keep/boss_novos.cpp index 64ac3f01c79..5e8792c352d 100644 --- a/src/scripts/northrend/draktharon_keep/boss_novos.cpp +++ b/src/scripts/northrend/draktharon_keep/boss_novos.cpp @@ -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(); diff --git a/src/scripts/northrend/draktharon_keep/boss_tharon_ja.cpp b/src/scripts/northrend/draktharon_keep/boss_tharon_ja.cpp index f1ab16467a5..a459201d600 100644 --- a/src/scripts/northrend/draktharon_keep/boss_tharon_ja.cpp +++ b/src/scripts/northrend/draktharon_keep/boss_tharon_ja.cpp @@ -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); diff --git a/src/scripts/northrend/draktharon_keep/boss_trollgore.cpp b/src/scripts/northrend/draktharon_keep/boss_trollgore.cpp index 7b2bfb9756d..03eac73385d 100644 --- a/src/scripts/northrend/draktharon_keep/boss_trollgore.cpp +++ b/src/scripts/northrend/draktharon_keep/boss_trollgore.cpp @@ -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; diff --git a/src/scripts/northrend/draktharon_keep/instance_drak_tharon_keep.cpp b/src/scripts/northrend/draktharon_keep/instance_drak_tharon_keep.cpp index 8a5f663908e..9f4d2ee52a2 100644 --- a/src/scripts/northrend/draktharon_keep/instance_drak_tharon_keep.cpp +++ b/src/scripts/northrend/draktharon_keep/instance_drak_tharon_keep.cpp @@ -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()) { diff --git a/src/scripts/northrend/frozen_halls/forge_of_souls/boss_bronjahm.cpp b/src/scripts/northrend/frozen_halls/forge_of_souls/boss_bronjahm.cpp index 64b01ade2b5..8133a0dfea7 100644 --- a/src/scripts/northrend/frozen_halls/forge_of_souls/boss_bronjahm.cpp +++ b/src/scripts/northrend/frozen_halls/forge_of_souls/boss_bronjahm.cpp @@ -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) diff --git a/src/scripts/northrend/frozen_halls/forge_of_souls/boss_devourer_of_souls.cpp b/src/scripts/northrend/frozen_halls/forge_of_souls/boss_devourer_of_souls.cpp index 398c83df58a..94f29fecb23 100644 --- a/src/scripts/northrend/frozen_halls/forge_of_souls/boss_devourer_of_souls.cpp +++ b/src/scripts/northrend/frozen_halls/forge_of_souls/boss_devourer_of_souls.cpp @@ -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; diff --git a/src/scripts/northrend/frozen_halls/forge_of_souls/forge_of_souls.cpp b/src/scripts/northrend/frozen_halls/forge_of_souls/forge_of_souls.cpp index 468f98e0749..66ca42e1ed5 100644 --- a/src/scripts/northrend/frozen_halls/forge_of_souls/forge_of_souls.cpp +++ b/src/scripts/northrend/frozen_halls/forge_of_souls/forge_of_souls.cpp @@ -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); } diff --git a/src/scripts/northrend/frozen_halls/forge_of_souls/instance_forge_of_souls.cpp b/src/scripts/northrend/frozen_halls/forge_of_souls/instance_forge_of_souls.cpp index 908f2857b89..67a6cdb4579 100644 --- a/src/scripts/northrend/frozen_halls/forge_of_souls/instance_forge_of_souls.cpp +++ b/src/scripts/northrend/frozen_halls/forge_of_souls/instance_forge_of_souls.cpp @@ -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(); diff --git a/src/scripts/northrend/frozen_halls/halls_of_reflection/instance_halls_of_reflection.cpp b/src/scripts/northrend/frozen_halls/halls_of_reflection/instance_halls_of_reflection.cpp index 50565d7e142..3c0c1321a77 100644 --- a/src/scripts/northrend/frozen_halls/halls_of_reflection/instance_halls_of_reflection.cpp +++ b/src/scripts/northrend/frozen_halls/halls_of_reflection/instance_halls_of_reflection.cpp @@ -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()) { diff --git a/src/scripts/northrend/frozen_halls/pit_of_saron/boss_forgemaster_garfrost.cpp b/src/scripts/northrend/frozen_halls/pit_of_saron/boss_forgemaster_garfrost.cpp index fb0359ffdf5..25c78c4a0d3 100644 --- a/src/scripts/northrend/frozen_halls/pit_of_saron/boss_forgemaster_garfrost.cpp +++ b/src/scripts/northrend/frozen_halls/pit_of_saron/boss_forgemaster_garfrost.cpp @@ -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) diff --git a/src/scripts/northrend/frozen_halls/pit_of_saron/boss_krickandick.cpp b/src/scripts/northrend/frozen_halls/pit_of_saron/boss_krickandick.cpp index 593cec5f04f..8b8b03a3d4e 100644 --- a/src/scripts/northrend/frozen_halls/pit_of_saron/boss_krickandick.cpp +++ b/src/scripts/northrend/frozen_halls/pit_of_saron/boss_krickandick.cpp @@ -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; diff --git a/src/scripts/northrend/frozen_halls/pit_of_saron/boss_scourgelord_tyrannus.cpp b/src/scripts/northrend/frozen_halls/pit_of_saron/boss_scourgelord_tyrannus.cpp index 0f6753a0f53..55ffa0b4e4b 100644 --- a/src/scripts/northrend/frozen_halls/pit_of_saron/boss_scourgelord_tyrannus.cpp +++ b/src/scripts/northrend/frozen_halls/pit_of_saron/boss_scourgelord_tyrannus.cpp @@ -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); diff --git a/src/scripts/northrend/frozen_halls/pit_of_saron/instance_pit_of_saron.cpp b/src/scripts/northrend/frozen_halls/pit_of_saron/instance_pit_of_saron.cpp index 45422f54bcd..8512eca24c1 100644 --- a/src/scripts/northrend/frozen_halls/pit_of_saron/instance_pit_of_saron.cpp +++ b/src/scripts/northrend/frozen_halls/pit_of_saron/instance_pit_of_saron.cpp @@ -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(); diff --git a/src/scripts/northrend/frozen_halls/pit_of_saron/pit_of_saron.cpp b/src/scripts/northrend/frozen_halls/pit_of_saron/pit_of_saron.cpp index 82eebb5d3dd..bc53efc7033 100644 --- a/src/scripts/northrend/frozen_halls/pit_of_saron/pit_of_saron.cpp +++ b/src/scripts/northrend/frozen_halls/pit_of_saron/pit_of_saron.cpp @@ -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); diff --git a/src/scripts/northrend/grizzly_hills.cpp b/src/scripts/northrend/grizzly_hills.cpp index c07de861c9e..0fb7372f250 100644 --- a/src/scripts/northrend/grizzly_hills.cpp +++ b/src/scripts/northrend/grizzly_hills.cpp @@ -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) { diff --git a/src/scripts/northrend/gundrak/boss_drakkari_colossus.cpp b/src/scripts/northrend/gundrak/boss_drakkari_colossus.cpp index d5c7eed469d..04603c68813 100644 --- a/src/scripts/northrend/gundrak/boss_drakkari_colossus.cpp +++ b/src/scripts/northrend/gundrak/boss_drakkari_colossus.cpp @@ -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)) { diff --git a/src/scripts/northrend/gundrak/boss_eck.cpp b/src/scripts/northrend/gundrak/boss_eck.cpp index cd329119ca8..3bf1a33da5a 100644 --- a/src/scripts/northrend/gundrak/boss_eck.cpp +++ b/src/scripts/northrend/gundrak/boss_eck.cpp @@ -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) { diff --git a/src/scripts/northrend/gundrak/boss_gal_darah.cpp b/src/scripts/northrend/gundrak/boss_gal_darah.cpp index a5e4bb02cf3..c87a6600783 100644 --- a/src/scripts/northrend/gundrak/boss_gal_darah.cpp +++ b/src/scripts/northrend/gundrak/boss_gal_darah.cpp @@ -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; diff --git a/src/scripts/northrend/gundrak/boss_moorabi.cpp b/src/scripts/northrend/gundrak/boss_moorabi.cpp index bd832061dab..84a7d8bc654 100644 --- a/src/scripts/northrend/gundrak/boss_moorabi.cpp +++ b/src/scripts/northrend/gundrak/boss_moorabi.cpp @@ -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); diff --git a/src/scripts/northrend/gundrak/boss_slad_ran.cpp b/src/scripts/northrend/gundrak/boss_slad_ran.cpp index ccc28654d2c..1014beaeddd 100644 --- a/src/scripts/northrend/gundrak/boss_slad_ran.cpp +++ b/src/scripts/northrend/gundrak/boss_slad_ran.cpp @@ -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); } diff --git a/src/scripts/northrend/gundrak/instance_gundrak.cpp b/src/scripts/northrend/gundrak/instance_gundrak.cpp index c04901bd27b..4dd896f74f2 100644 --- a/src/scripts/northrend/gundrak/instance_gundrak.cpp +++ b/src/scripts/northrend/gundrak/instance_gundrak.cpp @@ -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); diff --git a/src/scripts/northrend/howling_fjord.cpp b/src/scripts/northrend/howling_fjord.cpp index 6940fc310c6..172501e2faa 100644 --- a/src/scripts/northrend/howling_fjord.cpp +++ b/src/scripts/northrend/howling_fjord.cpp @@ -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) { diff --git a/src/scripts/northrend/icecrown.cpp b/src/scripts/northrend/icecrown.cpp index 7d1f768a2df..5c47f22f825 100644 --- a/src/scripts/northrend/icecrown.cpp +++ b/src/scripts/northrend/icecrown.cpp @@ -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) { diff --git a/src/scripts/northrend/naxxramas/boss_anubrekhan.cpp b/src/scripts/northrend/naxxramas/boss_anubrekhan.cpp index b3bcebd6bc1..0439e73cc95 100644 --- a/src/scripts/northrend/naxxramas/boss_anubrekhan.cpp +++ b/src/scripts/northrend/naxxramas/boss_anubrekhan.cpp @@ -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); diff --git a/src/scripts/northrend/naxxramas/boss_faerlina.cpp b/src/scripts/northrend/naxxramas/boss_faerlina.cpp index bd88c254c58..aa5a940eb8f 100644 --- a/src/scripts/northrend/naxxramas/boss_faerlina.cpp +++ b/src/scripts/northrend/naxxramas/boss_faerlina.cpp @@ -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) { diff --git a/src/scripts/northrend/naxxramas/boss_four_horsemen.cpp b/src/scripts/northrend/naxxramas/boss_four_horsemen.cpp index 2f583d201b6..b88d45bf97a 100644 --- a/src/scripts/northrend/naxxramas/boss_four_horsemen.cpp +++ b/src/scripts/northrend/naxxramas/boss_four_horsemen.cpp @@ -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(); diff --git a/src/scripts/northrend/naxxramas/boss_gluth.cpp b/src/scripts/northrend/naxxramas/boss_gluth.cpp index 8e2bf131131..a57b171db87 100644 --- a/src/scripts/northrend/naxxramas/boss_gluth.cpp +++ b/src/scripts/northrend/naxxramas/boss_gluth.cpp @@ -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])) diff --git a/src/scripts/northrend/naxxramas/boss_gothik.cpp b/src/scripts/northrend/naxxramas/boss_gothik.cpp index 62180e344f6..d958ff24951 100644 --- a/src/scripts/northrend/naxxramas/boss_gothik.cpp +++ b/src/scripts/northrend/naxxramas/boss_gothik.cpp @@ -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()) { diff --git a/src/scripts/northrend/naxxramas/boss_grobbulus.cpp b/src/scripts/northrend/naxxramas/boss_grobbulus.cpp index f857adf1591..e1a1cbb7786 100644 --- a/src/scripts/northrend/naxxramas/boss_grobbulus.cpp +++ b/src/scripts/northrend/naxxramas/boss_grobbulus.cpp @@ -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); diff --git a/src/scripts/northrend/naxxramas/boss_heigan.cpp b/src/scripts/northrend/naxxramas/boss_heigan.cpp index 89e5d5adb19..1de9c0e00c8 100644 --- a/src/scripts/northrend/naxxramas/boss_heigan.cpp +++ b/src/scripts/northrend/naxxramas/boss_heigan.cpp @@ -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); diff --git a/src/scripts/northrend/naxxramas/boss_kelthuzad.cpp b/src/scripts/northrend/naxxramas/boss_kelthuzad.cpp index 18f78f63cee..bfcd0636298 100644 --- a/src/scripts/northrend/naxxramas/boss_kelthuzad.cpp +++ b/src/scripts/northrend/naxxramas/boss_kelthuzad.cpp @@ -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; diff --git a/src/scripts/northrend/naxxramas/boss_loatheb.cpp b/src/scripts/northrend/naxxramas/boss_loatheb.cpp index 40998e4bf77..0b0c8f5e4c5 100644 --- a/src/scripts/northrend/naxxramas/boss_loatheb.cpp +++ b/src/scripts/northrend/naxxramas/boss_loatheb.cpp @@ -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); diff --git a/src/scripts/northrend/naxxramas/boss_maexxna.cpp b/src/scripts/northrend/naxxramas/boss_maexxna.cpp index 810c6561c96..71d9cb86102 100644 --- a/src/scripts/northrend/naxxramas/boss_maexxna.cpp +++ b/src/scripts/northrend/naxxramas/boss_maexxna.cpp @@ -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)) diff --git a/src/scripts/northrend/naxxramas/boss_noth.cpp b/src/scripts/northrend/naxxramas/boss_noth.cpp index d7400928aea..b0cd4018955 100644 --- a/src/scripts/northrend/naxxramas/boss_noth.cpp +++ b/src/scripts/northrend/naxxramas/boss_noth.cpp @@ -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); diff --git a/src/scripts/northrend/naxxramas/boss_patchwerk.cpp b/src/scripts/northrend/naxxramas/boss_patchwerk.cpp index 060cc23bfc2..d5d0d720378 100644 --- a/src/scripts/northrend/naxxramas/boss_patchwerk.cpp +++ b/src/scripts/northrend/naxxramas/boss_patchwerk.cpp @@ -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; diff --git a/src/scripts/northrend/naxxramas/boss_razuvious.cpp b/src/scripts/northrend/naxxramas/boss_razuvious.cpp index e7eb05c1ccc..d507df86e83 100644 --- a/src/scripts/northrend/naxxramas/boss_razuvious.cpp +++ b/src/scripts/northrend/naxxramas/boss_razuvious.cpp @@ -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); diff --git a/src/scripts/northrend/naxxramas/boss_sapphiron.cpp b/src/scripts/northrend/naxxramas/boss_sapphiron.cpp index be5f3ac1d80..35172a39994 100644 --- a/src/scripts/northrend/naxxramas/boss_sapphiron.cpp +++ b/src/scripts/northrend/naxxramas/boss_sapphiron.cpp @@ -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); diff --git a/src/scripts/northrend/naxxramas/boss_thaddius.cpp b/src/scripts/northrend/naxxramas/boss_thaddius.cpp index bd13aaba5fd..350cd450510 100644 --- a/src/scripts/northrend/naxxramas/boss_thaddius.cpp +++ b/src/scripts/northrend/naxxramas/boss_thaddius.cpp @@ -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))) diff --git a/src/scripts/northrend/nexus/eye_of_eternity/boss_malygos.cpp b/src/scripts/northrend/nexus/eye_of_eternity/boss_malygos.cpp index 81b9b02701f..6b9f2d56b08 100644 --- a/src/scripts/northrend/nexus/eye_of_eternity/boss_malygos.cpp +++ b/src/scripts/northrend/nexus/eye_of_eternity/boss_malygos.cpp @@ -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; diff --git a/src/scripts/northrend/nexus/nexus/boss_anomalus.cpp b/src/scripts/northrend/nexus/nexus/boss_anomalus.cpp index 5f936ac0374..02c39dc1232 100644 --- a/src/scripts/northrend/nexus/nexus/boss_anomalus.cpp +++ b/src/scripts/northrend/nexus/nexus/boss_anomalus.cpp @@ -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; diff --git a/src/scripts/northrend/nexus/nexus/boss_keristrasza.cpp b/src/scripts/northrend/nexus/nexus/boss_keristrasza.cpp index 10ccc80035c..ff633c55eac 100644 --- a/src/scripts/northrend/nexus/nexus/boss_keristrasza.cpp +++ b/src/scripts/northrend/nexus/nexus/boss_keristrasza.cpp @@ -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(); diff --git a/src/scripts/northrend/nexus/nexus/boss_magus_telestra.cpp b/src/scripts/northrend/nexus/nexus/boss_magus_telestra.cpp index 7441087382d..0bf9fb07bb7 100644 --- a/src/scripts/northrend/nexus/nexus/boss_magus_telestra.cpp +++ b/src/scripts/northrend/nexus/nexus/boss_magus_telestra.cpp @@ -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); } diff --git a/src/scripts/northrend/nexus/nexus/boss_ormorok.cpp b/src/scripts/northrend/nexus/nexus/boss_ormorok.cpp index aabf8eaa71d..1304f95c7ac 100644 --- a/src/scripts/northrend/nexus/nexus/boss_ormorok.cpp +++ b/src/scripts/northrend/nexus/nexus/boss_ormorok.cpp @@ -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; diff --git a/src/scripts/northrend/nexus/nexus/commander_kolurg.cpp b/src/scripts/northrend/nexus/nexus/commander_kolurg.cpp index 5ab6a737615..4bd9f55a013 100644 --- a/src/scripts/northrend/nexus/nexus/commander_kolurg.cpp +++ b/src/scripts/northrend/nexus/nexus/commander_kolurg.cpp @@ -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) diff --git a/src/scripts/northrend/nexus/nexus/commander_stoutbeard.cpp b/src/scripts/northrend/nexus/nexus/commander_stoutbeard.cpp index 8dacef04c91..ef02baa38e6 100644 --- a/src/scripts/northrend/nexus/nexus/commander_stoutbeard.cpp +++ b/src/scripts/northrend/nexus/nexus/commander_stoutbeard.cpp @@ -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); } diff --git a/src/scripts/northrend/nexus/nexus/instance_nexus.cpp b/src/scripts/northrend/nexus/nexus/instance_nexus.cpp index cf94f14f8b9..db70245e3a4 100644 --- a/src/scripts/northrend/nexus/nexus/instance_nexus.cpp +++ b/src/scripts/northrend/nexus/nexus/instance_nexus.cpp @@ -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()) { diff --git a/src/scripts/northrend/nexus/oculus/boss_drakos.cpp b/src/scripts/northrend/nexus/oculus/boss_drakos.cpp index f4826702b5c..6796e399d45 100644 --- a/src/scripts/northrend/nexus/oculus/boss_drakos.cpp +++ b/src/scripts/northrend/nexus/oculus/boss_drakos.cpp @@ -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); } diff --git a/src/scripts/northrend/nexus/oculus/boss_eregos.cpp b/src/scripts/northrend/nexus/oculus/boss_eregos.cpp index 3f8e920b23f..94fb90ab206 100644 --- a/src/scripts/northrend/nexus/oculus/boss_eregos.cpp +++ b/src/scripts/northrend/nexus/oculus/boss_eregos.cpp @@ -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); diff --git a/src/scripts/northrend/nexus/oculus/boss_urom.cpp b/src/scripts/northrend/nexus/oculus/boss_urom.cpp index 0c9e85f7641..12176ef4f8a 100644 --- a/src/scripts/northrend/nexus/oculus/boss_urom.cpp +++ b/src/scripts/northrend/nexus/oculus/boss_urom.cpp @@ -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; diff --git a/src/scripts/northrend/nexus/oculus/boss_varos.cpp b/src/scripts/northrend/nexus/oculus/boss_varos.cpp index cd1132a030b..79034250a43 100644 --- a/src/scripts/northrend/nexus/oculus/boss_varos.cpp +++ b/src/scripts/northrend/nexus/oculus/boss_varos.cpp @@ -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; diff --git a/src/scripts/northrend/nexus/oculus/instance_oculus.cpp b/src/scripts/northrend/nexus/oculus/instance_oculus.cpp index c19e8c509c3..48bb1b5bcd7 100644 --- a/src/scripts/northrend/nexus/oculus/instance_oculus.cpp +++ b/src/scripts/northrend/nexus/oculus/instance_oculus.cpp @@ -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()) { diff --git a/src/scripts/northrend/nexus/oculus/oculus.cpp b/src/scripts/northrend/nexus/oculus/oculus.cpp index 27ea4ec1218..685583532d5 100644 --- a/src/scripts/northrend/nexus/oculus/oculus.cpp +++ b/src/scripts/northrend/nexus/oculus/oculus.cpp @@ -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()) { diff --git a/src/scripts/northrend/obsidian_sanctum/boss_sartharion.cpp b/src/scripts/northrend/obsidian_sanctum/boss_sartharion.cpp index dff310ccb7b..378f2633907 100644 --- a/src/scripts/northrend/obsidian_sanctum/boss_sartharion.cpp +++ b/src/scripts/northrend/obsidian_sanctum/boss_sartharion.cpp @@ -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) diff --git a/src/scripts/northrend/obsidian_sanctum/instance_obsidian_sanctum.cpp b/src/scripts/northrend/obsidian_sanctum/instance_obsidian_sanctum.cpp index d80985dc300..7ef8e03c779 100644 --- a/src/scripts/northrend/obsidian_sanctum/instance_obsidian_sanctum.cpp +++ b/src/scripts/northrend/obsidian_sanctum/instance_obsidian_sanctum.cpp @@ -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()) { diff --git a/src/scripts/northrend/sholazar_basin.cpp b/src/scripts/northrend/sholazar_basin.cpp index 4364caebfc4..b503766d60f 100644 --- a/src/scripts/northrend/sholazar_basin.cpp +++ b/src/scripts/northrend/sholazar_basin.cpp @@ -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; diff --git a/src/scripts/northrend/storm_peaks.cpp b/src/scripts/northrend/storm_peaks.cpp index e9261e9b837..2d674c81652 100644 --- a/src/scripts/northrend/storm_peaks.cpp +++ b/src/scripts/northrend/storm_peaks.cpp @@ -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) { diff --git a/src/scripts/northrend/ulduar/halls_of_lightning/boss_bjarngrim.cpp b/src/scripts/northrend/ulduar/halls_of_lightning/boss_bjarngrim.cpp index f4a8be0edff..c2da2a24e71 100644 --- a/src/scripts/northrend/ulduar/halls_of_lightning/boss_bjarngrim.cpp +++ b/src/scripts/northrend/ulduar/halls_of_lightning/boss_bjarngrim.cpp @@ -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); diff --git a/src/scripts/northrend/ulduar/halls_of_lightning/boss_ionar.cpp b/src/scripts/northrend/ulduar/halls_of_lightning/boss_ionar.cpp index 8ed7f1294d2..ecf61188b3e 100644 --- a/src/scripts/northrend/ulduar/halls_of_lightning/boss_ionar.cpp +++ b/src/scripts/northrend/ulduar/halls_of_lightning/boss_ionar.cpp @@ -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; } diff --git a/src/scripts/northrend/ulduar/halls_of_lightning/boss_loken.cpp b/src/scripts/northrend/ulduar/halls_of_lightning/boss_loken.cpp index f97cf3f6893..5ced0cf0874 100644 --- a/src/scripts/northrend/ulduar/halls_of_lightning/boss_loken.cpp +++ b/src/scripts/northrend/ulduar/halls_of_lightning/boss_loken.cpp @@ -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); } diff --git a/src/scripts/northrend/ulduar/halls_of_lightning/boss_volkhan.cpp b/src/scripts/northrend/ulduar/halls_of_lightning/boss_volkhan.cpp index 824485cd34f..184050e3103 100644 --- a/src/scripts/northrend/ulduar/halls_of_lightning/boss_volkhan.cpp +++ b/src/scripts/northrend/ulduar/halls_of_lightning/boss_volkhan.cpp @@ -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) diff --git a/src/scripts/northrend/ulduar/halls_of_lightning/instance_halls_of_lightning.cpp b/src/scripts/northrend/ulduar/halls_of_lightning/instance_halls_of_lightning.cpp index 0b63abd1a08..46cd5c9cccc 100644 --- a/src/scripts/northrend/ulduar/halls_of_lightning/instance_halls_of_lightning.cpp +++ b/src/scripts/northrend/ulduar/halls_of_lightning/instance_halls_of_lightning.cpp @@ -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()) { diff --git a/src/scripts/northrend/ulduar/halls_of_stone/boss_krystallus.cpp b/src/scripts/northrend/ulduar/halls_of_stone/boss_krystallus.cpp index 574e39f71a4..0674b7c79eb 100644 --- a/src/scripts/northrend/ulduar/halls_of_stone/boss_krystallus.cpp +++ b/src/scripts/northrend/ulduar/halls_of_stone/boss_krystallus.cpp @@ -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; diff --git a/src/scripts/northrend/ulduar/halls_of_stone/boss_maiden_of_grief.cpp b/src/scripts/northrend/ulduar/halls_of_stone/boss_maiden_of_grief.cpp index b4544cfc129..b3ec294f419 100644 --- a/src/scripts/northrend/ulduar/halls_of_stone/boss_maiden_of_grief.cpp +++ b/src/scripts/northrend/ulduar/halls_of_stone/boss_maiden_of_grief.cpp @@ -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; diff --git a/src/scripts/northrend/ulduar/halls_of_stone/boss_sjonnir.cpp b/src/scripts/northrend/ulduar/halls_of_stone/boss_sjonnir.cpp index 6dc338b0f93..68c3e34e6bf 100644 --- a/src/scripts/northrend/ulduar/halls_of_stone/boss_sjonnir.cpp +++ b/src/scripts/northrend/ulduar/halls_of_stone/boss_sjonnir.cpp @@ -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))) diff --git a/src/scripts/northrend/ulduar/halls_of_stone/halls_of_stone.cpp b/src/scripts/northrend/ulduar/halls_of_stone/halls_of_stone.cpp index a04f2ce203b..8febdaab879 100644 --- a/src/scripts/northrend/ulduar/halls_of_stone/halls_of_stone.cpp +++ b/src/scripts/northrend/ulduar/halls_of_stone/halls_of_stone.cpp @@ -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) { diff --git a/src/scripts/northrend/ulduar/halls_of_stone/instance_halls_of_stone.cpp b/src/scripts/northrend/ulduar/halls_of_stone/instance_halls_of_stone.cpp index 7c1c9da9142..69bb3779e70 100644 --- a/src/scripts/northrend/ulduar/halls_of_stone/instance_halls_of_stone.cpp +++ b/src/scripts/northrend/ulduar/halls_of_stone/instance_halls_of_stone.cpp @@ -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()) { diff --git a/src/scripts/northrend/ulduar/ulduar/boss_algalon.cpp b/src/scripts/northrend/ulduar/ulduar/boss_algalon.cpp index af45b5c857c..e8f67346adb 100644 --- a/src/scripts/northrend/ulduar/ulduar/boss_algalon.cpp +++ b/src/scripts/northrend/ulduar/ulduar/boss_algalon.cpp @@ -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); } diff --git a/src/scripts/northrend/ulduar/ulduar/boss_assembly_of_iron.cpp b/src/scripts/northrend/ulduar/ulduar/boss_assembly_of_iron.cpp index 4d26ab19332..8d3ae4d3431 100644 --- a/src/scripts/northrend/ulduar/ulduar/boss_assembly_of_iron.cpp +++ b/src/scripts/northrend/ulduar/ulduar/boss_assembly_of_iron.cpp @@ -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(); diff --git a/src/scripts/northrend/ulduar/ulduar/boss_auriaya.cpp b/src/scripts/northrend/ulduar/ulduar/boss_auriaya.cpp index f0864f4a212..41c0f317f4e 100644 --- a/src/scripts/northrend/ulduar/ulduar/boss_auriaya.cpp +++ b/src/scripts/northrend/ulduar/ulduar/boss_auriaya.cpp @@ -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) { diff --git a/src/scripts/northrend/ulduar/ulduar/boss_flame_leviathan.cpp b/src/scripts/northrend/ulduar/ulduar/boss_flame_leviathan.cpp index 8dfd0630e39..d0b7cff3006 100644 --- a/src/scripts/northrend/ulduar/ulduar/boss_flame_leviathan.cpp +++ b/src/scripts/northrend/ulduar/ulduar/boss_flame_leviathan.cpp @@ -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); diff --git a/src/scripts/northrend/ulduar/ulduar/boss_freya.cpp b/src/scripts/northrend/ulduar/ulduar/boss_freya.cpp index 3b06f0d72e4..1c4c2701731 100644 --- a/src/scripts/northrend/ulduar/ulduar/boss_freya.cpp +++ b/src/scripts/northrend/ulduar/ulduar/boss_freya.cpp @@ -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(); diff --git a/src/scripts/northrend/ulduar/ulduar/boss_hodir.cpp b/src/scripts/northrend/ulduar/ulduar/boss_hodir.cpp index 4b6664990b2..6facd8ac639 100644 --- a/src/scripts/northrend/ulduar/ulduar/boss_hodir.cpp +++ b/src/scripts/northrend/ulduar/ulduar/boss_hodir.cpp @@ -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(); diff --git a/src/scripts/northrend/ulduar/ulduar/boss_ignis.cpp b/src/scripts/northrend/ulduar/ulduar/boss_ignis.cpp index 40d91b94945..053b58cbe99 100644 --- a/src/scripts/northrend/ulduar/ulduar/boss_ignis.cpp +++ b/src/scripts/northrend/ulduar/ulduar/boss_ignis.cpp @@ -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) { diff --git a/src/scripts/northrend/ulduar/ulduar/boss_kologarn.cpp b/src/scripts/northrend/ulduar/ulduar/boss_kologarn.cpp index 3267d884dde..1fdfd38c7bf 100644 --- a/src/scripts/northrend/ulduar/ulduar/boss_kologarn.cpp +++ b/src/scripts/northrend/ulduar/ulduar/boss_kologarn.cpp @@ -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(); diff --git a/src/scripts/northrend/ulduar/ulduar/boss_razorscale.cpp b/src/scripts/northrend/ulduar/ulduar/boss_razorscale.cpp index 0c06e582838..c61f1046474 100644 --- a/src/scripts/northrend/ulduar/ulduar/boss_razorscale.cpp +++ b/src/scripts/northrend/ulduar/ulduar/boss_razorscale.cpp @@ -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; diff --git a/src/scripts/northrend/ulduar/ulduar/boss_thorim.cpp b/src/scripts/northrend/ulduar/ulduar/boss_thorim.cpp index 2d081093985..bbab077e10e 100644 --- a/src/scripts/northrend/ulduar/ulduar/boss_thorim.cpp +++ b/src/scripts/northrend/ulduar/ulduar/boss_thorim.cpp @@ -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(); diff --git a/src/scripts/northrend/ulduar/ulduar/boss_xt002.cpp b/src/scripts/northrend/ulduar/ulduar/boss_xt002.cpp index 7828c4ec1ff..7da871758ae 100644 --- a/src/scripts/northrend/ulduar/ulduar/boss_xt002.cpp +++ b/src/scripts/northrend/ulduar/ulduar/boss_xt002.cpp @@ -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))) { diff --git a/src/scripts/northrend/ulduar/ulduar/instance_ulduar.cpp b/src/scripts/northrend/ulduar/ulduar/instance_ulduar.cpp index 7e7d176f0a5..62dab2d3f7a 100644 --- a/src/scripts/northrend/ulduar/ulduar/instance_ulduar.cpp +++ b/src/scripts/northrend/ulduar/ulduar/instance_ulduar.cpp @@ -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()) { diff --git a/src/scripts/northrend/ulduar/ulduar/ulduar_teleporter.cpp b/src/scripts/northrend/ulduar/ulduar/ulduar_teleporter.cpp index 5d6c66a197a..44f9e86b69c 100644 --- a/src/scripts/northrend/ulduar/ulduar/ulduar_teleporter.cpp +++ b/src/scripts/northrend/ulduar/ulduar/ulduar_teleporter.cpp @@ -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; diff --git a/src/scripts/northrend/utgarde_keep/utgarde_keep/boss_ingvar_the_plunderer.cpp b/src/scripts/northrend/utgarde_keep/utgarde_keep/boss_ingvar_the_plunderer.cpp index 969d74f9867..77f824c48d5 100644 --- a/src/scripts/northrend/utgarde_keep/utgarde_keep/boss_ingvar_the_plunderer.cpp +++ b/src/scripts/northrend/utgarde_keep/utgarde_keep/boss_ingvar_the_plunderer.cpp @@ -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) diff --git a/src/scripts/northrend/utgarde_keep/utgarde_keep/boss_keleseth.cpp b/src/scripts/northrend/utgarde_keep/utgarde_keep/boss_keleseth.cpp index 9fbb1121d24..b365de8996f 100644 --- a/src/scripts/northrend/utgarde_keep/utgarde_keep/boss_keleseth.cpp +++ b/src/scripts/northrend/utgarde_keep/utgarde_keep/boss_keleseth.cpp @@ -76,9 +76,9 @@ struct mob_frost_tombAI : public ScriptedAI } void Reset(){ FrostTombGUID = 0; } - void EnterCombat(Unit* who) {} - void AttackStart(Unit* who) {} - void MoveInLineOfSight(Unit* who) {} + void EnterCombat(Unit* /*who*/) {} + void AttackStart(Unit* /*who*/) {} + void MoveInLineOfSight(Unit* /*who*/) {} void JustDied(Unit *killer) { @@ -93,7 +93,7 @@ struct mob_frost_tombAI : public ScriptedAI } } - void UpdateAI(const uint32 diff) + void UpdateAI(const uint32 /*diff*/) { Unit* temp = Unit::GetUnit((*me),FrostTombGUID); if ((temp && temp->isAlive() && !temp->HasAura(SPELL_FROST_TOMB)) || !temp) @@ -131,7 +131,7 @@ struct boss_kelesethAI : public ScriptedAI pInstance->SetData(DATA_PRINCEKELESETH_EVENT, NOT_STARTED); } - void KilledUnit(Unit *victim) + void KilledUnit(Unit * victim) { if (victim == me) return; @@ -139,7 +139,7 @@ struct boss_kelesethAI : public ScriptedAI DoScriptText(SAY_KILL, me); } - void JustDied(Unit* killer) + void JustDied(Unit* /*killer*/) { DoScriptText(SAY_DEATH, me); @@ -162,7 +162,7 @@ struct boss_kelesethAI : public ScriptedAI pInstance->SetData(DATA_PRINCEKELESETH_EVENT, DONE); } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { DoScriptText(SAY_AGGRO, me); DoZoneInCombat(); @@ -250,7 +250,7 @@ struct mob_vrykul_skeletonAI : public ScriptedAI isDead = false; } - void EnterCombat(Unit *who){} + void EnterCombat(Unit * /*who*/){} void DamageTaken(Unit *done_by, uint32 &damage) { if (done_by->GetGUID() == me->GetGUID()) diff --git a/src/scripts/northrend/utgarde_keep/utgarde_keep/boss_skarvald_dalronn.cpp b/src/scripts/northrend/utgarde_keep/utgarde_keep/boss_skarvald_dalronn.cpp index 4e93da95a4d..2146d37635b 100644 --- a/src/scripts/northrend/utgarde_keep/utgarde_keep/boss_skarvald_dalronn.cpp +++ b/src/scripts/northrend/utgarde_keep/utgarde_keep/boss_skarvald_dalronn.cpp @@ -92,7 +92,7 @@ struct boss_skarvald_the_constructorAI : public ScriptedAI } } - void EnterCombat(Unit *who) + void EnterCombat(Unit * who) { if (!ghost && pInstance) { @@ -136,7 +136,7 @@ struct boss_skarvald_the_constructorAI : public ScriptedAI } } - void KilledUnit(Unit *victim) + void KilledUnit(Unit * /*victim*/) { if (!ghost) { @@ -240,7 +240,7 @@ struct boss_dalronn_the_controllerAI : public ScriptedAI } } - void EnterCombat(Unit *who) + void EnterCombat(Unit * who) { if (!ghost && pInstance) { @@ -284,7 +284,7 @@ struct boss_dalronn_the_controllerAI : public ScriptedAI } } - void KilledUnit(Unit *victim) + void KilledUnit(Unit * /*victim*/) { if (!ghost) { diff --git a/src/scripts/northrend/utgarde_keep/utgarde_keep/instance_utgarde_keep.cpp b/src/scripts/northrend/utgarde_keep/utgarde_keep/instance_utgarde_keep.cpp index 2a471fb07de..03f97b1d27e 100644 --- a/src/scripts/northrend/utgarde_keep/utgarde_keep/instance_utgarde_keep.cpp +++ b/src/scripts/northrend/utgarde_keep/utgarde_keep/instance_utgarde_keep.cpp @@ -113,7 +113,7 @@ struct instance_utgarde_keep : public ScriptedInstance return NULL; } - void OnCreatureCreate(Creature* pCreature, bool add) + void OnCreatureCreate(Creature* pCreature, bool /*add*/) { switch(pCreature->GetEntry()) { @@ -124,7 +124,7 @@ struct instance_utgarde_keep : public ScriptedInstance } } - void OnGameObjectCreate(GameObject* pGo, bool add) + void OnGameObjectCreate(GameObject* pGo, bool /*add*/) { switch(pGo->GetEntry()) { diff --git a/src/scripts/northrend/utgarde_keep/utgarde_keep/utgarde_keep.cpp b/src/scripts/northrend/utgarde_keep/utgarde_keep/utgarde_keep.cpp index b5b064db86a..95825aa49b6 100644 --- a/src/scripts/northrend/utgarde_keep/utgarde_keep/utgarde_keep.cpp +++ b/src/scripts/northrend/utgarde_keep/utgarde_keep/utgarde_keep.cpp @@ -62,7 +62,7 @@ struct npc_dragonflayer_forge_masterAI : public ScriptedAI } } - void JustDied(Unit *killer) + void JustDied(Unit * /*killer*/) { if (fm_Type == 0) fm_Type = GetForgeMasterType(); if (pInstance) @@ -82,7 +82,7 @@ struct npc_dragonflayer_forge_masterAI : public ScriptedAI } } - void EnterCombat(Unit *who) + void EnterCombat(Unit * /*who*/) { if (fm_Type == 0) fm_Type = GetForgeMasterType(); if (pInstance) @@ -132,7 +132,7 @@ struct npc_dragonflayer_forge_masterAI : public ScriptedAI } } - void UpdateAI(const uint32 diff) + void UpdateAI(const uint32 /*diff*/) { if (fm_Type == 0) fm_Type = GetForgeMasterType(); diff --git a/src/scripts/northrend/utgarde_keep/utgarde_pinnacle/boss_palehoof.cpp b/src/scripts/northrend/utgarde_keep/utgarde_pinnacle/boss_palehoof.cpp index d30520f2c1b..e5b3690396b 100644 --- a/src/scripts/northrend/utgarde_keep/utgarde_pinnacle/boss_palehoof.cpp +++ b/src/scripts/northrend/utgarde_keep/utgarde_pinnacle/boss_palehoof.cpp @@ -121,7 +121,7 @@ struct boss_palehoofAI : public ScriptedAI } } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { DoScriptText(SAY_AGGRO, me); } @@ -177,7 +177,7 @@ struct boss_palehoofAI : public ScriptedAI DoMeleeAttackIfReady(); } - void JustDied(Unit* killer) + void JustDied(Unit* /*killer*/) { DoScriptText(SAY_DEATH, me); if (pInstance) @@ -187,7 +187,7 @@ struct boss_palehoofAI : public ScriptedAI pTemp->DisappearAndDie(); } - void KilledUnit(Unit *victim) + void KilledUnit(Unit * /*victim*/) { DoScriptText(RAND(SAY_SLAY_1,SAY_SLAY_2), me); } @@ -326,7 +326,7 @@ struct mob_ravenous_furbolgAI : public ScriptedAI } } - void JustDied(Unit* killer) + void JustDied(Unit* /*killer*/) { if (pInstance) { @@ -434,7 +434,7 @@ struct mob_frenzied_worgenAI : public ScriptedAI pInstance->SetData(DATA_GORTOK_PALEHOOF_EVENT, IN_PROGRESS); } - void JustDied(Unit* killer) + void JustDied(Unit* /*killer*/) { if (pInstance) { @@ -542,7 +542,7 @@ struct mob_ferocious_rhinoAI : public ScriptedAI } } - void JustDied(Unit* killer) + void JustDied(Unit* /*killer*/) { if (pInstance) { @@ -656,7 +656,7 @@ struct mob_massive_jormungarAI : public ScriptedAI } } - void JustDied(Unit* killer) + void JustDied(Unit* /*killer*/) { if (pInstance) { @@ -709,7 +709,7 @@ struct mob_palehoof_orbAI : public ScriptedAI { if (currentPhase<5&¤tPhase >= 0) { - Creature *pNext; + Creature *pNext = NULL; switch(currentPhase) { case PHASE_FRENZIED_WORGEN: pNext = Unit::GetCreature((*me), pInstance ? pInstance->GetData64(DATA_MOB_FRENZIED_WORGEN) : 0); break; @@ -739,7 +739,7 @@ struct mob_palehoof_orbAI : public ScriptedAI return; if (id<0 || id>4) return; - Creature *pNext; + Creature *pNext = NULL; switch(id) { case PHASE_FRENZIED_WORGEN: pNext = Unit::GetCreature((*me), pInstance ? pInstance->GetData64(DATA_MOB_FRENZIED_WORGEN) : 0); break; @@ -762,7 +762,7 @@ CreatureAI* GetAI_mob_palehoof_orb(Creature* pCreature) -bool GOHello_palehoof_sphere(Player *pPlayer, GameObject *pGO) +bool GOHello_palehoof_sphere(Player * /*pPlayer*/, GameObject *pGO) { ScriptedInstance *pInstance = pGO->GetInstanceData(); diff --git a/src/scripts/northrend/utgarde_keep/utgarde_pinnacle/boss_skadi.cpp b/src/scripts/northrend/utgarde_keep/utgarde_pinnacle/boss_skadi.cpp index 7570af83f9f..0ccd7a4917b 100644 --- a/src/scripts/northrend/utgarde_keep/utgarde_pinnacle/boss_skadi.cpp +++ b/src/scripts/northrend/utgarde_keep/utgarde_pinnacle/boss_skadi.cpp @@ -104,7 +104,7 @@ struct boss_skadiAI : public ScriptedAI pInstance->SetData(DATA_SKADI_THE_RUTHLESS_EVENT, NOT_STARTED); } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { DoScriptText(SAY_AGGRO, me); @@ -171,7 +171,7 @@ struct boss_skadiAI : public ScriptedAI } } - void JustDied(Unit* killer) + void JustDied(Unit* /*killer*/) { DoScriptText(SAY_DEATH, me); @@ -179,7 +179,7 @@ struct boss_skadiAI : public ScriptedAI pInstance->SetData(DATA_SKADI_THE_RUTHLESS_EVENT, DONE); } - void KilledUnit(Unit *victim) + void KilledUnit(Unit * /*victim*/) { DoScriptText(RAND(SAY_KILL_1,SAY_KILL_2,SAY_KILL_3), me); } @@ -219,7 +219,7 @@ struct boss_skadiAI : public ScriptedAI uint8 uiMaxSpawn = DUNGEON_MODE(5, 6); for (uint8 i = 0; i < uiMaxSpawn; ++i) { - Creature* pTemp; + Creature* pTemp = NULL; switch (urand(0,2)) { case 0: pTemp = me->SummonCreature(CREATURE_YMIRJAR_WARRIOR, SpawnLoc[spot].x+rand()%5, SpawnLoc[spot].y+rand()%5, SpawnLoc[spot].z, 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 30000); break; diff --git a/src/scripts/northrend/utgarde_keep/utgarde_pinnacle/boss_svala.cpp b/src/scripts/northrend/utgarde_keep/utgarde_pinnacle/boss_svala.cpp index 3015cc3b174..aae1015ddab 100644 --- a/src/scripts/northrend/utgarde_keep/utgarde_pinnacle/boss_svala.cpp +++ b/src/scripts/northrend/utgarde_keep/utgarde_pinnacle/boss_svala.cpp @@ -131,7 +131,7 @@ struct boss_svalaAI : public ScriptedAI } } - void AttackStart(Unit* who) {} + void AttackStart(Unit* /*who*/) {} void UpdateAI(const uint32 diff) { @@ -209,14 +209,14 @@ struct mob_ritual_channelerAI : public Scripted_NoMovementAI } // called by svala sorrowgrave to set guid of victim - void DoAction(uint32 action) + void DoAction(uint32 /*action*/) { if (pInstance) if (Unit *pVictim = me->GetUnit(*me, pInstance->GetData64(DATA_SACRIFICED_PLAYER))) DoCast(pVictim, SPELL_PARALYZE); } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { } }; @@ -264,7 +264,7 @@ struct boss_svala_sorrowgraveAI : public ScriptedAI } } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { DoScriptText(SAY_AGGRO, me); @@ -353,7 +353,7 @@ struct boss_svala_sorrowgraveAI : public ScriptedAI } } - void KilledUnit(Unit* pVictim) + void KilledUnit(Unit* /*pVictim*/) { DoScriptText(RAND(SAY_SLAY_1,SAY_SLAY_2,SAY_SLAY_3), me); } diff --git a/src/scripts/northrend/utgarde_keep/utgarde_pinnacle/boss_ymiron.cpp b/src/scripts/northrend/utgarde_keep/utgarde_pinnacle/boss_ymiron.cpp index 164f24faedd..456f7d04990 100644 --- a/src/scripts/northrend/utgarde_keep/utgarde_pinnacle/boss_ymiron.cpp +++ b/src/scripts/northrend/utgarde_keep/utgarde_pinnacle/boss_ymiron.cpp @@ -156,7 +156,7 @@ struct boss_ymironAI : public ScriptedAI pInstance->SetData(DATA_KING_YMIRON_EVENT, NOT_STARTED); } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { DoScriptText(SAY_AGGRO, me); @@ -325,7 +325,7 @@ struct boss_ymironAI : public ScriptedAI } } - void JustDied(Unit* killer) + void JustDied(Unit* /*killer*/) { DoScriptText(SAY_DEATH, me); @@ -336,7 +336,7 @@ struct boss_ymironAI : public ScriptedAI pInstance->SetData(DATA_KING_YMIRON_EVENT, DONE); } - void KilledUnit(Unit *victim) + void KilledUnit(Unit * /*victim*/) { DoScriptText(RAND(SAY_SLAY_1,SAY_SLAY_2,SAY_SLAY_3,SAY_SLAY_4), me); } diff --git a/src/scripts/northrend/utgarde_keep/utgarde_pinnacle/instance_pinnacle.cpp b/src/scripts/northrend/utgarde_keep/utgarde_pinnacle/instance_pinnacle.cpp index 69e608a8f3c..b49e59f777a 100644 --- a/src/scripts/northrend/utgarde_keep/utgarde_pinnacle/instance_pinnacle.cpp +++ b/src/scripts/northrend/utgarde_keep/utgarde_pinnacle/instance_pinnacle.cpp @@ -75,7 +75,7 @@ struct instance_pinnacle : public ScriptedInstance return false; } - void OnCreatureCreate(Creature* pCreature, bool add) + void OnCreatureCreate(Creature* pCreature, bool /*add*/) { switch(pCreature->GetEntry()) { @@ -92,7 +92,7 @@ struct instance_pinnacle : public ScriptedInstance } } - void OnGameObjectCreate(GameObject* pGo, bool add) + void OnGameObjectCreate(GameObject* pGo, bool /*add*/) { switch(pGo->GetEntry()) { diff --git a/src/scripts/northrend/vault_of_archavon/boss_archavon.cpp b/src/scripts/northrend/vault_of_archavon/boss_archavon.cpp index f052600900b..11d432e94c6 100644 --- a/src/scripts/northrend/vault_of_archavon/boss_archavon.cpp +++ b/src/scripts/northrend/vault_of_archavon/boss_archavon.cpp @@ -72,15 +72,15 @@ struct boss_archavonAI : public ScriptedAI pInstance->SetData(DATA_ARCHAVON_EVENT, NOT_STARTED); } - void KilledUnit(Unit* Victim){} + void KilledUnit(Unit* /*Victim*/) {} - void JustDied(Unit* Killer) + void JustDied(Unit* /*Killer*/) { if (pInstance) pInstance->SetData(DATA_ARCHAVON_EVENT, DONE); } - void EnterCombat(Unit *who) + void EnterCombat(Unit * /*who*/) { DoZoneInCombat(); events.ScheduleEvent(EVENT_ROCK_SHARDS, 15000); @@ -151,7 +151,7 @@ struct mob_archavon_warderAI : public ScriptedAI //npc 32353 events.Reset(); } - void EnterCombat(Unit *who) + void EnterCombat(Unit * /*who*/) { DoZoneInCombat(); events.ScheduleEvent(EVENT_ROCK_SHOWER, 2000); diff --git a/src/scripts/northrend/vault_of_archavon/boss_emalon.cpp b/src/scripts/northrend/vault_of_archavon/boss_emalon.cpp index f849f4d39ed..92a0331708e 100644 --- a/src/scripts/northrend/vault_of_archavon/boss_emalon.cpp +++ b/src/scripts/northrend/vault_of_archavon/boss_emalon.cpp @@ -80,7 +80,7 @@ struct boss_emalonAI : public BossAI summoned->AI()->AttackStart(me->getVictim()); } - void EnterCombat(Unit *who) + void EnterCombat(Unit * who) { if (!summons.empty()) { @@ -173,7 +173,7 @@ struct mob_tempest_minionAI : public ScriptedAI uiOverchargedTimer = 0; } - void JustDied(Unit* Killer) + void JustDied(Unit* /*Killer*/) { if (Creature *pEmalon = Unit::GetCreature(*me, pInstance ? pInstance->GetData64(DATA_EMALON) : 0)) { @@ -185,7 +185,7 @@ struct mob_tempest_minionAI : public ScriptedAI } } - void EnterCombat(Unit *who) + void EnterCombat(Unit * who) { DoZoneInCombat(); events.ScheduleEvent(EVENT_SHOCK, 20000); diff --git a/src/scripts/northrend/vault_of_archavon/boss_koralon.cpp b/src/scripts/northrend/vault_of_archavon/boss_koralon.cpp index 7503d6c8fd8..61843647136 100644 --- a/src/scripts/northrend/vault_of_archavon/boss_koralon.cpp +++ b/src/scripts/northrend/vault_of_archavon/boss_koralon.cpp @@ -82,15 +82,15 @@ struct boss_koralonAI : public ScriptedAI pInstance->SetData(DATA_KORALON_EVENT, NOT_STARTED); } - void KilledUnit(Unit* Victim) {} + void KilledUnit(Unit* /*Victim*/) {} - void JustDied(Unit* Killer) + void JustDied(Unit* /*Killer*/) { if (pInstance) pInstance->SetData(DATA_KORALON_EVENT, DONE); } - void EnterCombat(Unit *who) + void EnterCombat(Unit * /*who*/) { DoZoneInCombat(); @@ -159,7 +159,7 @@ struct mob_flame_warderAI : public ScriptedAI events.Reset(); } - void EnterCombat(Unit *who) + void EnterCombat(Unit * /*who*/) { DoZoneInCombat(); diff --git a/src/scripts/northrend/vault_of_archavon/boss_toravon.cpp b/src/scripts/northrend/vault_of_archavon/boss_toravon.cpp index 554c36b0789..250238f1c12 100644 --- a/src/scripts/northrend/vault_of_archavon/boss_toravon.cpp +++ b/src/scripts/northrend/vault_of_archavon/boss_toravon.cpp @@ -72,15 +72,15 @@ struct boss_toravonAI : public ScriptedAI pInstance->SetData(DATA_TORAVON_EVENT, NOT_STARTED); } - void KilledUnit(Unit* Victim) {} + void KilledUnit(Unit* /*Victim*/) {} - void JustDied(Unit* Killer) + void JustDied(Unit* /*Killer*/) { if (pInstance) pInstance->SetData(DATA_TORAVON_EVENT, DONE); } - void EnterCombat(Unit *who) + void EnterCombat(Unit * /*who*/) { DoZoneInCombat(); @@ -141,7 +141,7 @@ struct mob_frost_warderAI : public ScriptedAI events.Reset(); } - void EnterCombat(Unit *who) + void EnterCombat(Unit * /*who*/) { DoZoneInCombat(); @@ -188,7 +188,7 @@ struct mob_frozen_orbAI : public ScriptedAI killtimer = 60000; // if after this time there is no victim -> destroy! } - void EnterCombat(Unit *who) + void EnterCombat(Unit * /*who*/) { DoZoneInCombat(); } @@ -231,7 +231,7 @@ struct mob_frozen_orb_stalkerAI : public Scripted_NoMovementAI ScriptedInstance *pInstance; bool spawned; - void UpdateAI(const uint32 diff) + void UpdateAI(const uint32 /*diff*/) { if (!spawned) { diff --git a/src/scripts/northrend/vault_of_archavon/instance_vault_of_archavon.cpp b/src/scripts/northrend/vault_of_archavon/instance_vault_of_archavon.cpp index b37da980936..a7183921cce 100644 --- a/src/scripts/northrend/vault_of_archavon/instance_vault_of_archavon.cpp +++ b/src/scripts/northrend/vault_of_archavon/instance_vault_of_archavon.cpp @@ -41,7 +41,7 @@ struct instance_archavon : public ScriptedInstance return false; } - void OnCreatureCreate(Creature *creature, bool add) + void OnCreatureCreate(Creature *creature, bool /*add*/) { switch(creature->GetEntry()) { diff --git a/src/scripts/northrend/violet_hold/boss_cyanigosa.cpp b/src/scripts/northrend/violet_hold/boss_cyanigosa.cpp index aebca89f345..589e69a6f18 100644 --- a/src/scripts/northrend/violet_hold/boss_cyanigosa.cpp +++ b/src/scripts/northrend/violet_hold/boss_cyanigosa.cpp @@ -65,7 +65,7 @@ struct boss_cyanigosaAI : public ScriptedAI pInstance->SetData(DATA_CYANIGOSA_EVENT, NOT_STARTED); } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { DoScriptText(SAY_AGGRO, me); DoCast(me, SPELL_TRANSFORM); @@ -74,7 +74,7 @@ struct boss_cyanigosaAI : public ScriptedAI pInstance->SetData(DATA_CYANIGOSA_EVENT, IN_PROGRESS); } - void MoveInLineOfSight(Unit* who) {} + void MoveInLineOfSight(Unit* /*who*/) {} void UpdateAI(const uint32 diff) { @@ -124,7 +124,7 @@ struct boss_cyanigosaAI : public ScriptedAI DoMeleeAttackIfReady(); } - void JustDied(Unit* killer) + void JustDied(Unit* /*killer*/) { DoScriptText(SAY_DEATH, me); @@ -132,7 +132,7 @@ struct boss_cyanigosaAI : public ScriptedAI pInstance->SetData(DATA_CYANIGOSA_EVENT, DONE); } - void KilledUnit(Unit *victim) + void KilledUnit(Unit * victim) { if (victim == me) return; diff --git a/src/scripts/northrend/violet_hold/boss_erekem.cpp b/src/scripts/northrend/violet_hold/boss_erekem.cpp index 8773040c81d..a9cc7393af4 100644 --- a/src/scripts/northrend/violet_hold/boss_erekem.cpp +++ b/src/scripts/northrend/violet_hold/boss_erekem.cpp @@ -106,7 +106,7 @@ struct boss_erekemAI : public ScriptedAI } } - void EnterCombat(Unit* pWho) + void EnterCombat(Unit* /*pWho*/) { DoScriptText(SAY_AGGRO, me); DoCast(me, SPELL_EARTH_SHIELD); @@ -127,7 +127,7 @@ struct boss_erekemAI : public ScriptedAI } } - void MoveInLineOfSight(Unit* who) {} + void MoveInLineOfSight(Unit* /*who*/) {} void UpdateAI(const uint32 diff) { @@ -190,7 +190,7 @@ struct boss_erekemAI : public ScriptedAI DoMeleeAttackIfReady(); } - void JustDied(Unit* killer) + void JustDied(Unit* /*killer*/) { DoScriptText(SAY_DEATH, me); @@ -209,7 +209,7 @@ struct boss_erekemAI : public ScriptedAI } } - void KilledUnit(Unit *victim) + void KilledUnit(Unit * victim) { if (victim == me) return; @@ -279,7 +279,7 @@ struct mob_erekem_guardAI : public ScriptedAI } } - void MoveInLineOfSight(Unit* who) {} + void MoveInLineOfSight(Unit* /*who*/) {} void UpdateAI(const uint32 diff) { diff --git a/src/scripts/northrend/violet_hold/boss_ichoron.cpp b/src/scripts/northrend/violet_hold/boss_ichoron.cpp index cd7c4b2fb8b..a28bfdffb7c 100644 --- a/src/scripts/northrend/violet_hold/boss_ichoron.cpp +++ b/src/scripts/northrend/violet_hold/boss_ichoron.cpp @@ -116,7 +116,7 @@ struct boss_ichoronAI : public ScriptedAI } } - void EnterCombat(Unit* pWho) + void EnterCombat(Unit* /*pWho*/) { DoScriptText(SAY_AGGRO, me); @@ -195,7 +195,7 @@ struct boss_ichoronAI : public ScriptedAI me->GetMotionMaster()->MoveChase(me->getVictim()); } - void MoveInLineOfSight(Unit* pWho) {} + void MoveInLineOfSight(Unit* /*pWho*/) {} void UpdateAI(const uint32 uiDiff) { @@ -266,7 +266,7 @@ struct boss_ichoronAI : public ScriptedAI } } - void JustDied(Unit* killer) + void JustDied(Unit* /*killer*/) { DoScriptText(SAY_DEATH, me); @@ -309,7 +309,7 @@ struct boss_ichoronAI : public ScriptedAI m_waterElements.remove(pSummoned->GetGUID()); } - void KilledUnit(Unit *victim) + void KilledUnit(Unit * victim) { if (victim == me) return; @@ -338,7 +338,7 @@ struct mob_ichor_globuleAI : public ScriptedAI uiRangeCheck_Timer = 1000; } - void AttackStart(Unit* pWho) + void AttackStart(Unit* /*pWho*/) { return; } @@ -364,7 +364,7 @@ struct mob_ichor_globuleAI : public ScriptedAI else uiRangeCheck_Timer -= uiDiff; } - void JustDied(Unit* pKiller) + void JustDied(Unit* /*pKiller*/) { DoCast(me, SPELL_SPLASH); if (Creature* pIchoron = Unit::GetCreature(*me, pInstance->GetData64(DATA_ICHORON))) diff --git a/src/scripts/northrend/violet_hold/boss_lavanthor.cpp b/src/scripts/northrend/violet_hold/boss_lavanthor.cpp index c9f1a1c4ba8..d8cd3a4962f 100644 --- a/src/scripts/northrend/violet_hold/boss_lavanthor.cpp +++ b/src/scripts/northrend/violet_hold/boss_lavanthor.cpp @@ -52,7 +52,7 @@ struct boss_lavanthorAI : public ScriptedAI } } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { if (pInstance) { @@ -83,7 +83,7 @@ struct boss_lavanthorAI : public ScriptedAI } } - void MoveInLineOfSight(Unit* who) {} + void MoveInLineOfSight(Unit* /*who*/) {} void UpdateAI(const uint32 diff) { @@ -121,7 +121,7 @@ struct boss_lavanthorAI : public ScriptedAI DoMeleeAttackIfReady(); } - void JustDied(Unit* killer) + void JustDied(Unit* /*killer*/) { if (pInstance) { diff --git a/src/scripts/northrend/violet_hold/boss_moragg.cpp b/src/scripts/northrend/violet_hold/boss_moragg.cpp index 9cc769be04d..6d283c7bfb4 100644 --- a/src/scripts/northrend/violet_hold/boss_moragg.cpp +++ b/src/scripts/northrend/violet_hold/boss_moragg.cpp @@ -45,7 +45,7 @@ struct boss_moraggAI : public ScriptedAI } } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { if (pInstance) { @@ -76,7 +76,7 @@ struct boss_moraggAI : public ScriptedAI } } - void MoveInLineOfSight(Unit* who) {} + void MoveInLineOfSight(Unit* /*who*/) {} void UpdateAI(const uint32 diff) { @@ -99,7 +99,7 @@ struct boss_moraggAI : public ScriptedAI DoMeleeAttackIfReady(); } - void JustDied(Unit* killer) + void JustDied(Unit* /*killer*/) { if (pInstance) { diff --git a/src/scripts/northrend/violet_hold/boss_xevozz.cpp b/src/scripts/northrend/violet_hold/boss_xevozz.cpp index edb78b68f6b..2633705c1b7 100644 --- a/src/scripts/northrend/violet_hold/boss_xevozz.cpp +++ b/src/scripts/northrend/violet_hold/boss_xevozz.cpp @@ -131,7 +131,7 @@ struct boss_xevozzAI : public ScriptedAI } } - void EnterCombat(Unit* pWho) + void EnterCombat(Unit* /*pWho*/) { DoScriptText(SAY_AGGRO, me); if (pInstance) @@ -149,7 +149,7 @@ struct boss_xevozzAI : public ScriptedAI } } - void MoveInLineOfSight(Unit* pWho) {} + void MoveInLineOfSight(Unit* /*pWho*/) {} void UpdateAI(const uint32 uiDiff) { @@ -187,7 +187,7 @@ struct boss_xevozzAI : public ScriptedAI DoMeleeAttackIfReady(); } - void JustDied(Unit* pKiller) + void JustDied(Unit* /*pKiller*/) { DoScriptText(SAY_DEATH, me); diff --git a/src/scripts/northrend/violet_hold/boss_zuramat.cpp b/src/scripts/northrend/violet_hold/boss_zuramat.cpp index f6dcf7c86b1..da75ed94fc2 100644 --- a/src/scripts/northrend/violet_hold/boss_zuramat.cpp +++ b/src/scripts/northrend/violet_hold/boss_zuramat.cpp @@ -79,7 +79,7 @@ struct boss_zuramatAI : public ScriptedAI } } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { DoScriptText(SAY_AGGRO, me); if (pInstance) @@ -97,7 +97,7 @@ struct boss_zuramatAI : public ScriptedAI } } - void MoveInLineOfSight(Unit* who) {} + void MoveInLineOfSight(Unit* /*who*/) {} void UpdateAI(const uint32 diff) { @@ -127,7 +127,7 @@ struct boss_zuramatAI : public ScriptedAI DoMeleeAttackIfReady(); } - void JustDied(Unit* killer) + void JustDied(Unit* /*killer*/) { DoScriptText(SAY_DEATH, me); @@ -146,7 +146,7 @@ struct boss_zuramatAI : public ScriptedAI } } - void KilledUnit(Unit *victim) + void KilledUnit(Unit * victim) { if (victim == me) return; diff --git a/src/scripts/northrend/violet_hold/instance_violet_hold.cpp b/src/scripts/northrend/violet_hold/instance_violet_hold.cpp index befe0f9cbf4..4d993eccd27 100644 --- a/src/scripts/northrend/violet_hold/instance_violet_hold.cpp +++ b/src/scripts/northrend/violet_hold/instance_violet_hold.cpp @@ -174,7 +174,7 @@ struct instance_violet_hold : public ScriptedInstance } } - void OnGameObjectCreate(GameObject* pGo, bool add) + void OnGameObjectCreate(GameObject* pGo, bool /*add*/) { switch(pGo->GetEntry()) { diff --git a/src/scripts/northrend/violet_hold/violet_hold.cpp b/src/scripts/northrend/violet_hold/violet_hold.cpp index 6c1b33a77bf..49883b5dbf3 100644 --- a/src/scripts/northrend/violet_hold/violet_hold.cpp +++ b/src/scripts/northrend/violet_hold/violet_hold.cpp @@ -69,7 +69,7 @@ struct npc_sinclariAI : public ScriptedAI } } - void MovementInform(uint32 uiType, uint32 uiId) + void MovementInform(uint32 uiType, uint32 /*uiId*/) { if (uiType != POINT_MOTION_TYPE) return; @@ -169,7 +169,7 @@ bool GossipHello_npc_sinclari(Player* pPlayer, Creature* pCreature) return true; } -bool GossipSelect_npc_sinclari(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction) +bool GossipSelect_npc_sinclari(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction) { switch(uiAction) { @@ -203,8 +203,8 @@ struct npc_teleportation_portalAI : public ScriptedAI bPortalGuardianOrKeeperSpawn = false; } - void EnterCombat(Unit *who) {} - void MoveInLineOfSight(Unit *who) {} + void EnterCombat(Unit * /*who*/) {} + void MoveInLineOfSight(Unit * /*who*/) {} void UpdateAI(const uint32 diff) { @@ -244,7 +244,7 @@ struct npc_teleportation_portalAI : public ScriptedAI } } - void JustDied(Unit* killer) + void JustDied(Unit* /*killer*/) { if (pInstance) pInstance->SetData(DATA_WAVE_COUNT,pInstance->GetData(DATA_WAVE_COUNT)+1); diff --git a/src/scripts/northrend/zuldrak.cpp b/src/scripts/northrend/zuldrak.cpp index ceaac1a864a..845d1ae0c24 100644 --- a/src/scripts/northrend/zuldrak.cpp +++ b/src/scripts/northrend/zuldrak.cpp @@ -127,9 +127,9 @@ struct npc_captured_rageclawAI : public ScriptedAI DoCast(me, SPELL_KNEEL, true); // Little Hack for kneel - Thanks Illy :P } - void MoveInLineOfSight(Unit *who){} + void MoveInLineOfSight(Unit * /*who*/){} - void SpellHit(Unit* pCaster, const SpellEntry* pSpell) + void SpellHit(Unit* /*pCaster*/, const SpellEntry* pSpell) { if (pSpell->Id == SPELL_FREE_RAGECLAW) { @@ -200,7 +200,7 @@ bool GossipHello_npc_gymer(Player* pPlayer, Creature* pCreature) return true; } -bool GossipSelect_npc_gymer(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction) +bool GossipSelect_npc_gymer(Player* pPlayer, Creature* /*pCreature*/, uint32 /*uiSender*/, uint32 uiAction) { if (uiAction == GOSSIP_ACTION_INFO_DEF+1) { @@ -393,7 +393,7 @@ struct npc_gurgthockAI : public ScriptedAI SummonList.push_back(pSummon->GetGUID()); } - void SummonedCreatureDespawn(Creature* pSummon) + void SummonedCreatureDespawn(Creature* /*pSummon*/) { if (bEventInProgress) bEventInProgress = false; @@ -402,7 +402,7 @@ struct npc_gurgthockAI : public ScriptedAI } }; -bool QuestAccept_npc_gurgthock(Player* pPlayer, Creature* pCreature, Quest const* pQuest) +bool QuestAccept_npc_gurgthock(Player* /*pPlayer*/, Creature* pCreature, Quest const* pQuest) { switch (pQuest->GetQuestId()) { @@ -486,7 +486,7 @@ struct npc_orinoko_tuskbreakerAI : public ScriptedAI pAI->RemoveSummons(); } - void MovementInform(uint32 uiType, uint32 uiId) + void MovementInform(uint32 uiType, uint32 /*uiId*/) { if (uiType != POINT_MOTION_TYPE) return; @@ -628,7 +628,7 @@ struct npc_korrak_bloodragerAI : public npc_escortAI } } - void EnterCombat(Unit* pWho) + void EnterCombat(Unit* /*pWho*/) { DoCast(me, SPELL_GROW); } @@ -711,7 +711,7 @@ struct npc_yggdrasAI : public ScriptedAI pAI->RemoveSummons(); } - void EnterCombat(Unit* pWho) + void EnterCombat(Unit* /*pWho*/) { DoCast(me, SPELL_GROW); } @@ -890,7 +890,7 @@ struct npc_released_offspring_harkoaAI : public ScriptedAI me->GetMotionMaster()->MovePoint(0, x, y, z); } - void MovementInform(uint32 uiType, uint32 uiId) + void MovementInform(uint32 uiType, uint32 /*uiId*/) { if (uiType != POINT_MOTION_TYPE) return; @@ -994,7 +994,7 @@ bool GossipHello_npc_crusade_recruit(Player* pPlayer, Creature* pCreature) return true; } -bool GossipSelect_npc_crusade_recruit(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction) +bool GossipSelect_npc_crusade_recruit(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction) { if (uiAction == GOSSIP_ACTION_INFO_DEF +1) { |
