Remove LOTS of compile warnings

--HG--
branch : trunk
This commit is contained in:
Spp
2010-04-19 09:26:37 +02:00
parent fdd8d2f3cc
commit 74dd02d024
549 changed files with 2082 additions and 2122 deletions
+2 -2
View File
@@ -97,7 +97,7 @@ struct npc_torekAI : public npc_escortAI
Completed = false;
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
}
@@ -192,7 +192,7 @@ struct npc_ruul_snowhoofAI : public npc_escortAI
}
}
void EnterCombat(Unit* who) {}
void EnterCombat(Unit* /*who*/) {}
void Reset()
{
+6 -8
View File
@@ -49,7 +49,7 @@ struct mobs_spitelashesAI : public ScriptedAI
spellhit = false;
}
void EnterCombat(Unit *who) { }
void EnterCombat(Unit * /*who*/) { }
void SpellHit(Unit *Hitter, const SpellEntry *Spellkind)
{
@@ -121,7 +121,7 @@ bool GossipHello_npc_loramus_thalipedes(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_loramus_thalipedes(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_loramus_thalipedes(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
switch (uiAction)
{
@@ -383,7 +383,7 @@ struct mob_rizzle_sprysprocketAI : public ScriptedAI
}
}
void EnterCombat(Unit* who) {}
void EnterCombat(Unit* /*who*/) {}
void MovementInform(uint32 type, uint32 id)
{
@@ -411,7 +411,7 @@ bool GossipHello_mob_rizzle_sprysprocket(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_mob_rizzle_sprysprocket(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_mob_rizzle_sprysprocket(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
if (uiAction == GOSSIP_ACTION_INFO_DEF + 1 && pPlayer->GetQuestStatus(10994) == QUEST_STATUS_INCOMPLETE)
{
@@ -470,14 +470,12 @@ struct mob_depth_chargeAI : public ScriptedAI
}
}
void AttackStart(Unit *who)
void AttackStart(Unit * /*who*/)
{
return;
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
return;
}
};
+7 -9
View File
@@ -86,7 +86,7 @@ struct npc_draenei_survivorAI : public ScriptedAI
me->SetStandState(UNIT_STAND_STATE_SLEEP);
}
void EnterCombat(Unit *who) {}
void EnterCombat(Unit * /*who*/) {}
void MoveInLineOfSight(Unit *who)
{
@@ -257,7 +257,7 @@ bool GossipHello_npc_engineer_spark_overgrind(Player* pPlayer, Creature* pCreatu
return true;
}
bool GossipSelect_npc_engineer_spark_overgrind(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_engineer_spark_overgrind(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
if (uiAction == GOSSIP_ACTION_INFO_DEF)
{
@@ -287,16 +287,14 @@ struct npc_injured_draeneiAI : public ScriptedAI
}
}
void EnterCombat(Unit *who) {}
void EnterCombat(Unit * /*who*/) {}
void MoveInLineOfSight(Unit *who)
void MoveInLineOfSight(Unit * /*who*/)
{
return; //ignore everyone around them (won't aggro anything)
}
void UpdateAI(const uint32 diff)
void UpdateAI(const uint32 /*diff*/)
{
return;
}
};
@@ -419,7 +417,7 @@ struct npc_geezleAI : public ScriptedAI
StartEvent();
}
void EnterCombat(Unit* who){}
void EnterCombat(Unit* /*who*/){}
void StartEvent()
{
@@ -581,7 +579,7 @@ CreatureAI* GetAI_npc_nestlewood_owlkinAI(Creature* pCreature)
return new npc_nestlewood_owlkinAI (pCreature);
}
bool EffectDummyCreature_npc_nestlewood_owlkin(Unit *pCaster, uint32 spellId, uint32 effIndex, Creature *pCreatureTarget)
bool EffectDummyCreature_npc_nestlewood_owlkin(Unit * /*pCaster*/, uint32 spellId, uint32 effIndex, Creature *pCreatureTarget)
{
//always check spellid and effectindex
if (spellId == SPELL_INOCULATE_OWLKIN && effIndex == 0)
@@ -33,14 +33,14 @@ enum eSpells
const Position HomePosition = {-815.817,-145.299,-25.870, 0};
bool GoHello_blackfathom_altar(Player *pPlayer, GameObject* pGo)
bool GoHello_blackfathom_altar(Player *pPlayer, GameObject* /*pGo*/)
{
if (!pPlayer->HasAura(SPELL_BLESSING_OF_BLACKFATHOM))
pPlayer->AddAura(SPELL_BLESSING_OF_BLACKFATHOM,pPlayer);
return true;
}
bool GoHello_blackfathom_fire(Player *pPlayer, GameObject* pGo)
bool GoHello_blackfathom_fire(Player * /*pPlayer*/, GameObject* pGo)
{
ScriptedInstance *pInstance = pGo->GetInstanceData();
@@ -157,7 +157,7 @@ struct npc_blackfathom_deeps_eventAI : public ScriptedAI
DoMeleeAttackIfReady();
}
void JustDied(Unit* pKiller)
void JustDied(Unit* /*pKiller*/)
{
if (me->isSummon()) //we are not a normal spawn.
if (pInstance)
@@ -213,7 +213,7 @@ bool GossipHello_npc_morridune(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_morridune(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_morridune(Player* pPlayer, Creature* /*pCreature*/, uint32 /*uiSender*/, uint32 uiAction)
{
switch(uiAction)
{
@@ -45,13 +45,13 @@ struct boss_aku_maiAI : public ScriptedAI
pInstance->SetData(TYPE_AKU_MAI, NOT_STARTED);
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
if (pInstance)
pInstance->SetData(TYPE_AKU_MAI, IN_PROGRESS);
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
if (pInstance)
pInstance->SetData(TYPE_AKU_MAI, DONE);
@@ -42,13 +42,13 @@ struct boss_gelihastAI : public ScriptedAI
pInstance->SetData(TYPE_GELIHAST, NOT_STARTED);
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
if (pInstance)
pInstance->SetData(TYPE_GELIHAST, IN_PROGRESS);
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
if (pInstance)
pInstance->SetData(TYPE_GELIHAST, DONE);
@@ -53,14 +53,14 @@ struct boss_kelrisAI : public ScriptedAI
pInstance->SetData(TYPE_KELRIS, NOT_STARTED);
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
DoScriptText(SAY_AGGRO, me);
if (pInstance)
pInstance->SetData(TYPE_KELRIS, IN_PROGRESS);
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
DoScriptText(SAY_DEATH, me);
if (pInstance)
@@ -82,7 +82,7 @@ struct instance_blackfathom_deeps : public ScriptedInstance
uiDeathTimes = 0;
}
void OnCreatureCreate(Creature* pCreature, bool add)
void OnCreatureCreate(Creature* pCreature, bool /*add*/)
{
switch (pCreature->GetEntry())
{
@@ -95,7 +95,7 @@ struct instance_blackfathom_deeps : public ScriptedInstance
}
}
void OnGameObjectCreate(GameObject* pGo, bool add)
void OnGameObjectCreate(GameObject* pGo, bool /*add*/)
{
switch(pGo->GetEntry())
{
+2 -2
View File
@@ -43,7 +43,7 @@ struct mob_webbed_creatureAI : public ScriptedAI
{
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
}
@@ -99,7 +99,7 @@ bool GossipHello_npc_captured_sunhawk_agent(Player* pPlayer, Creature* pCreature
return true;
}
bool GossipSelect_npc_captured_sunhawk_agent(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_captured_sunhawk_agent(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
switch (uiAction)
{
+1 -1
View File
@@ -60,7 +60,7 @@ struct boss_azuregosAI : public ScriptedAI
Enraged = false;
}
void EnterCombat(Unit *who) {}
void EnterCombat(Unit * /*who*/) {}
void UpdateAI(const uint32 diff)
{
@@ -80,7 +80,7 @@ struct boss_epochAI : public ScriptedAI
pInstance->SetData(DATA_EPOCH_EVENT, NOT_STARTED);
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
DoScriptText(SAY_AGGRO, me);
@@ -123,7 +123,7 @@ struct boss_epochAI : public ScriptedAI
DoMeleeAttackIfReady();
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
DoScriptText(SAY_DEATH, me);
@@ -131,7 +131,7 @@ struct boss_epochAI : public ScriptedAI
pInstance->SetData(DATA_EPOCH_EVENT, DONE);
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * victim)
{
if (victim == me)
return;
@@ -48,15 +48,15 @@ struct boss_infinite_corruptorAI : public ScriptedAI
pInstance->SetData(DATA_INFINITE_EVENT, NOT_STARTED);
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
if (pInstance)
pInstance->SetData(DATA_INFINITE_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())
@@ -65,7 +65,7 @@ struct boss_infinite_corruptorAI : public ScriptedAI
DoMeleeAttackIfReady();
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
if (pInstance)
pInstance->SetData(DATA_INFINITE_EVENT, DONE);
@@ -105,7 +105,7 @@ struct boss_mal_ganisAI : public ScriptedAI
pInstance->SetData(DATA_MAL_GANIS_EVENT, NOT_STARTED);
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
DoScriptText(SAY_AGGRO, me);
if (pInstance)
@@ -225,7 +225,7 @@ struct boss_mal_ganisAI : public ScriptedAI
}
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
if (pInstance)
{
@@ -237,7 +237,7 @@ struct boss_mal_ganisAI : public ScriptedAI
}
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * victim)
{
if (victim == me)
return;
@@ -71,7 +71,7 @@ struct boss_meathookAI : public ScriptedAI
pInstance->SetData(DATA_MEATHOOK_EVENT, NOT_STARTED);
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
DoScriptText(SAY_AGGRO, me);
@@ -107,7 +107,7 @@ struct boss_meathookAI : public ScriptedAI
DoMeleeAttackIfReady();
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
DoScriptText(SAY_DEATH, me);
@@ -115,7 +115,7 @@ struct boss_meathookAI : public ScriptedAI
pInstance->SetData(DATA_MEATHOOK_EVENT, DONE);
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * victim)
{
if (victim == me)
return;
@@ -87,7 +87,7 @@ struct boss_salrammAI : public ScriptedAI
pInstance->SetData(DATA_SALRAMM_EVENT, NOT_STARTED);
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
DoScriptText(SAY_AGGRO, me);
@@ -137,7 +137,7 @@ struct boss_salrammAI : public ScriptedAI
DoMeleeAttackIfReady();
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
DoScriptText(SAY_DEATH, me);
@@ -145,7 +145,7 @@ struct boss_salrammAI : public ScriptedAI
pInstance->SetData(DATA_SALRAMM_EVENT, DONE);
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * victim)
{
if (victim == me)
return;
@@ -289,12 +289,12 @@ struct npc_arthasAI : public npc_escortAI
}
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
DoCast(me, SPELL_ARTHAS_AURA);
}
void JustDied(Unit *killer)
void JustDied(Unit * /*killer*/)
{
if (pInstance)
pInstance->SetData(DATA_ARTHAS_EVENT, FAIL);
@@ -1155,7 +1155,7 @@ bool GossipHello_npc_arthas(Player* pPlayer, Creature* pCreature)
}
bool GossipSelect_npc_arthas(Player *pPlayer, Creature *pCreature, uint32 sender, uint32 action)
bool GossipSelect_npc_arthas(Player *pPlayer, Creature *pCreature, uint32 /*sender*/, uint32 action)
{
npc_arthasAI* pAI = CAST_AI(npc_arthasAI,pCreature->AI());
@@ -57,7 +57,7 @@ struct instance_culling_of_stratholme : public ScriptedInstance
return false;
}
void OnCreatureCreate(Creature* pCreature, bool add)
void OnCreatureCreate(Creature* pCreature, bool /*add*/)
{
switch(pCreature->GetEntry())
{
@@ -82,7 +82,7 @@ struct instance_culling_of_stratholme : public ScriptedInstance
}
}
void OnGameObjectCreate(GameObject* pGo, bool add)
void OnGameObjectCreate(GameObject* pGo, bool /*add*/)
{
switch(pGo->GetEntry())
{
@@ -61,7 +61,7 @@ struct boss_aeonusAI : public ScriptedAI
Frenzy_Timer = 30000+rand()%15000;
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
DoScriptText(SAY_AGGRO, me);
}
@@ -81,7 +81,7 @@ struct boss_aeonusAI : public ScriptedAI
ScriptedAI::MoveInLineOfSight(who);
}
void JustDied(Unit *victim)
void JustDied(Unit * /*victim*/)
{
DoScriptText(SAY_DEATH, me);
@@ -92,7 +92,7 @@ struct boss_aeonusAI : public ScriptedAI
}
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * /*victim*/)
{
DoScriptText(RAND(SAY_SLAY1,SAY_SLAY2), me);
}
@@ -63,7 +63,7 @@ struct boss_chrono_lord_dejaAI : public ScriptedAI
Attraction_Timer = 25000+rand()%10000;
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
DoScriptText(SAY_AGGRO, me);
}
@@ -83,12 +83,12 @@ struct boss_chrono_lord_dejaAI : public ScriptedAI
ScriptedAI::MoveInLineOfSight(who);
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * /*victim*/)
{
DoScriptText(RAND(SAY_SLAY1,SAY_SLAY2), me);
}
void JustDied(Unit *victim)
void JustDied(Unit * /*victim*/)
{
DoScriptText(SAY_DEATH, me);
@@ -62,17 +62,17 @@ struct boss_temporusAI : public ScriptedAI
WingBuffet_Timer = 25000+rand()%10000;
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
DoScriptText(SAY_AGGRO, me);
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * /*victim*/)
{
DoScriptText(RAND(SAY_SLAY1,SAY_SLAY2), me);
}
void JustDied(Unit *victim)
void JustDied(Unit * /*victim*/)
{
DoScriptText(SAY_DEATH, me);
@@ -119,7 +119,7 @@ struct npc_medivh_bmAI : public ScriptedAI
}
}
void AttackStart(Unit *who)
void AttackStart(Unit * /*who*/)
{
//if (pInstance && pInstance->GetData(TYPE_MEDIVH) == IN_PROGRESS)
//return;
@@ -127,9 +127,9 @@ struct npc_medivh_bmAI : public ScriptedAI
//ScriptedAI::AttackStart(who);
}
void EnterCombat(Unit *who) {}
void EnterCombat(Unit * /*who*/) {}
void SpellHit(Unit* caster, const SpellEntry* spell)
void SpellHit(Unit* /*caster*/, const SpellEntry* spell)
{
if (SpellCorrupt_Timer)
return;
@@ -272,7 +272,7 @@ struct npc_time_riftAI : public ScriptedAI
else mWaveId = 1;
}
void EnterCombat(Unit *who) {}
void EnterCombat(Unit * /*who*/) {}
void DoSummonAtRift(uint32 creature_entry)
{
@@ -371,7 +371,7 @@ bool GossipHello_npc_saat(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_saat(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_saat(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
if (uiAction == GOSSIP_ACTION_INFO_DEF+1)
{
@@ -118,7 +118,7 @@ struct instance_dark_portal : public ScriptedInstance
pPlayer->SendUpdateWorldState(WORLD_STATE_BM,0);
}
void OnCreatureCreate(Creature* pCreature, bool add)
void OnCreatureCreate(Creature* pCreature, bool /*add*/)
{
if (pCreature->GetEntry() == C_MEDIVH)
MedivhGUID = pCreature->GetGUID();
@@ -70,7 +70,7 @@ struct boss_anetheronAI : public hyjal_trashAI
pInstance->SetData(DATA_ANETHERONEVENT, NOT_STARTED);
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
if (pInstance && IsEvent)
pInstance->SetData(DATA_ANETHERONEVENT, IN_PROGRESS);
@@ -78,7 +78,7 @@ struct boss_anetheronAI : public hyjal_trashAI
me->MonsterYell(SAY_ONAGGRO, LANG_UNIVERSAL, 0);
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * /*victim*/)
{
switch (urand(0,2))
{
@@ -240,15 +240,15 @@ struct mob_towering_infernalAI : public ScriptedAI
CheckTimer = 5000;
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * /*victim*/)
{
}
void JustDied(Unit *victim)
void JustDied(Unit * /*victim*/)
{
}
@@ -94,9 +94,9 @@ struct mob_ancient_wispAI : public ScriptedAI
me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
}
void EnterCombat(Unit* who) {}
void EnterCombat(Unit* /*who*/) {}
void DamageTaken(Unit* done_by, uint32 &damage) { damage = 0; }
void DamageTaken(Unit* /*done_by*/, uint32 &damage) { damage = 0; }
void UpdateAI(const uint32 diff)
{
@@ -122,9 +122,9 @@ struct mob_doomfireAI : public ScriptedAI
void Reset() { }
void MoveInLineOfSight(Unit* who) { }
void EnterCombat(Unit* who) { }
void DamageTaken(Unit *done_by, uint32 &damage) { damage = 0; }
void MoveInLineOfSight(Unit* /*who*/) {}
void EnterCombat(Unit* /*who*/) {}
void DamageTaken(Unit * /*done_by*/, uint32 &damage) { damage = 0; }
};
/* This is the script for the Doomfire Spirit Mob. This mob simply follow players or
@@ -150,9 +150,9 @@ struct mob_doomfire_targettingAI : public ScriptedAI
TargetGUID = who->GetGUID();
}
void EnterCombat(Unit* who) {}
void EnterCombat(Unit* /*who*/) {}
void DamageTaken(Unit *done_by, uint32 &damage) { damage = 0; }
void DamageTaken(Unit * /*done_by*/, uint32 &damage) { damage = 0; }
void UpdateAI(const uint32 diff)
{
@@ -243,7 +243,7 @@ struct boss_archimondeAI : public hyjal_trashAI
IsChanneling = false;
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
me->InterruptSpell(CURRENT_CHANNELED_SPELL);
DoScriptText(SAY_AGGRO, me);
@@ -253,7 +253,7 @@ struct boss_archimondeAI : public hyjal_trashAI
pInstance->SetData(DATA_ARCHIMONDEEVENT, IN_PROGRESS);
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * victim)
{
DoScriptText(RAND(SAY_SLAY1,SAY_SLAY2,SAY_SLAY3), me);
@@ -587,7 +587,7 @@ struct boss_archimondeAI : public hyjal_trashAI
DoMeleeAttackIfReady();
}
void WaypointReached(uint32 i){}
void WaypointReached(uint32 /*i*/){}
};
CreatureAI* GetAI_boss_archimonde(Creature* pCreature)
@@ -63,7 +63,7 @@ struct boss_azgalorAI : public hyjal_trashAI
pInstance->SetData(DATA_AZGALOREVENT, NOT_STARTED);
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
if (pInstance && IsEvent)
pInstance->SetData(DATA_AZGALOREVENT, IN_PROGRESS);
@@ -71,7 +71,7 @@ struct boss_azgalorAI : public hyjal_trashAI
me->MonsterYell(SAY_ONAGGRO, LANG_UNIVERSAL, NULL);
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * /*victim*/)
{
switch (urand(0,2))
{
@@ -206,18 +206,16 @@ struct mob_lesser_doomguardAI : public hyjal_trashAI
CheckTimer = 5000;
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * /*victim*/)
{
}
void WaypointReached(uint32 i)
void WaypointReached(uint32 /*i*/)
{
}
void MoveInLineOfSight(Unit *who)
@@ -226,9 +224,8 @@ struct mob_lesser_doomguardAI : public hyjal_trashAI
AttackStart(who);
}
void JustDied(Unit *victim)
void JustDied(Unit * /*victim*/)
{
}
void UpdateAI(const uint32 diff)
@@ -58,7 +58,7 @@ struct boss_kazrogalAI : public hyjal_trashAI
pInstance->SetData(DATA_KAZROGALEVENT, NOT_STARTED);
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
if (pInstance && IsEvent)
pInstance->SetData(DATA_KAZROGALEVENT, IN_PROGRESS);
@@ -66,7 +66,7 @@ struct boss_kazrogalAI : public hyjal_trashAI
me->MonsterYell(SAY_ONAGGRO, LANG_UNIVERSAL, NULL);
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * /*victim*/)
{
switch (urand(0,2))
{
@@ -58,7 +58,7 @@ struct boss_rage_winterchillAI : public hyjal_trashAI
pInstance->SetData(DATA_RAGEWINTERCHILLEVENT, NOT_STARTED);
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
if (pInstance && IsEvent)
pInstance->SetData(DATA_RAGEWINTERCHILLEVENT, IN_PROGRESS);
@@ -66,7 +66,7 @@ struct boss_rage_winterchillAI : public hyjal_trashAI
me->MonsterYell(SAY_ONAGGRO, LANG_UNIVERSAL, 0);
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * /*victim*/)
{
switch (urand(0,1))
{
@@ -87,7 +87,7 @@ bool GossipHello_npc_jaina_proudmoore(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_jaina_proudmoore(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_jaina_proudmoore(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
hyjalAI* ai = CAST_AI(hyjalAI, pCreature->AI());
switch(uiAction)
@@ -156,7 +156,7 @@ bool GossipHello_npc_thrall(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_thrall(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_thrall(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
hyjalAI* ai = CAST_AI(hyjalAI, pCreature->AI());
ai->DeSpawnVeins();//despawn the alliance veins
@@ -201,7 +201,7 @@ bool GossipHello_npc_tyrande_whisperwind(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_tyrande_whisperwind(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_tyrande_whisperwind(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
if (uiAction == GOSSIP_ACTION_INFO_DEF)
{
@@ -214,7 +214,7 @@ bool GossipSelect_npc_tyrande_whisperwind(Player* pPlayer, Creature* pCreature,
pPlayer->SendNewItem(item,1,true,false,true);
}
pPlayer->SEND_GOSSIP_MENU(907, pCreature->GetGUID());
hyjalAI* ai = CAST_AI(hyjalAI, pCreature->AI());
CAST_AI(hyjalAI, pCreature->AI());
}
return true;
}
@@ -420,7 +420,7 @@ void hyjalAI::EnterEvadeMode()
me->SetLootRecipient(NULL);
}
void hyjalAI::EnterCombat(Unit *who)
void hyjalAI::EnterCombat(Unit * /*who*/)
{
if (IsDummy)return;
for (uint8 i = 0; i < 3; ++i)
@@ -908,7 +908,7 @@ void hyjalAI::UpdateAI(const uint32 diff)
DoMeleeAttackIfReady();
}
void hyjalAI::JustDied(Unit* killer)
void hyjalAI::JustDied(Unit* /*killer*/)
{
if (IsDummy)return;
me->Respawn();
@@ -161,11 +161,11 @@ struct hyjalAI : public npc_escortAI
void EnterEvadeMode(); // Send creature back to spawn location and evade.
void EnterCombat(Unit *who); // Used to reset cooldowns for our spells and to inform the raid that we're under attack
void EnterCombat(Unit * /*who*/); // Used to reset cooldowns for our spells and to inform the raid that we're under attack
void UpdateAI(const uint32 diff); // Called to summon waves, check for boss deaths and to cast our spells.
void JustDied(Unit* killer); // Called on death, informs the raid that they have failed.
void JustDied(Unit* /*killer*/); // Called on death, informs the raid that they have failed.
void SetFaction(uint32 _faction) // Set the faction to either Alliance or Horde in Hyjal
{
@@ -164,7 +164,7 @@ void hyjal_trashAI::DamageTaken(Unit *done_by, uint32 &damage)
}
}
void hyjal_trashAI::UpdateAI(const uint32 diff)
void hyjal_trashAI::UpdateAI(const uint32 /*diff*/)
{
if (IsOverrun && !SetupOverrun)
{
@@ -361,7 +361,7 @@ void hyjal_trashAI::UpdateAI(const uint32 diff)
}
}
void hyjal_trashAI::JustDied(Unit *victim)
void hyjal_trashAI::JustDied(Unit * /*victim*/)
{
if (!pInstance)
return;
@@ -404,7 +404,7 @@ struct mob_giant_infernalAI : public hyjal_trashAI
imol = false;
}
void EnterCombat(Unit* who) {}
void EnterCombat(Unit* /*who*/) {}
void WaypointReached(uint32 i)
{
@@ -549,7 +549,7 @@ struct mob_abominationAI : public hyjal_trashAI
}
}
void EnterCombat(Unit* who) {}
void EnterCombat(Unit* /*who*/) {}
void UpdateAI(const uint32 diff)
{
@@ -649,7 +649,7 @@ struct mob_ghoulAI : public hyjal_trashAI
}
}
void EnterCombat(Unit* who) {}
void EnterCombat(Unit* /*who*/) {}
void UpdateAI(const uint32 diff)
{
@@ -746,7 +746,7 @@ struct mob_necromancerAI : public hyjal_trashAI
}
}
void KilledUnit(Unit* victim)
void KilledUnit(Unit* /*victim*/)
{
switch (urand(0,2))
{
@@ -764,7 +764,7 @@ struct mob_necromancerAI : public hyjal_trashAI
}
}
void EnterCombat(Unit* who) {}
void EnterCombat(Unit* /*who*/) {}
void UpdateAI(const uint32 diff)
{
@@ -855,7 +855,7 @@ struct mob_bansheeAI : public hyjal_trashAI
}
}
void EnterCombat(Unit* who) {}
void EnterCombat(Unit* /*who*/) {}
void UpdateAI(const uint32 diff)
{
@@ -949,7 +949,7 @@ struct mob_crypt_fiendAI : public hyjal_trashAI
}
}
void EnterCombat(Unit* who) {}
void EnterCombat(Unit* /*who*/) {}
void UpdateAI(const uint32 diff)
{
@@ -1034,7 +1034,7 @@ struct mob_fel_stalkerAI : public hyjal_trashAI
}
}
void EnterCombat(Unit* who) {}
void EnterCombat(Unit* /*who*/) {}
void UpdateAI(const uint32 diff)
{
@@ -1119,7 +1119,7 @@ struct mob_frost_wyrmAI : public hyjal_trashAI
}
}
void JustDied(Unit *victim)
void JustDied(Unit * /*victim*/)
{
if (pInstance && IsEvent)
pInstance->SetData(DATA_TRASH, 0);//signal trash is dead
@@ -1131,7 +1131,7 @@ struct mob_frost_wyrmAI : public hyjal_trashAI
me->GetMap()->CreatureRelocation(me, x,y,z,0);
}
void EnterCombat(Unit* who) {}
void EnterCombat(Unit* /*who*/) {}
void UpdateAI(const uint32 diff)
{
@@ -1335,7 +1335,7 @@ struct alliance_riflemanAI : public Scripted_NoMovementAI
uint32 ExplodeTimer;
void JustDied(Unit* who)
void JustDied(Unit* /*who*/)
{
}
@@ -1351,15 +1351,13 @@ struct alliance_riflemanAI : public Scripted_NoMovementAI
if (who->isTargetableForAttack() && me->IsHostileTo(who))
{
float attackRadius = me->GetAttackDistance(who);
//float attackRadius = me->GetAttackDistance(who);
if (me->IsWithinDistInMap(who, 30))
{
AttackStart(who);
}
}
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
}
@@ -13,7 +13,7 @@ struct hyjal_trashAI : public npc_escortAI
void UpdateAI(const uint32 diff);
void JustDied(Unit* killer);
void JustDied(Unit* /*killer*/);
void DamageTaken(Unit *done_by, uint32 &damage);
@@ -103,7 +103,7 @@ struct instance_mount_hyjal : public ScriptedInstance
return false;
}
void OnGameObjectCreate(GameObject* pGo, bool add)
void OnGameObjectCreate(GameObject* pGo, bool /*add*/)
{
switch(pGo->GetEntry())
{
@@ -127,7 +127,7 @@ struct instance_mount_hyjal : public ScriptedInstance
}
}
void OnCreatureCreate(Creature* pCreature, bool add)
void OnCreatureCreate(Creature* pCreature, bool /*add*/)
{
switch(pCreature->GetEntry())
{
@@ -64,19 +64,19 @@ struct boss_captain_skarlocAI : public ScriptedAI
Consecration_Timer = 8000;
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
//This is not correct. Should taunt Thrall before engage in combat
DoScriptText(SAY_TAUNT1, me);
DoScriptText(SAY_TAUNT2, me);
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * /*victim*/)
{
DoScriptText(RAND(SAY_SLAY1,SAY_SLAY2), me);
}
void JustDied(Unit *victim)
void JustDied(Unit * /*victim*/)
{
DoScriptText(SAY_DEATH, me);
@@ -62,17 +62,17 @@ struct boss_epoch_hunterAI : public ScriptedAI
Mda_Timer = 40000;
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
DoScriptText(RAND(SAY_AGGRO1,SAY_AGGRO2), me);
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * /*victim*/)
{
DoScriptText(RAND(SAY_SLAY1,SAY_SLAY2), me);
}
void JustDied(Unit *victim)
void JustDied(Unit * /*victim*/)
{
DoScriptText(SAY_DEATH, me);
@@ -29,7 +29,7 @@ EndScriptData */
## go_barrel_old_hillsbrad
######*/
bool GOHello_go_barrel_old_hillsbrad(Player* pPlayer, GameObject* pGO)
bool GOHello_go_barrel_old_hillsbrad(Player* /*pPlayer*/, GameObject* pGO)
{
if (ScriptedInstance* pInstance = pGO->GetInstanceData())
{
@@ -113,17 +113,17 @@ struct boss_lieutenant_drakeAI : public ScriptedAI
ExplodingShout_Timer = 25000;
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
DoScriptText(SAY_AGGRO, me);
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * /*victim*/)
{
DoScriptText(RAND(SAY_SLAY1,SAY_SLAY2), me);
}
void JustDied(Unit *victim)
void JustDied(Unit * /*victim*/)
{
DoScriptText(SAY_DEATH, me);
}
@@ -89,7 +89,7 @@ struct instance_old_hillsbrad : public ScriptedInstance
}
}
void OnCreatureCreate(Creature* pCreature, bool add)
void OnCreatureCreate(Creature* pCreature, bool /*add*/)
{
switch(pCreature->GetEntry())
{
@@ -61,7 +61,7 @@ bool GossipHello_npc_erozion(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_erozion(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_erozion(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
if (uiAction == GOSSIP_ACTION_INFO_DEF+1)
{
@@ -399,7 +399,7 @@ struct npc_thrall_old_hillsbradAI : public npc_escortAI
me->Unmount();
me->SetSpeed(MOVE_RUN,SPEED_RUN);
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
DoScriptText(RAND(SAY_TH_RANDOM_AGGRO1,SAY_TH_RANDOM_AGGRO2,SAY_TH_RANDOM_AGGRO3,SAY_TH_RANDOM_AGGRO4), me);
if (me->IsMounted())
@@ -426,7 +426,7 @@ struct npc_thrall_old_hillsbradAI : public npc_escortAI
}
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * /*victim*/)
{
DoScriptText(RAND(SAY_TH_RANDOM_KILL1,SAY_TH_RANDOM_KILL2,SAY_TH_RANDOM_KILL3), me);
}
@@ -495,7 +495,7 @@ bool GossipHello_npc_thrall_old_hillsbrad(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_thrall_old_hillsbrad(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_thrall_old_hillsbrad(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
ScriptedInstance* pInstance = pCreature->GetInstanceData();
switch(uiAction)
@@ -575,7 +575,7 @@ struct npc_tarethaAI : public npc_escortAI
}
}
void Reset() {}
void EnterCombat(Unit* who) {}
void EnterCombat(Unit* /*who*/) {}
void UpdateAI(const uint32 diff)
{
@@ -598,7 +598,7 @@ bool GossipHello_npc_taretha(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_taretha(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_taretha(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
ScriptedInstance* pInstance = pCreature->GetInstanceData();
if (uiAction == GOSSIP_ACTION_INFO_DEF+1)
+3 -3
View File
@@ -95,7 +95,7 @@ struct npc_kerlonianAI : public FollowerAI
}
}
void SpellHit(Unit* pCaster, const SpellEntry* pSpell)
void SpellHit(Unit* /*pCaster*/, const SpellEntry* pSpell)
{
if (HasFollowState(STATE_FOLLOW_INPROGRESS | STATE_FOLLOW_PAUSED) && pSpell->Id == SPELL_AWAKEN)
ClearSleeping();
@@ -270,7 +270,7 @@ struct npc_prospector_remtravelAI : public npc_escortAI
DoScriptText(SAY_REM_AGGRO, me, who);
}
void JustSummoned(Creature* pSummoned)
void JustSummoned(Creature* /*pSummoned*/)
{
//unsure if it should be any
//pSummoned->AI()->AttackStart(me);
@@ -355,7 +355,7 @@ bool GossipHello_npc_threshwackonator(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_threshwackonator(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_threshwackonator(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
if (uiAction == GOSSIP_ACTION_INFO_DEF+1)
{
+2 -2
View File
@@ -77,7 +77,7 @@ struct npc_aged_dying_ancient_kodoAI : public ScriptedAI
}
}
void SpellHit(Unit* pCaster, SpellEntry const* pSpell)
void SpellHit(Unit* /*pCaster*/, SpellEntry const* pSpell)
{
if (pSpell->Id == SPELL_KODO_KOMBO_GOSSIP)
{
@@ -161,7 +161,7 @@ bool GossipHello_npc_aged_dying_ancient_kodo(Player* pPlayer, Creature* pCreatur
## go_iruxos. Quest 5381
######*/
bool GOHello_go_iruxos(Player *pPlayer, GameObject* pGO)
bool GOHello_go_iruxos(Player *pPlayer, GameObject* /*pGO*/)
{
if (pPlayer->GetQuestStatus(5381) == QUEST_STATUS_INCOMPLETE)
pPlayer->SummonCreature(11876, pPlayer->GetInnPosX(),pPlayer->GetInnPosY(),pPlayer->GetInnPosZ(),0,TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT,10000);
+1 -1
View File
@@ -51,7 +51,7 @@ struct npc_lazy_peonAI : public ScriptedAI
work = false;
}
void MovementInform(uint32 type, uint32 id)
void MovementInform(uint32 /*type*/, uint32 id)
{
if (id == 1)
work = true;
+5 -5
View File
@@ -196,7 +196,7 @@ bool GossipHello_npc_lady_jaina_proudmoore(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_lady_jaina_proudmoore(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_lady_jaina_proudmoore(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
if (uiAction == GOSSIP_SENDER_INFO)
{
@@ -231,7 +231,7 @@ bool GossipHello_npc_nat_pagle(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_nat_pagle(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_nat_pagle(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
if (uiAction == GOSSIP_ACTION_TRADE)
pPlayer->SEND_VENDORLIST(pCreature->GetGUID());
@@ -296,7 +296,7 @@ struct npc_private_hendelAI : public ScriptedAI
}
};
bool QuestAccept_npc_private_hendel(Player* pPlayer, Creature* pCreature, const Quest* pQuest)
bool QuestAccept_npc_private_hendel(Player* /*pPlayer*/, Creature* pCreature, const Quest* pQuest)
{
if (pQuest->GetQuestId() == QUEST_MISSING_DIPLO_PT16)
pCreature->setFaction(FACTION_HOSTILE);
@@ -343,7 +343,7 @@ struct npc_zelfraxAI : public ScriptedAI
}
}
void MovementInform(uint32 uiType, uint32 uiId)
void MovementInform(uint32 uiType, uint32 /*uiId*/)
{
if (uiType != POINT_MOTION_TYPE)
return;
@@ -365,7 +365,7 @@ struct npc_zelfraxAI : public ScriptedAI
DoScriptText(SAY_ZELFRAX_2,me);
}
void UpdateAI(uint32 const uiDiff)
void UpdateAI(uint32 const /*uiDiff*/)
{
if (!UpdateVictim())
return;
+1 -1
View File
@@ -67,7 +67,7 @@ bool GossipHello_npcs_riverbreeze_and_silversky(Player* pPlayer, Creature* pCrea
return true;
}
bool GossipSelect_npcs_riverbreeze_and_silversky(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npcs_riverbreeze_and_silversky(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
if (uiAction == GOSSIP_ACTION_INFO_DEF+1)
{
+2 -2
View File
@@ -42,7 +42,7 @@ bool GossipHello_npc_gregan_brewspewer(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_gregan_brewspewer(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_gregan_brewspewer(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
if (uiAction == GOSSIP_ACTION_INFO_DEF+1)
{
@@ -126,7 +126,7 @@ struct npc_oox22feAI : public npc_escortAI
me->SetStandState(UNIT_STAND_STATE_DEAD);
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
//For an small probability the npc says something when he get aggro
if (urand(0,9) > 7)
@@ -42,9 +42,9 @@ struct celebras_the_cursedAI : public ScriptedAI
CorruptForces_Timer = 30000;
}
void EnterCombat(Unit *who) { }
void EnterCombat(Unit * /*who*/) { }
void JustDied(Unit* Killer)
void JustDied(Unit* /*Killer*/)
{
me->SummonCreature(13716, me->GetPositionX(), me->GetPositionY(), me->GetPositionZ(), 0, TEMPSUMMON_TIMED_DESPAWN, 600000);
}
@@ -42,7 +42,7 @@ struct boss_landslideAI : public ScriptedAI
Landslide_Timer = 0;
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
}
@@ -45,7 +45,7 @@ struct boss_noxxionAI : public ScriptedAI
Invisible = false;
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
}
@@ -45,11 +45,11 @@ struct boss_ptheradrasAI : public ScriptedAI
RepulsiveGaze_Timer = 23000;
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
}
void JustDied(Unit* Killer)
void JustDied(Unit* /*killer*/)
{
me->SummonCreature(12238,28.067,61.875,-123.405,4.67,TEMPSUMMON_TIMED_DESPAWN,600000);
}
+4 -4
View File
@@ -70,7 +70,7 @@ bool GossipHello_npc_bunthen_plainswind(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_bunthen_plainswind(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_bunthen_plainswind(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
switch(uiAction)
{
@@ -112,7 +112,7 @@ bool GossipHello_npc_great_bear_spirit(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_great_bear_spirit(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_great_bear_spirit(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
switch (uiAction)
{
@@ -169,7 +169,7 @@ bool GossipHello_npc_silva_filnaveth(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_silva_filnaveth(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_silva_filnaveth(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
switch(uiAction)
{
@@ -284,7 +284,7 @@ public:
}
}
void JustDied(Unit *killer)
void JustDied(Unit * /*killer*/)
{
if (!PlayerGUID)
return;
+3 -3
View File
@@ -49,7 +49,7 @@ bool GossipHello_npc_skorn_whitecloud(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_skorn_whitecloud(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_skorn_whitecloud(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
if (uiAction == GOSSIP_ACTION_INFO_DEF)
pPlayer->SEND_GOSSIP_MENU(523, pCreature->GetGUID());
@@ -255,7 +255,7 @@ struct npc_plains_visionAI : public ScriptedAI
amountWP = 49;
}
void EnterCombat(Unit* who){}
void EnterCombat(Unit* /*who*/){}
void MovementInform(uint32 type, uint32 id)
{
@@ -274,7 +274,7 @@ struct npc_plains_visionAI : public ScriptedAI
}
}
void UpdateAI(const uint32 diff)
void UpdateAI(const uint32 /*diff*/)
{
if (newWaypoint)
{
@@ -147,7 +147,7 @@ struct boss_onyxiaAI : public ScriptedAI
m_bIsSummoningLairGuards = false;
}
void Aggro(Unit* pWho)
void Aggro(Unit* /*pWho*/)
{
DoScriptText(SAY_AGGRO, me);
me->SetInCombatWithZone();
@@ -161,12 +161,12 @@ struct boss_onyxiaAI : public ScriptedAI
++m_uiSummonCount;
}
void KilledUnit(Unit* pVictim)
void KilledUnit(Unit* /*pVictim*/)
{
DoScriptText(SAY_KILL, me);
}
void SpellHit(Unit *pCaster, const SpellEntry* pSpell)
void SpellHit(Unit * /*pCaster*/, const SpellEntry* pSpell)
{
if (pSpell->Id == SPELL_BREATH_EAST_TO_WEST ||
pSpell->Id == SPELL_BREATH_WEST_TO_EAST ||
+4 -4
View File
@@ -49,7 +49,7 @@ bool GossipHello_npc_neeru_fireblade(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_neeru_fireblade(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_neeru_fireblade(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
switch (uiAction)
{
@@ -93,7 +93,7 @@ struct npc_shenthulAI : public ScriptedAI
PlayerGUID = 0;
}
void EnterCombat(Unit* who) { }
void EnterCombat(Unit* /*who*/) {}
void UpdateAI(const uint32 diff)
{
@@ -185,7 +185,7 @@ struct npc_thrall_warchiefAI : public ScriptedAI
Shock_Timer = 8000;
}
void EnterCombat(Unit *who) {}
void EnterCombat(Unit * /*who*/) {}
void UpdateAI(const uint32 diff)
{
@@ -224,7 +224,7 @@ bool GossipHello_npc_thrall_warchief(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_thrall_warchief(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_thrall_warchief(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
switch (uiAction)
{
@@ -55,7 +55,7 @@ struct boss_amnennar_the_coldbringerAI : public ScriptedAI
Hp = false;
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
DoScriptText(SAY_AGGRO, me);
}
@@ -90,7 +90,7 @@ struct instance_razorfen_downs : public ScriptedInstance
OUT_LOAD_INST_DATA_COMPLETE;
}
void OnGameObjectCreate(GameObject* pGo, bool bAdd)
void OnGameObjectCreate(GameObject* pGo, bool /*bAdd*/)
{
switch(pGo->GetEntry())
{
@@ -57,7 +57,7 @@ bool GossipHello_npc_henry_stern (Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_henry_stern (Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_henry_stern (Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
if (uiAction == GOSSIP_ACTION_INFO_DEF + 1)
{
@@ -78,7 +78,7 @@ bool GossipSelect_npc_henry_stern (Player* pPlayer, Creature* pCreature, uint32
## go_gong
######*/
bool GOHello_go_gong(Player* pPlayer, GameObject* pGO)
bool GOHello_go_gong(Player* /*pPlayer*/, GameObject* pGO)
{
//basic support, not blizzlike data is missing...
ScriptedInstance* pInstance = pGO->GetInstanceData();
@@ -131,7 +131,7 @@ struct npc_tomb_creatureAI : public ScriptedAI
DoMeleeAttackIfReady();
}
void JustDied(Unit* pKiller)
void JustDied(Unit* /*pKiller*/)
{
if (pInstance)
pInstance->SetData(DATA_GONG_WAVES,pInstance->GetData(DATA_GONG_WAVES)+1);
@@ -57,7 +57,7 @@ struct instance_razorfen_kraul : public ScriptedInstance
return NULL;
}
void OnGameObjectCreate(GameObject* pGo, bool apply)
void OnGameObjectCreate(GameObject* pGo, bool /*apply*/)
{
switch(pGo->GetEntry())
{
@@ -102,7 +102,7 @@ struct npc_willixAI : public npc_escortAI
void Reset() {}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
DoScriptText(SAY_AGGRO1, me, NULL);
}
@@ -112,7 +112,7 @@ struct npc_willixAI : public npc_escortAI
summoned->AI()->AttackStart(me);
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
if (Player* pPlayer = GetPlayerForEscort())
CAST_PLR(pPlayer)->FailQuest(QUEST_WILLIX_THE_IMPORTER);
@@ -62,13 +62,13 @@ struct boss_ayamissAI : public ScriptedAI
pInstance->SetData(DATA_AYAMISS_EVENT, NOT_STARTED);
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
if (pInstance)
pInstance->SetData(DATA_AYAMISS_EVENT, IN_PROGRESS);
}
void JustDied(Unit *killer)
void JustDied(Unit * /*killer*/)
{
if (pInstance)
pInstance->SetData(DATA_AYAMISS_EVENT, DONE);
@@ -44,13 +44,13 @@ struct boss_buruAI : public ScriptedAI
pInstance->SetData(DATA_BURU_EVENT, NOT_STARTED);
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
if (pInstance)
pInstance->SetData(DATA_BURU_EVENT, IN_PROGRESS);
}
void JustDied(Unit *killer)
void JustDied(Unit * /*killer*/)
{
if (pInstance)
pInstance->SetData(DATA_BURU_EVENT, DONE);
@@ -63,13 +63,13 @@ struct boss_kurinnaxxAI : public ScriptedAI
pInstance->SetData(DATA_KURINNAXX_EVENT, NOT_STARTED);
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
if (pInstance)
pInstance->SetData(DATA_KURINNAXX_EVENT, IN_PROGRESS);
}
void JustDied(Unit *killer)
void JustDied(Unit * /*killer*/)
{
if (pInstance)
pInstance->SetData(DATA_KURINNAXX_EVENT, DONE);
@@ -76,7 +76,7 @@ struct boss_moamAI : public ScriptedAI
pInstance->SetData(DATA_MOAM_EVENT, NOT_STARTED);
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
DoScriptText(EMOTE_AGGRO, me);
@@ -84,7 +84,7 @@ struct boss_moamAI : public ScriptedAI
pInstance->SetData(DATA_MOAM_EVENT, IN_PROGRESS);
}
void JustDied(Unit *killer)
void JustDied(Unit * /*killer*/)
{
if (pInstance)
pInstance->SetData(DATA_MOAM_EVENT, DONE);
@@ -52,13 +52,13 @@ struct boss_ossirianAI : public ScriptedAI
pInstance->SetData(DATA_OSSIRIAN_EVENT, NOT_STARTED);
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
if (pInstance)
pInstance->SetData(DATA_OSSIRIAN_EVENT, IN_PROGRESS);
}
void JustDied(Unit *killer)
void JustDied(Unit * /*killer*/)
{
if (pInstance)
pInstance->SetData(DATA_OSSIRIAN_EVENT, DONE);
@@ -58,13 +58,13 @@ struct boss_rajaxxAI : public ScriptedAI
pInstance->SetData(DATA_RAJAXX_EVENT, NOT_STARTED);
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
if (pInstance)
pInstance->SetData(DATA_RAJAXX_EVENT, IN_PROGRESS);
}
void JustDied(Unit *killer)
void JustDied(Unit * /*killer*/)
{
if (pInstance)
pInstance->SetData(DATA_RAJAXX_EVENT, DONE);
@@ -68,7 +68,7 @@ struct instance_ruins_of_ahn_qiraj : public ScriptedInstance
return false;
}
void OnCreatureCreate(Creature* pCreature, bool add)
void OnCreatureCreate(Creature* pCreature, bool /*add*/)
{
switch (pCreature->GetEntry())
{
+10 -10
View File
@@ -54,7 +54,7 @@ bool GossipHello_npc_highlord_demitrian(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_highlord_demitrian(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_highlord_demitrian(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
switch (uiAction)
{
@@ -138,7 +138,7 @@ bool GossipHello_npcs_rutgar_and_frankal(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npcs_rutgar_and_frankal(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npcs_rutgar_and_frankal(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
switch (uiAction)
{
@@ -793,13 +793,13 @@ struct mob_qiraj_war_spawnAI : public ScriptedAI
hasTarget = false;
}
void EnterCombat(Unit* who) {}
void EnterCombat(Unit* /*who*/) {}
void JustDied(Unit* slayer);
void UpdateAI(const uint32 diff)
{
Unit *pTarget;
Player* plr = me->GetPlayer(PlayerGUID);
Unit *pTarget = NULL;
//Player* plr = me->GetPlayer(PlayerGUID);
if (!Timers)
{
@@ -912,12 +912,12 @@ struct npc_anachronos_quest_triggerAI : public ScriptedAI
void SummonNextWave()
{
uint8 count = WavesInfo[WaveCount].SpawnCount;
//uint8 count = WavesInfo[WaveCount].SpawnCount;
uint8 locIndex = WavesInfo[WaveCount].UsedSpawnPoint;
srand(time(NULL));//initializing random seed
uint8 KaldoreiSoldierCount = 0;
uint8 AnubisathConquerorCount = 0;
uint8 QirajiWaspCount = 0;
//uint8 KaldoreiSoldierCount = 0;
//uint8 AnubisathConquerorCount = 0;
//uint8 QirajiWaspCount = 0;
for (uint8 i = 0; i < 67; ++i)
{
Creature* Spawn = NULL;
@@ -1017,7 +1017,7 @@ struct npc_anachronos_quest_triggerAI : public ScriptedAI
EnterEvadeMode();
};
};
void mob_qiraj_war_spawnAI::JustDied(Unit* slayer)
void mob_qiraj_war_spawnAI::JustDied(Unit* /*slayer*/)
{
me->RemoveCorpse();
if (Creature* Mob = (Unit::GetCreature(*me, MobGUID)))
@@ -60,7 +60,7 @@ bool GossipHello_npc_braug_dimspirit(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_braug_dimspirit(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_braug_dimspirit(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
if (uiAction == GOSSIP_ACTION_INFO_DEF+1)
{
+6 -6
View File
@@ -204,7 +204,7 @@ struct npc_custodian_of_timeAI : public npc_escortAI
}
}
void EnterCombat(Unit* who) { }
void EnterCombat(Unit* /*who*/) {}
void Reset() { }
void UpdateAI(const uint32 diff)
@@ -235,7 +235,7 @@ bool GossipHello_npc_marin_noggenfogger(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_marin_noggenfogger(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_marin_noggenfogger(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
if (uiAction == GOSSIP_ACTION_TRADE)
pPlayer->SEND_VENDORLIST(pCreature->GetGUID());
@@ -265,7 +265,7 @@ bool GossipHello_npc_steward_of_time(Player* pPlayer, Creature* pCreature)
return true;
}
bool QuestAccept_npc_steward_of_time(Player* pPlayer, Creature* pCreature, Quest const *quest)
bool QuestAccept_npc_steward_of_time(Player* pPlayer, Creature* /*pCreature*/, Quest const *quest)
{
if (quest->GetQuestId() == 10279) //Quest: To The Master's Lair
pPlayer->CastSpell(pPlayer,34891,true); //(Flight through Caverns)
@@ -273,7 +273,7 @@ bool QuestAccept_npc_steward_of_time(Player* pPlayer, Creature* pCreature, Quest
return false;
}
bool GossipSelect_npc_steward_of_time(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_steward_of_time(Player* pPlayer, Creature* /*pCreature*/, uint32 /*uiSender*/, uint32 uiAction)
{
if (uiAction == GOSSIP_ACTION_INFO_DEF + 1)
pPlayer->CastSpell(pPlayer,34891,true); //(Flight through Caverns)
@@ -305,7 +305,7 @@ bool GossipHello_npc_stone_watcher_of_norgannon(Player* pPlayer, Creature* pCrea
return true;
}
bool GossipSelect_npc_stone_watcher_of_norgannon(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_stone_watcher_of_norgannon(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
switch (uiAction)
{
@@ -397,7 +397,7 @@ struct npc_OOX17AI : public npc_escortAI
void Reset(){}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
DoScriptText(RAND(SAY_OOX_AGGRO1,SAY_OOX_AGGRO2), me);
}
@@ -61,11 +61,11 @@ struct boss_kriAI : public ScriptedAI
Death = false;
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
if (pInstance)
{
@@ -144,7 +144,7 @@ struct boss_vemAI : public ScriptedAI
Enraged = false;
}
void JustDied(Unit* Killer)
void JustDied(Unit* /*Killer*/)
{
if (pInstance)
{
@@ -156,7 +156,7 @@ struct boss_vemAI : public ScriptedAI
}
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
}
@@ -225,7 +225,7 @@ struct boss_yaujAI : public ScriptedAI
VemDead = false;
}
void JustDied(Unit* Killer)
void JustDied(Unit* /*Killer*/)
{
if (pInstance)
{
@@ -244,7 +244,7 @@ struct boss_yaujAI : public ScriptedAI
}
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
}
@@ -219,7 +219,7 @@ struct eye_of_cthunAI : public Scripted_NoMovementAI
pPortal->SetReactState(REACT_PASSIVE);
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
DoZoneInCombat();
if (pInst)
@@ -404,7 +404,7 @@ struct eye_of_cthunAI : public Scripted_NoMovementAI
}
}
void DamageTaken(Unit *done_by, uint32 &damage)
void DamageTaken(Unit * /*done_by*/, uint32 &damage)
{
//No instance
if (!pInst)
@@ -522,7 +522,7 @@ struct cthunAI : public Scripted_NoMovementAI
pInst->SetData(DATA_CTHUN_PHASE, PHASE_NOT_STARTED);
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
DoZoneInCombat();
}
@@ -850,13 +850,13 @@ struct cthunAI : public Scripted_NoMovementAI
}
}
void JustDied(Unit* pKiller)
void JustDied(Unit* /*pKiller*/)
{
if (pInst)
pInst->SetData(DATA_CTHUN_PHASE, PHASE_CTHUN_DONE);
}
void DamageTaken(Unit *done_by, uint32 &damage)
void DamageTaken(Unit * /*done_by*/, uint32 &damage)
{
//No instance
if (!pInst)
@@ -912,7 +912,7 @@ struct eye_tentacleAI : public Scripted_NoMovementAI
uint32 KillSelfTimer;
uint64 Portal;
void JustDied(Unit* who)
void JustDied(Unit* /*who*/)
{
if (Unit* p = Unit::GetUnit(*me, Portal))
p->Kill(p);
@@ -927,7 +927,7 @@ struct eye_tentacleAI : public Scripted_NoMovementAI
KillSelfTimer = 35000;
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
DoZoneInCombat();
}
@@ -976,7 +976,7 @@ struct claw_tentacleAI : public Scripted_NoMovementAI
uint32 EvadeTimer;
uint64 Portal;
void JustDied(Unit* who)
void JustDied(Unit* /*who*/)
{
if (Unit* p = Unit::GetUnit(*me, Portal))
p->Kill(p);
@@ -990,7 +990,7 @@ struct claw_tentacleAI : public Scripted_NoMovementAI
EvadeTimer = 5000;
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
DoZoneInCombat();
}
@@ -1073,7 +1073,7 @@ struct giant_claw_tentacleAI : public Scripted_NoMovementAI
uint32 EvadeTimer;
uint64 Portal;
void JustDied(Unit* who)
void JustDied(Unit* /*who*/)
{
if (Unit* p = Unit::GetUnit(*me, Portal))
p->Kill(p);
@@ -1088,7 +1088,7 @@ struct giant_claw_tentacleAI : public Scripted_NoMovementAI
EvadeTimer = 5000;
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
DoZoneInCombat();
}
@@ -1177,7 +1177,7 @@ struct giant_eye_tentacleAI : public Scripted_NoMovementAI
uint32 BeamTimer;
uint64 Portal;
void JustDied(Unit* who)
void JustDied(Unit* /*who*/)
{
if (Unit* p = Unit::GetUnit(*me, Portal))
p->Kill(p);
@@ -1189,7 +1189,7 @@ struct giant_eye_tentacleAI : public Scripted_NoMovementAI
BeamTimer = 500;
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
DoZoneInCombat();
}
@@ -1220,7 +1220,7 @@ struct flesh_tentacleAI : public Scripted_NoMovementAI
SetCombatMovement(false);
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
if (CAST_SUM(me))
if (Creature* pSummoner = CAST_CRE(CAST_SUM(me)->GetSummoner()))
@@ -80,7 +80,7 @@ struct boss_fankrissAI : public ScriptedAI
Spawn->AI()->AttackStart(victim);
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
}
@@ -60,7 +60,7 @@ struct boss_huhuranAI : public ScriptedAI
Berserk = false;
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
}
@@ -58,7 +58,7 @@ struct boss_ouroAI : public ScriptedAI
Submerged = false;
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
DoCast(me->getVictim(), SPELL_BIRTH);
}
@@ -67,17 +67,17 @@ struct boss_sarturaAI : public ScriptedAI
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
DoScriptText(SAY_AGGRO, me);
}
void JustDied(Unit* Killer)
void JustDied(Unit* /*Killer*/)
{
DoScriptText(SAY_DEATH, me);
}
void KilledUnit(Unit* victim)
void KilledUnit(Unit* /*victim*/)
{
DoScriptText(SAY_SLAY, me);
}
@@ -195,7 +195,7 @@ struct mob_sartura_royal_guardAI : public ScriptedAI
AggroReset = false;
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
}
@@ -88,18 +88,18 @@ struct boss_skeramAI : public ScriptedAI
me->setDeathState(JUST_DIED);
}
void KilledUnit(Unit* victim)
void KilledUnit(Unit* /*victim*/)
{
DoScriptText(RAND(SAY_SLAY1,SAY_SLAY2,SAY_SLAY3), me);
}
void JustDied(Unit* Killer)
void JustDied(Unit* /*Killer*/)
{
if (!IsImage)
DoScriptText(SAY_DEATH, me);
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
if (IsImage || Images75)
return;
@@ -101,7 +101,7 @@ struct boss_twinemperorsAI : public ScriptedAI
return NULL;
}
void DamageTaken(Unit *done_by, uint32 &damage)
void DamageTaken(Unit * /*done_by*/, uint32 &damage)
{
Unit *pOtherBoss = GetOtherBoss();
if (pOtherBoss)
@@ -118,7 +118,7 @@ struct boss_twinemperorsAI : public ScriptedAI
}
}
void JustDied(Unit* Killer)
void JustDied(Unit* /*Killer*/)
{
Creature *pOtherBoss = GetOtherBoss();
if (pOtherBoss)
@@ -132,12 +132,12 @@ struct boss_twinemperorsAI : public ScriptedAI
DoPlaySoundToSet(me, IAmVeklor() ? SOUND_VL_DEATH : SOUND_VN_DEATH);
}
void KilledUnit(Unit* victim)
void KilledUnit(Unit* /*victim*/)
{
DoPlaySoundToSet(me, IAmVeklor() ? SOUND_VL_KILL : SOUND_VN_KILL);
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * who)
{
DoZoneInCombat();
Creature *pOtherBoss = GetOtherBoss();
@@ -172,8 +172,6 @@ struct boss_twinemperorsAI : public ScriptedAI
#define HEAL_BROTHER_AMOUNT 30000.0f
uint32 largerAmount = (uint32)((HEAL_BROTHER_AMOUNT * mult) - HEAL_BROTHER_AMOUNT);
uint32 myh = me->GetHealth();
uint32 hish = pOtherBoss->GetHealth();
if (mytotal > histotal)
{
uint32 h = me->GetHealth()+largerAmount;
@@ -59,7 +59,7 @@ struct instance_temple_of_ahnqiraj : public ScriptedInstance
CthunPhase = 0;
}
void OnCreatureCreate(Creature* pCreature, bool add)
void OnCreatureCreate(Creature* pCreature, bool /*add*/)
{
switch (pCreature->GetEntry())
{
@@ -137,7 +137,7 @@ struct aqsentinelAI : public ScriptedAI
}
}
void AddSentinelsNear(Unit *nears)
void AddSentinelsNear(Unit * /*nears*/)
{
std::list<Creature*> assistList;
me->GetCreatureListWithEntryInGrid(assistList,15264,70.0f);
@@ -221,7 +221,7 @@ struct aqsentinelAI : public ScriptedAI
me->AddAura(id, me);
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * who)
{
if (gatherOthersWhenAggro)
GetOtherSentinels(who);
@@ -230,7 +230,7 @@ struct aqsentinelAI : public ScriptedAI
DoZoneInCombat();
}
void JustDied(Unit* who)
void JustDied(Unit* /*who*/)
{
for (int ni=0; ni<3; ++ni)
{
@@ -259,7 +259,7 @@ struct aqsentinelAI : public ScriptedAI
return NULL;
}
Unit* GetAuraEffectTriggerTarget(uint32 spellId, uint8 effIndex) const
Unit* GetAuraEffectTriggerTarget(uint32 spellId, uint8 /*effIndex*/) const
{
switch (spellId)
{
+7 -7
View File
@@ -53,7 +53,7 @@ bool GossipHello_npc_beaten_corpse(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_beaten_corpse(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_beaten_corpse(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
if (uiAction == GOSSIP_ACTION_INFO_DEF +1)
{
@@ -176,7 +176,7 @@ bool GossipHello_npc_sputtervalve(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_sputtervalve(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_sputtervalve(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
if (uiAction == GOSSIP_ACTION_INFO_DEF)
{
@@ -230,7 +230,7 @@ struct npc_taskmaster_fizzuleAI : public ScriptedAI
me->HandleEmoteCommand(EMOTE_ONESHOT_SALUTE);
}
void SpellHit(Unit *caster, const SpellEntry *spell)
void SpellHit(Unit * /*caster*/, const SpellEntry *spell)
{
if (spell->Id == SPELL_FLARE || spell->Id == SPELL_FOLLY)
{
@@ -241,7 +241,7 @@ struct npc_taskmaster_fizzuleAI : public ScriptedAI
}
}
void EnterCombat(Unit* who) { }
void EnterCombat(Unit* /*who*/) {}
void UpdateAI(const uint32 diff)
{
@@ -260,7 +260,7 @@ struct npc_taskmaster_fizzuleAI : public ScriptedAI
DoMeleeAttackIfReady();
}
void ReceiveEmote(Player* pPlayer, uint32 emote)
void ReceiveEmote(Player* /*pPlayer*/, uint32 emote)
{
if (emote == TEXTEMOTE_SALUTE)
{
@@ -339,7 +339,7 @@ struct npc_twiggy_flatheadAI : public ScriptedAI
BigWill = 0;
}
void EnterCombat(Unit *who) { }
void EnterCombat(Unit * /*who*/) { }
void MoveInLineOfSight(Unit *who)
{
@@ -352,7 +352,7 @@ struct npc_twiggy_flatheadAI : public ScriptedAI
}
}
void KilledUnit(Unit *victim) { }
void KilledUnit(Unit * /*victim*/) { }
void UpdateAI(const uint32 diff)
{
+2 -2
View File
@@ -350,7 +350,7 @@ bool GossipHello_npc_plucky(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_plucky(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_plucky(Player* pPlayer, Creature* /*pCreature*/, uint32 /*uiSender*/, uint32 uiAction)
{
switch(uiAction)
{
@@ -398,7 +398,7 @@ struct npc_enraged_pantherAI : public ScriptedAI
me->SetReactState(REACT_PASSIVE);
}
void UpdateAI(const uint32 diff)
void UpdateAI(const uint32 /*diff*/)
{
if (!UpdateVictim())
return;
+2 -2
View File
@@ -54,7 +54,7 @@ struct npc_cairne_bloodhoofAI : public ScriptedAI
Uppercut_Timer = 10000;
}
void EnterCombat(Unit *who) {}
void EnterCombat(Unit * /*who*/) {}
void UpdateAI(const uint32 diff)
{
@@ -114,7 +114,7 @@ bool GossipHello_npc_cairne_bloodhoof(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_cairne_bloodhoof(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_cairne_bloodhoof(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
if (uiAction == GOSSIP_SENDER_INFO)
{
+2 -2
View File
@@ -94,7 +94,7 @@ struct npc_ameAI : public npc_escortAI
summoned->AI()->AttackStart(me);
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
if (Player* pPlayer = GetPlayerForEscort())
pPlayer->FailQuest(QUEST_CHASING_AME);
@@ -205,7 +205,7 @@ struct npc_ringoAI : public FollowerAI
}
}
void SpellHit(Unit* pCaster, const SpellEntry* pSpell)
void SpellHit(Unit* /*pCaster*/, const SpellEntry* pSpell)
{
if (HasFollowState(STATE_FOLLOW_INPROGRESS | STATE_FOLLOW_PAUSED) && pSpell->Id == SPELL_REVIVE_RINGO)
ClearFaint();
@@ -43,7 +43,7 @@ struct instance_wailing_caverns : public ScriptedInstance
NaralexGUID = 0;
}
void OnCreatureCreate(Creature* pCreature, bool add)
void OnCreatureCreate(Creature* pCreature, bool /*add*/)
{
if (pCreature->GetEntry() == DATA_NARALEX)
NaralexGUID = pCreature->GetGUID();
@@ -132,7 +132,7 @@ struct npc_disciple_of_naralexAI : public npc_escortAI
DoScriptText(SAY_ATTACKED, me, who);
}
void JustDied(Unit *slayer)
void JustDied(Unit * /*slayer*/)
{
if (pInstance)
{
@@ -362,7 +362,7 @@ bool GossipHello_npc_disciple_of_naralex(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_disciple_of_naralex(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_disciple_of_naralex(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
ScriptedInstance *pInstance = pCreature->GetInstanceData();
if (uiAction == GOSSIP_ACTION_INFO_DEF + 1)
+3 -3
View File
@@ -54,7 +54,7 @@ bool GossipHello_npc_lorax(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_lorax(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_lorax(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
switch (uiAction)
{
@@ -103,7 +103,7 @@ bool GossipHello_npc_rivern_frostwind(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_rivern_frostwind(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_rivern_frostwind(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
if (uiAction == GOSSIP_ACTION_TRADE)
pPlayer->SEND_VENDORLIST(pCreature->GetGUID());
@@ -132,7 +132,7 @@ bool GossipHello_npc_witch_doctor_mauari(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_witch_doctor_mauari(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_witch_doctor_mauari(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
if (uiAction == GOSSIP_ACTION_INFO_DEF+1)
{
@@ -31,7 +31,7 @@ struct instance_zulfarrak : public ScriptedInstance
GahzRillaEncounter = NOT_STARTED;
}
void OnCreatureCreate(Creature* pCreature, bool add)
void OnCreatureCreate(Creature* pCreature, bool /*add*/)
{
if (pCreature->GetEntry() == NPC_GAHZRILLA)
{
+9 -9
View File
@@ -63,13 +63,13 @@ struct npc_sergeant_blyAI : public ScriptedAI
pInstance->SetData(0, NOT_STARTED);*/
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
/*if (pInstance)
pInstance->SetData(0, IN_PROGRESS);*/
}
void JustDied(Unit *victim)
void JustDied(Unit * /*victim*/)
{
/*if (pInstance)
pInstance->SetData(0, DONE);*/
@@ -115,7 +115,7 @@ bool GossipHello_npc_sergeant_bly(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_sergeant_bly(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_sergeant_bly(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
if (uiAction == GOSSIP_ACTION_INFO_DEF+1)
{
@@ -152,19 +152,19 @@ struct npc_weegli_blastfuseAI : public ScriptedAI
pInstance->SetData(0, NOT_STARTED);*/
}
void EnterCombat(Unit *who)
void EnterCombat(Unit * /*who*/)
{
/*if (pInstance)
pInstance->SetData(0, IN_PROGRESS);*/
}
void JustDied(Unit *victim)
void JustDied(Unit * /*victim*/)
{
/*if (pInstance)
pInstance->SetData(0, DONE);*/
}
void UpdateAI(const uint32 diff)
void UpdateAI(const uint32 /*diff*/)
{
if (!UpdateVictim())
return;
@@ -192,7 +192,7 @@ bool GossipHello_npc_weegli_blastfuse(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_weegli_blastfuse(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_weegli_blastfuse(Player* pPlayer, Creature* /*pCreature*/, uint32 /*uiSender*/, uint32 uiAction)
{
if (uiAction == GOSSIP_ACTION_INFO_DEF+1)
{
@@ -213,7 +213,7 @@ enum {
DEAD_HERO_CHANCE = 10
};
bool GOHello_go_shallow_grave(Player* pPlayer, GameObject* pGo)
bool GOHello_go_shallow_grave(Player* /*pPlayer*/, GameObject* pGo)
{
// randomly summon a zombie or dead hero the first time a grave is used
if (pGo->GetUseCount() == 0)
@@ -237,7 +237,7 @@ enum {
ZUMRAH_HOSTILE_FACTION = 37
};
bool AreaTrigger_at_zumrah(Player* pPlayer, const AreaTriggerEntry *at)
bool AreaTrigger_at_zumrah(Player* pPlayer, const AreaTriggerEntry * /*at*/)
{
Creature* Zumrah = pPlayer->FindNearestCreature(ZUMRAH_ID, 30.0f);