Remove LOTS of compile warnings
--HG-- branch : trunk
This commit is contained in:
@@ -11,7 +11,7 @@ bool GossipHello_npc_acherus_taxi(Player *pPlayer, Creature *pCreature)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GossipSelect_npc_acherus_taxi(Player *pPlayer, Creature *pCreature, uint32 uiSender, uint32 uiAction)
|
||||
bool GossipSelect_npc_acherus_taxi(Player *pPlayer, Creature * /*pCreature*/, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
if (uiAction == GOSSIP_ACTION_INFO_DEF + 1)
|
||||
{
|
||||
|
||||
@@ -19,7 +19,7 @@ pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_DOWN, GOSSIP_SENDER_MAIN, GOSS
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GossipSelect_npc_wyrmresttempel_middle_taxi(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
|
||||
bool GossipSelect_npc_wyrmresttempel_middle_taxi(Player* pPlayer, Creature* /*pCreature*/, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
if (uiAction == GOSSIP_ACTION_INFO_DEF + 1)
|
||||
{
|
||||
@@ -45,7 +45,7 @@ pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_MIDDLE, GOSSIP_SENDER_MAIN, GO
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GossipSelect_npc_wyrmresttempel_bottom_taxi(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
|
||||
bool GossipSelect_npc_wyrmresttempel_bottom_taxi(Player* pPlayer, Creature* /*pCreature*/, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
if (uiAction == GOSSIP_ACTION_INFO_DEF + 4)
|
||||
{
|
||||
@@ -71,7 +71,7 @@ pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ONEDOWN, GOSSIP_SENDER_MAIN, G
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GossipSelect_npc_wyrmresttempel_top_taxi(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
|
||||
bool GossipSelect_npc_wyrmresttempel_top_taxi(Player* pPlayer, Creature* /*pCreature*/, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
if (uiAction == GOSSIP_ACTION_INFO_DEF + 5)
|
||||
{
|
||||
|
||||
@@ -2,67 +2,67 @@
|
||||
#include <cstring>
|
||||
|
||||
//This function is called when the player logs in (every login)
|
||||
void OnLogin(Player *pPlayer)
|
||||
void OnLogin(Player * /*pPlayer*/)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
//This function is called when the player logs out
|
||||
void OnLogout(Player *pPlayer)
|
||||
void OnLogout(Player * /*pPlayer*/)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
//This function is called when the player kills another player
|
||||
void OnPVPKill(Player *killer, Player *killed)
|
||||
void OnPVPKill(Player * /*killer*/, Player * /*killed*/)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
//This function is called when a players AreaID changes
|
||||
void OnAreaChange(Player *pPlayer, AreaTableEntry const *pArea)
|
||||
void OnAreaChange(Player * /*pPlayer*/, AreaTableEntry const * /*pArea*/)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
//This is called when a player kills a creature (non pvp)
|
||||
void OnCreatureKill(Player *pPlayer, Creature *pCreature)
|
||||
void OnCreatureKill(Player * /*pPlayer*/, Creature * /*pCreature*/)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
//This function is called when a player has a money exchange
|
||||
int32 OnGetMoney(Player *pPlayer, int32 amount)
|
||||
int32 OnGetMoney(Player * /*pPlayer*/, int32 amount)
|
||||
{
|
||||
return amount;
|
||||
}
|
||||
|
||||
//This function is called whenever a player gets XP
|
||||
uint32 OnGetXP(Player *pPlayer, uint32 amount)
|
||||
uint32 OnGetXP(Player * /*pPlayer*/, uint32 amount)
|
||||
{
|
||||
return amount;
|
||||
}
|
||||
|
||||
//This function is called when a player clicks a GO Object
|
||||
bool OnGoClick(Player *pPlayer, GameObject *pGameObject)
|
||||
bool OnGoClick(Player * /*pPlayer*/, GameObject * /*pGameObject*/)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//This function is called when a player clicks and item
|
||||
bool OnItemClick(Player *pPlayer, Item *pItem)
|
||||
bool OnItemClick(Player * /*pPlayer*/, Item * /*pItem*/)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//This function is called when a player opens an item (like a clam)
|
||||
bool OnItemOpen(Player *pPlayer, Item *pItem)
|
||||
bool OnItemOpen(Player * /*pPlayer*/, Item * /*pItem*/)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//This function is called when a player sends a chat message
|
||||
bool OnPlayerChat(Player *pPlayer, const char *text)
|
||||
bool OnPlayerChat(Player * /*pPlayer*/, const char * /*text*/)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -79,7 +79,7 @@ void OnServerShutdown()
|
||||
}
|
||||
|
||||
//this function is called when a player casts a spell
|
||||
bool OnSpellCast(Unit *pUnitTarget, Item *pItemTarget, GameObject *pGoTarget, uint32 i, SpellEntry const *spell)
|
||||
bool OnSpellCast(Unit * /*pUnitTarget*/, Item * /*pItemTarget*/, GameObject * /*pGoTarget*/, uint32 /*i*/, SpellEntry const * /*spell*/)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -103,7 +103,7 @@ struct boss_balindaAI : public ScriptedAI
|
||||
Summons.DespawnAll();
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
DoScriptText(YELL_AGGRO, me);
|
||||
}
|
||||
@@ -121,7 +121,7 @@ struct boss_balindaAI : public ScriptedAI
|
||||
Summons.Summon(summoned);
|
||||
}
|
||||
|
||||
void JustDied(Unit* Killer)
|
||||
void JustDied(Unit* /*Killer*/)
|
||||
{
|
||||
Summons.DespawnAll();
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ struct boss_drektharAI : public ScriptedAI
|
||||
uiYellTimer = urand(20*IN_MILISECONDS,30*IN_MILISECONDS); //20 to 30 seconds
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void Aggro(Unit * /*who*/)
|
||||
{
|
||||
DoScriptText(YELL_AGGRO, me);
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ struct boss_galvangarAI : public ScriptedAI
|
||||
uiResetTimer = 5*IN_MILISECONDS;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void Aggro(Unit * /*who*/)
|
||||
{
|
||||
DoScriptText(YELL_AGGRO, me);
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ struct boss_vanndarAI : public ScriptedAI
|
||||
uiYellTimer = urand(20*IN_MILISECONDS,30*IN_MILISECONDS);
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void Aggro(Unit * /*who*/)
|
||||
{
|
||||
DoScriptText(YELL_AGGRO, me);
|
||||
}
|
||||
|
||||
@@ -91,7 +91,7 @@ struct npc_professor_phizzlethorpeAI : public npc_escortAI
|
||||
pSummoned->AI()->AttackStart(me);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* pWho)
|
||||
void EnterCombat(Unit* /*pWho*/)
|
||||
{
|
||||
DoScriptText(SAY_AGGRO, me);
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ EndContentData */
|
||||
+## go_shadowforge_brazier
|
||||
+######*/
|
||||
|
||||
bool GOHello_go_shadowforge_brazier(Player* pPlayer, GameObject* pGo)
|
||||
bool GOHello_go_shadowforge_brazier(Player* /*pPlayer*/, GameObject* pGo)
|
||||
{
|
||||
if (ScriptedInstance* pInstance = pGo->GetInstanceData())
|
||||
{
|
||||
@@ -94,7 +94,7 @@ uint32 RingBoss[]=
|
||||
9032, // Hedrum
|
||||
};
|
||||
|
||||
bool AreaTrigger_at_ring_of_law(Player* pPlayer, const AreaTriggerEntry *at)
|
||||
bool AreaTrigger_at_ring_of_law(Player* pPlayer, const AreaTriggerEntry * /*at*/)
|
||||
{
|
||||
if (ScriptedInstance* pInstance = pPlayer->GetInstanceData())
|
||||
{
|
||||
@@ -451,7 +451,7 @@ bool GossipHello_npc_kharan_mighthammer(Player* pPlayer, Creature* pCreature)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GossipSelect_npc_kharan_mighthammer(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
|
||||
bool GossipSelect_npc_kharan_mighthammer(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
switch (uiAction)
|
||||
{
|
||||
@@ -545,7 +545,7 @@ bool GossipHello_npc_lokhtos_darkbargainer(Player* pPlayer, Creature* pCreature)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GossipSelect_npc_lokhtos_darkbargainer(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
|
||||
bool GossipSelect_npc_lokhtos_darkbargainer(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
if (uiAction == GOSSIP_ACTION_INFO_DEF + 1)
|
||||
{
|
||||
@@ -1235,7 +1235,7 @@ CreatureAI* GetAI_npc_rocknot(Creature* pCreature)
|
||||
return new npc_rocknotAI(pCreature);
|
||||
}
|
||||
|
||||
bool ChooseReward_npc_rocknot(Player* pPlayer, Creature* pCreature, const Quest *_Quest, uint32 item)
|
||||
bool ChooseReward_npc_rocknot(Player* /*pPlayer*/, Creature* pCreature, const Quest *_Quest, uint32 /*item*/)
|
||||
{
|
||||
ScriptedInstance* pInstance = pCreature->GetInstanceData();
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ struct boss_ambassador_flamelashAI : public ScriptedAI
|
||||
Spirit_Timer = 24000;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who) {}
|
||||
void EnterCombat(Unit * /*who*/) {}
|
||||
|
||||
void SummonSpirits(Unit* victim)
|
||||
{
|
||||
|
||||
@@ -51,7 +51,7 @@ struct boss_anubshiahAI : public ScriptedAI
|
||||
EnvelopingWeb_Timer = 16000;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -50,13 +50,13 @@ struct boss_draganthaurissanAI : public ScriptedAI
|
||||
//Counter= 0;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
DoScriptText(SAY_AGGRO, me);
|
||||
me->CallForHelp(VISIBLE_RANGE);
|
||||
}
|
||||
|
||||
void KilledUnit(Unit* victim)
|
||||
void KilledUnit(Unit* /*victim*/)
|
||||
{
|
||||
DoScriptText(SAY_SLAY, me);
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ struct boss_general_angerforgeAI : public ScriptedAI
|
||||
Medics = false;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ struct boss_gorosh_the_dervishAI : public ScriptedAI
|
||||
MortalStrike_Timer = 22000;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ struct boss_grizzleAI : public ScriptedAI
|
||||
Frenzy_Timer =0;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ struct boss_high_interrogator_gerstahnAI : public ScriptedAI
|
||||
ShadowShield_Timer = 8000;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ struct boss_magmusAI : public ScriptedAI
|
||||
WarStomp_Timer =0;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ struct boss_moira_bronzebeardAI : public ScriptedAI
|
||||
Smite_Timer = 8000;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ bool GossipHello_boss_gloomrel(Player* pPlayer, Creature* pCreature)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GossipSelect_boss_gloomrel(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
|
||||
bool GossipSelect_boss_gloomrel(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
switch (uiAction)
|
||||
{
|
||||
@@ -128,7 +128,7 @@ struct boss_doomrelAI : public ScriptedAI
|
||||
me->SetUInt32Value(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_GOSSIP);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -145,7 +145,7 @@ struct boss_doomrelAI : public ScriptedAI
|
||||
pInstance->SetData64(DATA_EVENSTARTER, 0);
|
||||
}
|
||||
|
||||
void JustDied(Unit *who)
|
||||
void JustDied(Unit * /*who*/)
|
||||
{
|
||||
if (pInstance)
|
||||
pInstance->SetData(DATA_GHOSTKILL, 1);
|
||||
@@ -213,7 +213,7 @@ bool GossipHello_boss_doomrel(Player* pPlayer, Creature* pCreature)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GossipSelect_boss_doomrel(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
|
||||
bool GossipSelect_boss_doomrel(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
switch (uiAction)
|
||||
{
|
||||
|
||||
@@ -151,7 +151,7 @@ struct instance_blackrock_depths : public ScriptedInstance
|
||||
TombBossGUIDs[i] = 0;
|
||||
}
|
||||
|
||||
void OnCreatureCreate(Creature* pCreature, bool add)
|
||||
void OnCreatureCreate(Creature* pCreature, bool /*add*/)
|
||||
{
|
||||
switch(pCreature->GetEntry())
|
||||
{
|
||||
@@ -172,7 +172,7 @@ struct instance_blackrock_depths : public ScriptedInstance
|
||||
}
|
||||
}
|
||||
|
||||
void OnGameObjectCreate(GameObject* pGo, bool add)
|
||||
void OnGameObjectCreate(GameObject* pGo, bool /*add*/)
|
||||
{
|
||||
switch(pGo->GetEntry())
|
||||
{
|
||||
|
||||
@@ -31,15 +31,13 @@ struct npc_rookey_whelpAI : public ScriptedAI
|
||||
|
||||
ScriptedInstance* pInstance;
|
||||
|
||||
void JustDied(Unit *who)
|
||||
void JustDied(Unit * /*who*/)
|
||||
{
|
||||
if (pInstance)
|
||||
{
|
||||
pInstance->SetData(WHELP_DEATH_COUNT, pInstance->GetData(WHELP_DEATH_COUNT)+1);
|
||||
}
|
||||
}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
void UpdateAI(const uint32 /*diff*/)
|
||||
{
|
||||
if (!UpdateVictim())
|
||||
return;
|
||||
@@ -53,7 +51,7 @@ CreatureAI* GetAI_rookey_whelp(Creature* pCreature)
|
||||
return new npc_rookey_whelpAI(pCreature);
|
||||
}
|
||||
|
||||
bool GOHello_rookey_egg(Player *pPlayer, GameObject *pGO)
|
||||
bool GOHello_rookey_egg(Player *pPlayer, GameObject * /*pGO*/)
|
||||
{
|
||||
Position pos;
|
||||
pPlayer->GetPosition(&pos);
|
||||
|
||||
@@ -45,7 +45,7 @@ struct boss_drakkisathAI : public ScriptedAI
|
||||
Thunderclap_Timer = 17000;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ struct boss_gythAI : public ScriptedAI
|
||||
me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ struct boss_halyconAI : public ScriptedAI
|
||||
Summoned = false;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ struct boss_highlordomokkAI : public ScriptedAI
|
||||
Slow_Timer = 24000;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -40,9 +40,9 @@ struct boss_mothersmolderwebAI : public ScriptedAI
|
||||
MothersMilk_Timer = 10000;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who) {}
|
||||
void EnterCombat(Unit * /*who*/) {}
|
||||
|
||||
void DamageTaken(Unit *done_by, uint32 &damage)
|
||||
void DamageTaken(Unit * /*done_by*/, uint32 &damage)
|
||||
{
|
||||
if (me->GetHealth() <= damage)
|
||||
DoCast(me, SPELL_SUMMON_SPIRE_SPIDERLING, true);
|
||||
|
||||
@@ -57,7 +57,7 @@ struct boss_overlordwyrmthalakAI : public ScriptedAI
|
||||
Summoned = false;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ struct boss_pyroguard_emberseerAI : public ScriptedAI
|
||||
PyroBlast_Timer = 14000;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ struct boss_quatermasterzigrisAI : public ScriptedAI
|
||||
//HelingPotion_Timer = 25000;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ struct boss_rend_blackhandAI : public ScriptedAI
|
||||
Thunderclap_Timer = 9000;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ struct boss_shadowvoshAI : public ScriptedAI
|
||||
//DoCast(me, SPELL_ICEARMOR, true);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who){}
|
||||
void EnterCombat(Unit * /*who*/){}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
|
||||
@@ -42,7 +42,7 @@ struct boss_thebeastAI : public ScriptedAI
|
||||
TerrifyingRoar_Timer = 23000;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ struct boss_warmastervooneAI : public ScriptedAI
|
||||
ThrowAxe_Timer = 1000;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ struct boss_broodlordAI : public ScriptedAI
|
||||
KnockBack_Timer = 30000;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
DoScriptText(SAY_AGGRO, me);
|
||||
DoZoneInCombat();
|
||||
|
||||
@@ -185,7 +185,7 @@ struct boss_chromaggusAI : public ScriptedAI
|
||||
Enraged = false;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ struct boss_ebonrocAI : public ScriptedAI
|
||||
Heal_Timer = 1000;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
DoZoneInCombat();
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ struct boss_firemawAI : public ScriptedAI
|
||||
FlameBuffet_Timer = 5000;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
DoZoneInCombat();
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ struct boss_flamegorAI : public ScriptedAI
|
||||
Frenzy_Timer = 10000;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
DoZoneInCombat();
|
||||
}
|
||||
|
||||
@@ -93,12 +93,12 @@ struct boss_nefarianAI : public ScriptedAI
|
||||
DoScriptText(SAY_SLAY, me, Victim);
|
||||
}
|
||||
|
||||
void JustDied(Unit* Killer)
|
||||
void JustDied(Unit* /*Killer*/)
|
||||
{
|
||||
DoScriptText(SAY_DEATH, me);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * who)
|
||||
{
|
||||
DoScriptText(RAND(SAY_XHEALTH,SAY_AGGRO,SAY_SHADOWFLAME), me);
|
||||
|
||||
|
||||
@@ -52,12 +52,12 @@ struct boss_razorgoreAI : public ScriptedAI
|
||||
Conflagration_Timer = 12000;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
DoZoneInCombat();
|
||||
}
|
||||
|
||||
void JustDied(Unit* Killer)
|
||||
void JustDied(Unit* /*Killer*/)
|
||||
{
|
||||
DoScriptText(SAY_DEATH, me);
|
||||
}
|
||||
|
||||
@@ -89,7 +89,7 @@ struct boss_vaelAI : public ScriptedAI
|
||||
me->RemoveFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_GOSSIP);
|
||||
}
|
||||
|
||||
void KilledUnit(Unit *victim)
|
||||
void KilledUnit(Unit * victim)
|
||||
{
|
||||
if (rand()%5)
|
||||
return;
|
||||
@@ -97,7 +97,7 @@ struct boss_vaelAI : public ScriptedAI
|
||||
DoScriptText(SAY_KILLTARGET, me, victim);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
DoCast(me, SPELL_ESSENCEOFTHERED);
|
||||
DoZoneInCombat();
|
||||
|
||||
@@ -202,7 +202,7 @@ struct boss_victor_nefariusAI : public ScriptedAI
|
||||
AttackStart(pTarget);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -350,7 +350,7 @@ bool GossipHello_boss_victor_nefarius(Player* pPlayer, Creature* pCreature)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GossipSelect_boss_victor_nefarius(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
|
||||
bool GossipSelect_boss_victor_nefarius(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
switch (uiAction)
|
||||
{
|
||||
|
||||
@@ -48,7 +48,7 @@ bool GossipHello_npc_deathly_usher(Player* pPlayer, Creature* pCreature)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GossipSelect_npc_deathly_usher(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
|
||||
bool GossipSelect_npc_deathly_usher(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
if (uiAction == GOSSIP_ACTION_INFO_DEF)
|
||||
{
|
||||
@@ -92,7 +92,7 @@ bool GossipHello_npc_fallen_hero_of_horde(Player* pPlayer, Creature* pCreature)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GossipSelect_npc_fallen_hero_of_horde(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
|
||||
bool GossipSelect_npc_fallen_hero_of_horde(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
switch (uiAction)
|
||||
{
|
||||
|
||||
@@ -54,7 +54,7 @@ struct boss_kruulAI : public ScriptedAI
|
||||
Hound_Timer = 8000;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ struct npc_ragged_johnAI : public ScriptedAI
|
||||
ScriptedAI::MoveInLineOfSight(who);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who) {}
|
||||
void EnterCombat(Unit * /*who*/) {}
|
||||
};
|
||||
|
||||
CreatureAI* GetAI_npc_ragged_john(Creature* pCreature)
|
||||
@@ -84,7 +84,7 @@ bool GossipHello_npc_ragged_john(Player* pPlayer, Creature* pCreature)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GossipSelect_npc_ragged_john(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
|
||||
bool GossipSelect_npc_ragged_john(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
switch (uiAction)
|
||||
{
|
||||
|
||||
@@ -70,7 +70,7 @@ struct boss_mr_smiteAI : public ScriptedAI
|
||||
SetEquipmentSlots(false, EQUIP_SWORD, EQUIP_UNEQUIP, EQUIP_NO_CHANGE);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* pWho)
|
||||
void EnterCombat(Unit* /*pWho*/)
|
||||
{
|
||||
DoScriptText(SAY_AGGRO, me);
|
||||
}
|
||||
@@ -157,7 +157,7 @@ struct boss_mr_smiteAI : public ScriptedAI
|
||||
DoMeleeAttackIfReady();
|
||||
}
|
||||
|
||||
void MovementInform(uint32 uiType, uint32 uiId)
|
||||
void MovementInform(uint32 uiType, uint32 /*uiId*/)
|
||||
{
|
||||
if (uiType != POINT_MOTION_TYPE)
|
||||
return;
|
||||
|
||||
@@ -172,7 +172,7 @@ struct instance_deadmines : public ScriptedInstance
|
||||
pDoorLever->SetUInt32Value(GAMEOBJECT_FLAGS, 4);
|
||||
}
|
||||
|
||||
void OnGameObjectCreate(GameObject* pGo, bool add)
|
||||
void OnGameObjectCreate(GameObject* pGo, bool /*add*/)
|
||||
{
|
||||
switch(pGo->GetEntry())
|
||||
{
|
||||
|
||||
@@ -49,11 +49,11 @@ struct npc_narm_faulkAI : public ScriptedAI
|
||||
spellHit = false;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
}
|
||||
|
||||
void MoveInLineOfSight(Unit *who)
|
||||
void MoveInLineOfSight(Unit * /*who*/)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -72,7 +72,7 @@ struct npc_narm_faulkAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void SpellHit(Unit *Hitter, const SpellEntry *Spellkind)
|
||||
void SpellHit(Unit * /*Hitter*/, const SpellEntry *Spellkind)
|
||||
{
|
||||
if (Spellkind->Id == 8593 && !spellHit)
|
||||
{
|
||||
|
||||
@@ -27,7 +27,7 @@ EndScriptData */
|
||||
# at_twilight_grove
|
||||
######*/
|
||||
|
||||
bool AreaTrigger_at_twilight_grove(Player* pPlayer, const AreaTriggerEntry *at)
|
||||
bool AreaTrigger_at_twilight_grove(Player* pPlayer, const AreaTriggerEntry * /*at*/)
|
||||
{
|
||||
if (pPlayer->HasQuestForItem(21149))
|
||||
{
|
||||
@@ -68,7 +68,7 @@ struct boss_twilight_corrupterAI : public ScriptedAI
|
||||
CreatureOfNightmare_Timer = 30000;
|
||||
KillCount = 0;
|
||||
}
|
||||
void EnterCombat(Unit* who)
|
||||
void EnterCombat(Unit* /*who*/)
|
||||
{
|
||||
me->MonsterYell("The Nightmare cannot be stopped!",0,me->GetGUID());
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ struct mobs_ghoul_flayerAI : public ScriptedAI
|
||||
|
||||
void Reset() {}
|
||||
|
||||
void EnterCombat(Unit* who) {}
|
||||
void EnterCombat(Unit* /*who*/) {}
|
||||
|
||||
void JustDied(Unit* Killer)
|
||||
{
|
||||
@@ -70,7 +70,7 @@ bool GossipHello_npc_augustus_the_touched(Player* pPlayer, Creature* pCreature)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GossipSelect_npc_augustus_the_touched(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
|
||||
bool GossipSelect_npc_augustus_the_touched(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
if (uiAction == GOSSIP_ACTION_TRADE)
|
||||
pPlayer->SEND_VENDORLIST(pCreature->GetGUID());
|
||||
@@ -93,7 +93,7 @@ struct npc_darrowshire_spiritAI : public ScriptedAI
|
||||
me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who) {}
|
||||
void EnterCombat(Unit * /*who*/) {}
|
||||
|
||||
};
|
||||
CreatureAI* GetAI_npc_darrowshire_spirit(Creature* pCreature)
|
||||
@@ -131,7 +131,7 @@ bool GossipHello_npc_tirion_fordring(Player* pPlayer, Creature* pCreature)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GossipSelect_npc_tirion_fordring(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
|
||||
bool GossipSelect_npc_tirion_fordring(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
switch (uiAction)
|
||||
{
|
||||
|
||||
@@ -48,11 +48,11 @@ struct npc_henze_faulkAI : public ScriptedAI
|
||||
spellHit = false;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
}
|
||||
|
||||
void MoveInLineOfSight(Unit *who)
|
||||
void MoveInLineOfSight(Unit * /*who*/)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -71,7 +71,7 @@ struct npc_henze_faulkAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void SpellHit(Unit *Hitter, const SpellEntry *Spellkind)
|
||||
void SpellHit(Unit * /*Hitter*/, const SpellEntry *Spellkind)
|
||||
{
|
||||
if (Spellkind->Id == 8593 && !spellHit)
|
||||
{
|
||||
|
||||
@@ -72,7 +72,7 @@ struct npc_prospector_anvilwardAI : public npc_escortAI
|
||||
me->RestoreFaction();
|
||||
}
|
||||
|
||||
void JustDied(Unit* killer)
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
me->RestoreFaction();
|
||||
}
|
||||
@@ -92,7 +92,7 @@ bool GossipHello_npc_prospector_anvilward(Player* pPlayer, Creature* pCreature)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GossipSelect_npc_prospector_anvilward(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
|
||||
bool GossipSelect_npc_prospector_anvilward(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
switch(uiAction)
|
||||
{
|
||||
@@ -224,7 +224,7 @@ struct npc_secondTrialAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who) {}
|
||||
void EnterCombat(Unit * /*who*/) {}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
@@ -316,7 +316,7 @@ struct master_kelerun_bloodmournAI : public ScriptedAI
|
||||
uint64 paladinGuid[] = {0,0,0,0};
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who) {}
|
||||
void EnterCombat(Unit * /*who*/) {}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
@@ -385,7 +385,7 @@ struct master_kelerun_bloodmournAI : public ScriptedAI
|
||||
}
|
||||
|
||||
void SecondTrialKill();
|
||||
void SummonedCreatureDespawn(Creature* c) {}
|
||||
void SummonedCreatureDespawn(Creature* /*c*/) {}
|
||||
};
|
||||
|
||||
bool GossipHello_master_kelerun_bloodmourn(Player* pPlayer, Creature* pCreature)
|
||||
@@ -405,7 +405,7 @@ bool GossipHello_master_kelerun_bloodmourn(Player* pPlayer, Creature* pCreature)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool QuestAccept_master_kelerun_bloodmourn(Player* pPlayer, Creature* pCreature, Quest const *quest)
|
||||
bool QuestAccept_master_kelerun_bloodmourn(Player* /*pPlayer*/, Creature* pCreature, Quest const *quest)
|
||||
{
|
||||
// One Player exclusive quest, wait for user go activation
|
||||
if (quest->GetQuestId() == QUEST_SECOND_TRIAL)
|
||||
@@ -481,7 +481,7 @@ CreatureAI* GetAI_npc_secondTrial(Creature* pCreature)
|
||||
## go_second_trial
|
||||
######*/
|
||||
|
||||
bool GOHello_go_second_trial(Player* pPlayer, GameObject* pGO)
|
||||
bool GOHello_go_second_trial(Player* /*pPlayer*/, GameObject* pGO)
|
||||
{
|
||||
// find spawn :: master_kelerun_bloodmourn
|
||||
if (Creature *pCreature = pGO->FindNearestCreature(MASTER_KELERUN_BLOODMOURN, 30.0f))
|
||||
@@ -515,7 +515,7 @@ struct npc_apprentice_mirvedaAI : public ScriptedAI
|
||||
Summon = false;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* who){}
|
||||
void EnterCombat(Unit* /*who*/){}
|
||||
|
||||
void JustSummoned(Creature *summoned)
|
||||
{
|
||||
@@ -529,14 +529,14 @@ struct npc_apprentice_mirvedaAI : public ScriptedAI
|
||||
++KillCount;
|
||||
}
|
||||
|
||||
void JustDied(Unit* killer)
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
if (PlayerGUID)
|
||||
if (Player* pPlayer = Unit::GetPlayer(PlayerGUID))
|
||||
CAST_PLR(pPlayer)->FailQuest(QUEST_UNEXPECTED_RESULT);
|
||||
}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
void UpdateAI(const uint32 /*diff*/)
|
||||
{
|
||||
if (KillCount >= 3 && PlayerGUID)
|
||||
if (Player* pPlayer = Unit::GetPlayer(PlayerGUID))
|
||||
@@ -630,7 +630,7 @@ struct npc_infused_crystalAI : public Scripted_NoMovementAI
|
||||
summoned->AI()->AttackStart(me);
|
||||
}
|
||||
|
||||
void JustDied(Unit* killer)
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
if (PlayerGUID && !Completed)
|
||||
if (Player* pPlayer = Unit::GetPlayer(PlayerGUID))
|
||||
|
||||
@@ -47,7 +47,7 @@ bool GossipHello_npc_blood_knight_dawnstar(Player* pPlayer, Creature* pCreature)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GossipSelect_npc_blood_knight_dawnstar(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
|
||||
bool GossipSelect_npc_blood_knight_dawnstar(Player* pPlayer, Creature* /*pCreature*/, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
if (uiAction == GOSSIP_ACTION_INFO_DEF+1)
|
||||
{
|
||||
@@ -80,7 +80,7 @@ bool GossipHello_npc_budd_nedreck(Player* pPlayer, Creature* pCreature)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GossipSelect_npc_budd_nedreck(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
|
||||
bool GossipSelect_npc_budd_nedreck(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
if (uiAction == GOSSIP_ACTION_INFO_DEF)
|
||||
{
|
||||
@@ -109,7 +109,7 @@ bool GossipHello_npc_rathis_tomber(Player* pPlayer, Creature* pCreature)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GossipSelect_npc_rathis_tomber(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
|
||||
bool GossipSelect_npc_rathis_tomber(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
if (uiAction == GOSSIP_ACTION_TRADE)
|
||||
pPlayer->SEND_VENDORLIST(pCreature->GetGUID());
|
||||
@@ -120,7 +120,7 @@ bool GossipSelect_npc_rathis_tomber(Player* pPlayer, Creature* pCreature, uint32
|
||||
## go_gilded_brazier (Paladin First Trail quest (9678))
|
||||
#####*/
|
||||
|
||||
bool GOHello_gilded_brazier(Player* pPlayer, GameObject* pGo)
|
||||
bool GOHello_gilded_brazier(Player* pPlayer, GameObject* /*pGo*/)
|
||||
{
|
||||
if (pPlayer->GetQuestStatus(9678) == QUEST_STATUS_INCOMPLETE)
|
||||
{
|
||||
|
||||
@@ -521,7 +521,7 @@ bool GossipHello_npc_blastmaster_emi_shortfuse(Player* pPlayer, Creature* pCreat
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GossipSelect_npc_blastmaster_emi_shortfuse(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
|
||||
bool GossipSelect_npc_blastmaster_emi_shortfuse(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
if (uiAction == GOSSIP_ACTION_INFO_DEF+1)
|
||||
{
|
||||
@@ -552,7 +552,7 @@ struct boss_grubbisAI : public ScriptedAI
|
||||
CAST_CRE(pSummon)->AI()->SetData(2,1);
|
||||
}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
void UpdateAI(const uint32 /*diff*/)
|
||||
{
|
||||
if (!UpdateVictim())
|
||||
return;
|
||||
@@ -560,7 +560,7 @@ struct boss_grubbisAI : public ScriptedAI
|
||||
DoMeleeAttackIfReady();
|
||||
}
|
||||
|
||||
void JustDied(Unit* pKiller)
|
||||
void JustDied(Unit* /*pKiller*/)
|
||||
{
|
||||
if (!me->isSummon())
|
||||
return;
|
||||
|
||||
@@ -67,7 +67,7 @@ struct instance_gnomeregan : public ScriptedInstance
|
||||
OUT_LOAD_INST_DATA_COMPLETE;
|
||||
}
|
||||
|
||||
void OnCreatureCreate(Creature* pCreature, bool bAdd)
|
||||
void OnCreatureCreate(Creature* pCreature, bool /*bAdd*/)
|
||||
{
|
||||
switch(pCreature->GetEntry())
|
||||
{
|
||||
@@ -75,7 +75,7 @@ struct instance_gnomeregan : public ScriptedInstance
|
||||
}
|
||||
}
|
||||
|
||||
void OnGameObjectCreate(GameObject* pGo, bool bAdd)
|
||||
void OnGameObjectCreate(GameObject* pGo, bool /*bAdd*/)
|
||||
{
|
||||
switch(pGo->GetEntry())
|
||||
{
|
||||
@@ -104,7 +104,7 @@ struct instance_gnomeregan : public ScriptedInstance
|
||||
}
|
||||
}
|
||||
|
||||
uint32 GetData(uint32 uiType, uint32 uiData)
|
||||
uint32 GetData(uint32 uiType, uint32 /*uiData*/)
|
||||
{
|
||||
switch(uiType)
|
||||
{
|
||||
|
||||
@@ -53,7 +53,7 @@ bool GossipHello_npc_royal_historian_archesonus(Player* pPlayer, Creature* pCrea
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GossipSelect_npc_royal_historian_archesonus(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
|
||||
bool GossipSelect_npc_royal_historian_archesonus(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
switch (uiAction)
|
||||
{
|
||||
|
||||
@@ -50,10 +50,8 @@ struct npc_converted_sentryAI : public ScriptedAI
|
||||
Timer = 2500;
|
||||
}
|
||||
|
||||
void MoveInLineOfSight(Unit *who)
|
||||
{ return; }
|
||||
void EnterCombat(Unit* who)
|
||||
{ }
|
||||
void MoveInLineOfSight(Unit * /*who*/) {}
|
||||
void EnterCombat(Unit* /*who*/) {}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
@@ -95,7 +93,7 @@ struct npc_greengill_slaveAI : public ScriptedAI
|
||||
|
||||
uint64 PlayerGUID;
|
||||
|
||||
void EnterCombat(Unit* who){}
|
||||
void EnterCombat(Unit* /*who*/){}
|
||||
|
||||
void Reset()
|
||||
{
|
||||
@@ -126,7 +124,7 @@ struct npc_greengill_slaveAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
void UpdateAI(const uint32 /*diff*/)
|
||||
{
|
||||
DoMeleeAttackIfReady();
|
||||
}
|
||||
|
||||
@@ -63,17 +63,17 @@ struct boss_curatorAI : public ScriptedAI
|
||||
me->ApplySpellImmune(0, IMMUNITY_DAMAGE, SPELL_SCHOOL_MASK_ARCANE, true);
|
||||
}
|
||||
|
||||
void KilledUnit(Unit *victim)
|
||||
void KilledUnit(Unit * /*victim*/)
|
||||
{
|
||||
DoScriptText(RAND(SAY_KILL1,SAY_KILL2), me);
|
||||
}
|
||||
|
||||
void JustDied(Unit *victim)
|
||||
void JustDied(Unit * /*victim*/)
|
||||
{
|
||||
DoScriptText(SAY_DEATH, me);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
DoScriptText(SAY_AGGRO, me);
|
||||
}
|
||||
|
||||
@@ -60,18 +60,18 @@ struct boss_maiden_of_virtueAI : public ScriptedAI
|
||||
Enraged = false;
|
||||
}
|
||||
|
||||
void KilledUnit(Unit* Victim)
|
||||
void KilledUnit(Unit* /*Victim*/)
|
||||
{
|
||||
if (urand(0,1) == 0)
|
||||
DoScriptText(RAND(SAY_SLAY1,SAY_SLAY2,SAY_SLAY3), me);
|
||||
}
|
||||
|
||||
void JustDied(Unit* Killer)
|
||||
void JustDied(Unit* /*Killer*/)
|
||||
{
|
||||
DoScriptText(SAY_DEATH, me);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
DoScriptText(SAY_AGGRO, me);
|
||||
}
|
||||
|
||||
@@ -62,9 +62,9 @@ struct boss_midnightAI : public ScriptedAI
|
||||
me->SetVisibility(VISIBILITY_ON);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* who) {}
|
||||
void EnterCombat(Unit* /*who*/) {}
|
||||
|
||||
void KilledUnit(Unit *victim)
|
||||
void KilledUnit(Unit * /*victim*/)
|
||||
{
|
||||
if (Phase == 2)
|
||||
{
|
||||
@@ -181,14 +181,14 @@ struct boss_attumenAI : public ScriptedAI
|
||||
ResetTimer = 2000;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* who) {}
|
||||
void EnterCombat(Unit* /*who*/) {}
|
||||
|
||||
void KilledUnit(Unit *victim)
|
||||
void KilledUnit(Unit * /*victim*/)
|
||||
{
|
||||
DoScriptText(RAND(SAY_KILL1,SAY_KILL2), me);
|
||||
}
|
||||
|
||||
void JustDied(Unit *victim)
|
||||
void JustDied(Unit * /*victim*/)
|
||||
{
|
||||
DoScriptText(SAY_DEATH, me);
|
||||
if (Unit *pMidnight = Unit::GetUnit(*me, Midnight))
|
||||
@@ -243,7 +243,7 @@ struct boss_attumenAI : public ScriptedAI
|
||||
{
|
||||
if (ChargeTimer <= diff)
|
||||
{
|
||||
Unit *pTarget;
|
||||
Unit *pTarget = NULL;
|
||||
std::list<HostileReference *> t_list = me->getThreatManager().getThreatList();
|
||||
std::vector<Unit *> target_list;
|
||||
for (std::list<HostileReference *>::const_iterator itr = t_list.begin(); itr!= t_list.end(); ++itr)
|
||||
@@ -277,7 +277,7 @@ struct boss_attumenAI : public ScriptedAI
|
||||
DoMeleeAttackIfReady();
|
||||
}
|
||||
|
||||
void SpellHit(Unit *source, const SpellEntry *spell)
|
||||
void SpellHit(Unit * /*source*/, const SpellEntry *spell)
|
||||
{
|
||||
if (spell->Mechanic == MECHANIC_DISARM)
|
||||
DoScriptText(SAY_DISARMED, me);
|
||||
|
||||
@@ -110,7 +110,7 @@ struct boss_moroesAI : public ScriptedAI
|
||||
DoZoneInCombat();
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* who)
|
||||
void EnterCombat(Unit* /*who*/)
|
||||
{
|
||||
StartEvent();
|
||||
|
||||
@@ -119,12 +119,12 @@ struct boss_moroesAI : public ScriptedAI
|
||||
DoZoneInCombat();
|
||||
}
|
||||
|
||||
void KilledUnit(Unit* victim)
|
||||
void KilledUnit(Unit* /*victim*/)
|
||||
{
|
||||
DoScriptText(RAND(SAY_KILL_1,SAY_KILL_2,SAY_KILL_3), me);
|
||||
}
|
||||
|
||||
void JustDied(Unit* victim)
|
||||
void JustDied(Unit* /*victim*/)
|
||||
{
|
||||
DoScriptText(SAY_DEATH, me);
|
||||
|
||||
@@ -353,7 +353,7 @@ struct boss_moroes_guestAI : public ScriptedAI
|
||||
return me;
|
||||
}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
void UpdateAI(const uint32 /*diff*/)
|
||||
{
|
||||
if (pInstance && !pInstance->GetData(TYPE_MOROES))
|
||||
EnterEvadeMode();
|
||||
|
||||
@@ -245,13 +245,13 @@ struct boss_netherspiteAI : public ScriptedAI
|
||||
Door->SetGoState(open ? GO_STATE_ACTIVE : GO_STATE_READY);
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void Aggro(Unit * /*who*/)
|
||||
{
|
||||
HandleDoors(false);
|
||||
SwitchToPortalPhase();
|
||||
}
|
||||
|
||||
void JustDied(Unit* killer)
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
HandleDoors(true);
|
||||
DestroyPortals();
|
||||
|
||||
@@ -142,7 +142,7 @@ struct boss_nightbaneAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
if (pInstance)
|
||||
pInstance->SetData(TYPE_NIGHTBANE, IN_PROGRESS);
|
||||
@@ -157,7 +157,7 @@ struct boss_nightbaneAI : public ScriptedAI
|
||||
ScriptedAI::AttackStart(who);
|
||||
}
|
||||
|
||||
void JustDied(Unit* killer)
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
if (pInstance)
|
||||
pInstance->SetData(TYPE_NIGHTBANE, DONE);
|
||||
|
||||
@@ -105,8 +105,8 @@ struct netherspite_infernalAI : public ScriptedAI
|
||||
InfernalPoint *point;
|
||||
|
||||
void Reset() {}
|
||||
void EnterCombat(Unit *who) {}
|
||||
void MoveInLineOfSight(Unit *who) {}
|
||||
void EnterCombat(Unit * /*who*/) {}
|
||||
void MoveInLineOfSight(Unit * /*who*/) {}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
@@ -133,7 +133,7 @@ struct netherspite_infernalAI : public ScriptedAI
|
||||
CAST_CRE(pMalchezaar)->AI()->KilledUnit(who);
|
||||
}
|
||||
|
||||
void SpellHit(Unit *who, const SpellEntry *spell)
|
||||
void SpellHit(Unit * /*who*/, const SpellEntry *spell)
|
||||
{
|
||||
if (spell->Id == SPELL_INFERNAL_RELAY)
|
||||
{
|
||||
@@ -210,12 +210,12 @@ struct boss_malchezaarAI : public ScriptedAI
|
||||
pInstance->HandleGameObject(pInstance->GetData64(DATA_GO_NETHER_DOOR), true);
|
||||
}
|
||||
|
||||
void KilledUnit(Unit *victim)
|
||||
void KilledUnit(Unit * /*victim*/)
|
||||
{
|
||||
DoScriptText(RAND(SAY_SLAY1,SAY_SLAY2,SAY_SLAY3), me);
|
||||
}
|
||||
|
||||
void JustDied(Unit *victim)
|
||||
void JustDied(Unit * /*victim*/)
|
||||
{
|
||||
DoScriptText(SAY_DEATH, me);
|
||||
|
||||
@@ -231,7 +231,7 @@ struct boss_malchezaarAI : public ScriptedAI
|
||||
pInstance->HandleGameObject(pInstance->GetData64(DATA_GO_NETHER_DOOR), true);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
DoScriptText(SAY_AGGRO, me);
|
||||
|
||||
@@ -323,7 +323,7 @@ struct boss_malchezaarAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void SummonInfernal(const uint32 diff)
|
||||
void SummonInfernal(const uint32 /*diff*/)
|
||||
{
|
||||
InfernalPoint *point = NULL;
|
||||
Position pos;
|
||||
|
||||
@@ -145,12 +145,12 @@ struct boss_aranAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void KilledUnit(Unit *victim)
|
||||
void KilledUnit(Unit * /*victim*/)
|
||||
{
|
||||
DoScriptText(RAND(SAY_KILL1,SAY_KILL2), me);
|
||||
}
|
||||
|
||||
void JustDied(Unit *victim)
|
||||
void JustDied(Unit * /*victim*/)
|
||||
{
|
||||
DoScriptText(SAY_DEATH, me);
|
||||
|
||||
@@ -161,7 +161,7 @@ struct boss_aranAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
DoScriptText(RAND(SAY_AGGRO1,SAY_AGGRO2,SAY_AGGRO3), me);
|
||||
|
||||
@@ -466,13 +466,13 @@ struct boss_aranAI : public ScriptedAI
|
||||
DoMeleeAttackIfReady();
|
||||
}
|
||||
|
||||
void DamageTaken(Unit* pAttacker, uint32 &damage)
|
||||
void DamageTaken(Unit* /*pAttacker*/, uint32 &damage)
|
||||
{
|
||||
if (!DrinkInturrupted && Drinking && damage)
|
||||
DrinkInturrupted = true;
|
||||
}
|
||||
|
||||
void SpellHit(Unit* pAttacker, const SpellEntry* Spell)
|
||||
void SpellHit(Unit* /*pAttacker*/, const SpellEntry* Spell)
|
||||
{
|
||||
//We only care about inturrupt effects and only if they are durring a spell currently being casted
|
||||
if ((Spell->Effect[0] != SPELL_EFFECT_INTERRUPT_CAST &&
|
||||
@@ -506,7 +506,7 @@ struct water_elementalAI : public ScriptedAI
|
||||
CastTimer = 2000 + (rand()%3000);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* who) {}
|
||||
void EnterCombat(Unit* /*who*/) {}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
|
||||
@@ -73,7 +73,7 @@ struct mob_kilrekAI : public ScriptedAI
|
||||
AmplifyTimer = 2000;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
if (!pInstance)
|
||||
{
|
||||
@@ -82,7 +82,7 @@ struct mob_kilrekAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void JustDied(Unit* Killer)
|
||||
void JustDied(Unit* /*Killer*/)
|
||||
{
|
||||
if (pInstance)
|
||||
{
|
||||
@@ -125,11 +125,11 @@ struct mob_demon_chainAI : public ScriptedAI
|
||||
SacrificeGUID = 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)
|
||||
void JustDied(Unit * /*killer*/)
|
||||
{
|
||||
if (SacrificeGUID)
|
||||
{
|
||||
@@ -226,7 +226,7 @@ struct boss_terestianAI : public ScriptedAI
|
||||
else DoCast(me, SPELL_SUMMON_IMP, true);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* who)
|
||||
void EnterCombat(Unit* /*who*/)
|
||||
{
|
||||
DoScriptText(SAY_AGGRO, me);
|
||||
}
|
||||
@@ -246,12 +246,12 @@ struct boss_terestianAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void KilledUnit(Unit *victim)
|
||||
void KilledUnit(Unit * /*victim*/)
|
||||
{
|
||||
DoScriptText(RAND(SAY_SLAY1,SAY_SLAY2), me);
|
||||
}
|
||||
|
||||
void JustDied(Unit *killer)
|
||||
void JustDied(Unit * /*killer*/)
|
||||
{
|
||||
for (uint8 i = 0; i < 2; ++i)
|
||||
{
|
||||
@@ -343,7 +343,7 @@ struct mob_fiendish_impAI : public ScriptedAI
|
||||
me->ApplySpellImmune(0, IMMUNITY_SCHOOL, SPELL_SCHOOL_MASK_FIRE, true);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who) {}
|
||||
void EnterCombat(Unit * /*who*/) {}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
|
||||
@@ -130,7 +130,7 @@ struct boss_dorotheeAI : public ScriptedAI
|
||||
TitoDied = false;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* who)
|
||||
void EnterCombat(Unit* /*who*/)
|
||||
{
|
||||
DoScriptText(SAY_DOROTHEE_AGGRO, me);
|
||||
}
|
||||
@@ -142,7 +142,7 @@ struct boss_dorotheeAI : public ScriptedAI
|
||||
|
||||
void SummonTito(); // See below
|
||||
|
||||
void JustDied(Unit* killer)
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
DoScriptText(SAY_DOROTHEE_DEATH, me);
|
||||
|
||||
@@ -216,9 +216,9 @@ struct mob_titoAI : public ScriptedAI
|
||||
YipTimer = 10000;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* who) {}
|
||||
void EnterCombat(Unit* /*who*/) {}
|
||||
|
||||
void JustDied(Unit* killer)
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
if (DorotheeGUID)
|
||||
{
|
||||
@@ -294,7 +294,7 @@ struct boss_strawmanAI : public ScriptedAI
|
||||
ScriptedAI::MoveInLineOfSight(who);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* who)
|
||||
void EnterCombat(Unit* /*who*/)
|
||||
{
|
||||
DoScriptText(SAY_STRAWMAN_AGGRO, me);
|
||||
}
|
||||
@@ -304,7 +304,7 @@ struct boss_strawmanAI : public ScriptedAI
|
||||
me->ForcedDespawn();
|
||||
}
|
||||
|
||||
void SpellHit(Unit* caster, const SpellEntry *Spell)
|
||||
void SpellHit(Unit* /*caster*/, const SpellEntry *Spell)
|
||||
{
|
||||
if ((Spell->SchoolMask == SPELL_SCHOOL_MASK_FIRE) && (!(rand()%10)))
|
||||
{
|
||||
@@ -317,7 +317,7 @@ struct boss_strawmanAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void JustDied(Unit* killer)
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
DoScriptText(SAY_STRAWMAN_DEATH, me);
|
||||
|
||||
@@ -325,7 +325,7 @@ struct boss_strawmanAI : public ScriptedAI
|
||||
SummonCroneIfReady(pInstance, me);
|
||||
}
|
||||
|
||||
void KilledUnit(Unit* victim)
|
||||
void KilledUnit(Unit* /*victim*/)
|
||||
{
|
||||
DoScriptText(SAY_STRAWMAN_SLAY, me);
|
||||
}
|
||||
@@ -385,7 +385,7 @@ struct boss_tinheadAI : public ScriptedAI
|
||||
RustCount = 0;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* who)
|
||||
void EnterCombat(Unit* /*who*/)
|
||||
{
|
||||
DoScriptText(SAY_TINHEAD_AGGRO, me);
|
||||
}
|
||||
@@ -411,7 +411,7 @@ struct boss_tinheadAI : public ScriptedAI
|
||||
ScriptedAI::MoveInLineOfSight(who);
|
||||
}
|
||||
|
||||
void JustDied(Unit* killer)
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
DoScriptText(SAY_TINHEAD_DEATH, me);
|
||||
|
||||
@@ -419,7 +419,7 @@ struct boss_tinheadAI : public ScriptedAI
|
||||
SummonCroneIfReady(pInstance, me);
|
||||
}
|
||||
|
||||
void KilledUnit(Unit* victim)
|
||||
void KilledUnit(Unit* /*victim*/)
|
||||
{
|
||||
DoScriptText(SAY_TINHEAD_SLAY, me);
|
||||
}
|
||||
@@ -497,7 +497,7 @@ struct boss_roarAI : public ScriptedAI
|
||||
ScriptedAI::AttackStart(who);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* who)
|
||||
void EnterCombat(Unit* /*who*/)
|
||||
{
|
||||
DoScriptText(SAY_ROAR_AGGRO, me);
|
||||
}
|
||||
@@ -507,7 +507,7 @@ struct boss_roarAI : public ScriptedAI
|
||||
me->ForcedDespawn();
|
||||
}
|
||||
|
||||
void JustDied(Unit* killer)
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
DoScriptText(SAY_ROAR_DEATH, me);
|
||||
|
||||
@@ -515,7 +515,7 @@ struct boss_roarAI : public ScriptedAI
|
||||
SummonCroneIfReady(pInstance, me);
|
||||
}
|
||||
|
||||
void KilledUnit(Unit* victim)
|
||||
void KilledUnit(Unit* /*victim*/)
|
||||
{
|
||||
DoScriptText(SAY_ROAR_SLAY, me);
|
||||
}
|
||||
@@ -579,14 +579,14 @@ struct boss_croneAI : public ScriptedAI
|
||||
me->ForcedDespawn();
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* who)
|
||||
void EnterCombat(Unit* /*who*/)
|
||||
{
|
||||
DoScriptText(RAND(SAY_CRONE_AGGRO,SAY_CRONE_AGGRO2), me);
|
||||
me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
|
||||
me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_OOC_NOT_ATTACKABLE);
|
||||
}
|
||||
|
||||
void JustDied(Unit* killer)
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
DoScriptText(SAY_CRONE_DEATH, me);
|
||||
|
||||
@@ -637,9 +637,9 @@ struct mob_cycloneAI : public ScriptedAI
|
||||
MoveTimer = 1000;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* who) {}
|
||||
void EnterCombat(Unit* /*who*/) {}
|
||||
|
||||
void MoveInLineOfSight(Unit* who)
|
||||
void MoveInLineOfSight(Unit* /*who*/)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -721,7 +721,7 @@ bool GossipHello_npc_grandmother(Player* pPlayer, Creature* pCreature)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GossipSelect_npc_grandmother(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
|
||||
bool GossipSelect_npc_grandmother(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
if (uiAction == GOSSIP_ACTION_INFO_DEF)
|
||||
{
|
||||
@@ -764,7 +764,7 @@ struct boss_bigbadwolfAI : public ScriptedAI
|
||||
IsChasing = false;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* who)
|
||||
void EnterCombat(Unit* /*who*/)
|
||||
{
|
||||
DoScriptText(SAY_WOLF_AGGRO, me);
|
||||
}
|
||||
@@ -774,7 +774,7 @@ struct boss_bigbadwolfAI : public ScriptedAI
|
||||
me->ForcedDespawn();
|
||||
}
|
||||
|
||||
void JustDied(Unit* killer)
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
DoPlaySoundToSet(me, SOUND_WOLF_DEATH);
|
||||
|
||||
@@ -981,7 +981,7 @@ struct boss_julianneAI : public ScriptedAI
|
||||
RomuloDead = false;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* who) {}
|
||||
void EnterCombat(Unit* /*who*/) {}
|
||||
|
||||
void AttackStart(Unit* who)
|
||||
{
|
||||
@@ -1004,7 +1004,7 @@ struct boss_julianneAI : public ScriptedAI
|
||||
me->ForcedDespawn();
|
||||
}
|
||||
|
||||
void SpellHit(Unit* caster, const SpellEntry *Spell)
|
||||
void SpellHit(Unit* /*caster*/, const SpellEntry *Spell)
|
||||
{
|
||||
if (Spell->Id == SPELL_DRINK_POISON)
|
||||
{
|
||||
@@ -1015,7 +1015,7 @@ struct boss_julianneAI : public ScriptedAI
|
||||
|
||||
void DamageTaken(Unit* done_by, uint32 &damage);
|
||||
|
||||
void JustDied(Unit* killer)
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
DoScriptText(SAY_JULIANNE_DEATH02, me);
|
||||
|
||||
@@ -1029,7 +1029,7 @@ struct boss_julianneAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void KilledUnit(Unit* victim)
|
||||
void KilledUnit(Unit* /*victim*/)
|
||||
{
|
||||
DoScriptText(SAY_JULIANNE_SLAY, me);
|
||||
}
|
||||
@@ -1084,7 +1084,7 @@ struct boss_romuloAI : public ScriptedAI
|
||||
|
||||
void DamageTaken(Unit* done_by, uint32 &damage);
|
||||
|
||||
void EnterCombat(Unit* who)
|
||||
void EnterCombat(Unit* /*who*/)
|
||||
{
|
||||
DoScriptText(SAY_ROMULO_AGGRO, me);
|
||||
if (JulianneGUID)
|
||||
@@ -1106,7 +1106,7 @@ struct boss_romuloAI : public ScriptedAI
|
||||
ScriptedAI::MoveInLineOfSight(who);
|
||||
}
|
||||
|
||||
void JustDied(Unit* killer)
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
DoScriptText(SAY_ROMULO_DEATH, me);
|
||||
|
||||
@@ -1121,7 +1121,7 @@ struct boss_romuloAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void KilledUnit(Unit* victim)
|
||||
void KilledUnit(Unit* /*victim*/)
|
||||
{
|
||||
DoScriptText(SAY_ROMULO_SLAY, me);
|
||||
}
|
||||
@@ -1129,7 +1129,7 @@ struct boss_romuloAI : public ScriptedAI
|
||||
void UpdateAI(const uint32 diff);
|
||||
};
|
||||
|
||||
void boss_julianneAI::DamageTaken(Unit* done_by, uint32 &damage)
|
||||
void boss_julianneAI::DamageTaken(Unit* /*done_by*/, uint32 &damage)
|
||||
{
|
||||
if (damage < me->GetHealth())
|
||||
return;
|
||||
@@ -1191,7 +1191,7 @@ void boss_julianneAI::DamageTaken(Unit* done_by, uint32 &damage)
|
||||
error_log("TSCR: boss_julianneAI: DamageTaken reach end of code, that should not happen.");
|
||||
}
|
||||
|
||||
void boss_romuloAI::DamageTaken(Unit* done_by, uint32 &damage)
|
||||
void boss_romuloAI::DamageTaken(Unit* /*done_by*/, uint32 &damage)
|
||||
{
|
||||
if (damage < me->GetHealth())
|
||||
return;
|
||||
|
||||
@@ -104,7 +104,7 @@ struct instance_karazhan : public ScriptedInstance
|
||||
return false;
|
||||
}
|
||||
|
||||
void OnCreatureCreate(Creature* pCreature, bool add)
|
||||
void OnCreatureCreate(Creature* pCreature, bool /*add*/)
|
||||
{
|
||||
switch (pCreature->GetEntry())
|
||||
{
|
||||
@@ -174,7 +174,7 @@ struct instance_karazhan : public ScriptedInstance
|
||||
}
|
||||
}
|
||||
|
||||
void OnGameObjectCreate(GameObject* pGo, bool add)
|
||||
void OnGameObjectCreate(GameObject* pGo, bool /*add*/)
|
||||
{
|
||||
switch(pGo->GetEntry())
|
||||
{
|
||||
|
||||
@@ -149,7 +149,7 @@ struct npc_barnesAI : public npc_escortAI
|
||||
Start(false, false);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* who) {}
|
||||
void EnterCombat(Unit* /*who*/) {}
|
||||
|
||||
void WaypointReached(uint32 i)
|
||||
{
|
||||
@@ -354,7 +354,7 @@ bool GossipHello_npc_barnes(Player* pPlayer, Creature* pCreature)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GossipSelect_npc_barnes(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
|
||||
bool GossipSelect_npc_barnes(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
npc_barnesAI* pBarnesAI = CAST_AI(npc_barnesAI, pCreature->AI());
|
||||
|
||||
@@ -412,7 +412,7 @@ bool GossipHello_npc_berthold(Player* pPlayer, Creature* pCreature)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GossipSelect_npc_berthold(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
|
||||
bool GossipSelect_npc_berthold(Player* pPlayer, Creature* /*pCreature*/, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
if (uiAction == GOSSIP_ACTION_INFO_DEF + 1)
|
||||
pPlayer->CastSpell(pPlayer, SPELL_TELEPORT, true);
|
||||
@@ -477,7 +477,7 @@ struct npc_image_of_medivhAI : public ScriptedAI
|
||||
me->RemoveCorpse();
|
||||
}
|
||||
}
|
||||
void EnterCombat(Unit* who){}
|
||||
void EnterCombat(Unit* /*who*/) {}
|
||||
|
||||
void MovementInform(uint32 type, uint32 id)
|
||||
{
|
||||
|
||||
@@ -53,7 +53,7 @@ bool GossipHello_npc_mountaineer_pebblebitty(Player* pPlayer, Creature* pCreatur
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GossipSelect_npc_mountaineer_pebblebitty(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
|
||||
bool GossipSelect_npc_mountaineer_pebblebitty(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
switch (uiAction)
|
||||
{
|
||||
|
||||
@@ -135,7 +135,7 @@ struct boss_felblood_kaelthasAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void JustDied(Unit *killer)
|
||||
void JustDied(Unit * /*killer*/)
|
||||
{
|
||||
DoScriptText(SAY_DEATH, me);
|
||||
|
||||
@@ -146,13 +146,13 @@ struct boss_felblood_kaelthasAI : public ScriptedAI
|
||||
// Open the encounter door
|
||||
}
|
||||
|
||||
void DamageTaken(Unit* done_by, uint32 &damage)
|
||||
void DamageTaken(Unit* /*done_by*/, uint32 &damage)
|
||||
{
|
||||
if (damage > me->GetHealth())
|
||||
RemoveGravityLapse(); // Remove Gravity Lapse so that players fall to ground if they kill him when in air.
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
if (!pInstance)
|
||||
return;
|
||||
@@ -433,8 +433,8 @@ struct mob_felkael_flamestrikeAI : public ScriptedAI
|
||||
DoCast(me, SPELL_FLAMESTRIKE2, true);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who) {}
|
||||
void MoveInLineOfSight(Unit *who) {}
|
||||
void EnterCombat(Unit * /*who*/) {}
|
||||
void MoveInLineOfSight(Unit * /*who*/) {}
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
if (FlameStrikeTimer <= diff)
|
||||
@@ -469,9 +469,9 @@ struct mob_felkael_phoenixAI : public ScriptedAI
|
||||
FakeDeath = false;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* who) {}
|
||||
void EnterCombat(Unit* /*who*/) {}
|
||||
|
||||
void DamageTaken(Unit* pKiller, uint32 &damage)
|
||||
void DamageTaken(Unit* /*pKiller*/, uint32 &damage)
|
||||
{
|
||||
if (damage < me->GetHealth())
|
||||
return;
|
||||
@@ -508,7 +508,7 @@ struct mob_felkael_phoenixAI : public ScriptedAI
|
||||
|
||||
}
|
||||
|
||||
void JustDied(Unit* slayer)
|
||||
void JustDied(Unit* /*slayer*/)
|
||||
{
|
||||
me->SummonCreature(CREATURE_PHOENIX_EGG, 0.0f, 0.0f, 0.0f, 0.0f, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 45000);
|
||||
}
|
||||
@@ -564,8 +564,8 @@ struct mob_felkael_phoenix_eggAI : public ScriptedAI
|
||||
HatchTimer = 10000;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* who) {}
|
||||
void MoveInLineOfSight(Unit* who) {}
|
||||
void EnterCombat(Unit* /*who*/) {}
|
||||
void MoveInLineOfSight(Unit* /*who*/) {}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
@@ -596,7 +596,7 @@ struct mob_arcane_sphereAI : public ScriptedAI
|
||||
DoCast(me, SPELL_ARCANE_SPHERE_PASSIVE, true);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* who) {}
|
||||
void EnterCombat(Unit* /*who*/) {}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
|
||||
@@ -208,7 +208,7 @@ struct boss_priestess_delrissaAI : public ScriptedAI
|
||||
++PlayersKilled;
|
||||
}
|
||||
|
||||
void JustDied(Unit* killer)
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
DoScriptText(SAY_DEATH, me);
|
||||
|
||||
@@ -396,7 +396,7 @@ struct boss_priestess_lackey_commonAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void JustDied(Unit* killer)
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
if (!pInstance)
|
||||
return;
|
||||
@@ -595,7 +595,7 @@ struct boss_ellris_duskhallowAI : public boss_priestess_lackey_commonAI
|
||||
boss_priestess_lackey_commonAI::Reset();
|
||||
}
|
||||
|
||||
void Aggro(Unit* pWho)
|
||||
void Aggro(Unit* /*pWho*/)
|
||||
{
|
||||
DoCast(me, SPELL_SUMMON_IMP);
|
||||
}
|
||||
@@ -861,7 +861,7 @@ struct boss_warlord_salarisAI : public boss_priestess_lackey_commonAI
|
||||
boss_priestess_lackey_commonAI::Reset();
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* who)
|
||||
void EnterCombat(Unit* /*who*/)
|
||||
{
|
||||
DoCast(me, SPELL_BATTLE_SHOUT);
|
||||
}
|
||||
@@ -1247,7 +1247,7 @@ CreatureAI* GetAI_zelfan(Creature* pCreature)
|
||||
//
|
||||
// void JustDied(Unit *Killer){}
|
||||
//
|
||||
// void EnterCombat(Unit *who){}
|
||||
// void EnterCombat(Unit * /*who*/){}
|
||||
//
|
||||
// void UpdateAI(const uint32 diff)
|
||||
// {
|
||||
|
||||
@@ -127,7 +127,7 @@ struct boss_selin_fireheartAI : public ScriptedAI
|
||||
if (Crystals.empty())
|
||||
return;
|
||||
|
||||
float ShortestDistance = 0;
|
||||
//float ShortestDistance = 0;
|
||||
CrystalGUID = 0;
|
||||
Unit* pCrystal = NULL;
|
||||
Unit* CrystalChosen = NULL;
|
||||
@@ -178,7 +178,7 @@ struct boss_selin_fireheartAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* who)
|
||||
void EnterCombat(Unit* /*who*/)
|
||||
{
|
||||
DoScriptText(SAY_AGGRO, me);
|
||||
|
||||
@@ -187,7 +187,7 @@ struct boss_selin_fireheartAI : public ScriptedAI
|
||||
//Close the encounter door, open it in JustDied/Reset
|
||||
}
|
||||
|
||||
void KilledUnit(Unit* victim)
|
||||
void KilledUnit(Unit* /*victim*/)
|
||||
{
|
||||
DoScriptText(RAND(SAY_KILL_1,SAY_KILL_2), me);
|
||||
}
|
||||
@@ -214,7 +214,7 @@ struct boss_selin_fireheartAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void JustDied(Unit* killer)
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
DoScriptText(SAY_DEATH, me);
|
||||
|
||||
@@ -315,12 +315,12 @@ struct mob_fel_crystalAI : public ScriptedAI
|
||||
mob_fel_crystalAI(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*/) {}
|
||||
|
||||
void JustDied(Unit* killer)
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
if (ScriptedInstance* pInstance = me->GetInstanceData())
|
||||
{
|
||||
|
||||
@@ -84,18 +84,18 @@ struct boss_vexallusAI : public ScriptedAI
|
||||
pInstance->SetData(DATA_VEXALLUS_EVENT, NOT_STARTED);
|
||||
}
|
||||
|
||||
void KilledUnit(Unit *victim)
|
||||
void KilledUnit(Unit * /*victim*/)
|
||||
{
|
||||
DoScriptText(SAY_KILL, me);
|
||||
}
|
||||
|
||||
void JustDied(Unit *victim)
|
||||
void JustDied(Unit * /*victim*/)
|
||||
{
|
||||
if (pInstance)
|
||||
pInstance->SetData(DATA_VEXALLUS_EVENT, DONE);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
DoScriptText(SAY_AGGRO, me);
|
||||
|
||||
@@ -200,9 +200,9 @@ struct mob_pure_energyAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who) {}
|
||||
void MoveInLineOfSight(Unit *who) {}
|
||||
void AttackStart(Unit *who) {}
|
||||
void EnterCombat(Unit * /*who*/) {}
|
||||
void MoveInLineOfSight(Unit * /*who*/) {}
|
||||
void AttackStart(Unit * /*who*/) {}
|
||||
};
|
||||
|
||||
CreatureAI* GetAI_mob_pure_energy(Creature* pCreature)
|
||||
|
||||
@@ -125,7 +125,7 @@ struct instance_magisters_terrace : public ScriptedInstance
|
||||
}
|
||||
}
|
||||
|
||||
void OnCreatureCreate(Creature* pCreature, bool add)
|
||||
void OnCreatureCreate(Creature* pCreature, bool /*add*/)
|
||||
{
|
||||
switch(pCreature->GetEntry())
|
||||
{
|
||||
@@ -135,7 +135,7 @@ struct instance_magisters_terrace : public ScriptedInstance
|
||||
}
|
||||
}
|
||||
|
||||
void OnGameObjectCreate(GameObject* pGo, bool add)
|
||||
void OnGameObjectCreate(GameObject* pGo, bool /*add*/)
|
||||
{
|
||||
switch(pGo->GetEntry())
|
||||
{
|
||||
|
||||
@@ -133,7 +133,7 @@ bool GossipHello_npc_kalecgos(Player* pPlayer, Creature* pCreature)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GossipSelect_npc_kalecgos(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
|
||||
bool GossipSelect_npc_kalecgos(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
switch(uiAction)
|
||||
{
|
||||
|
||||
@@ -45,7 +45,7 @@ struct boss_baron_geddonAI : public ScriptedAI
|
||||
LivingBomb_Timer = 35000;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ struct boss_garrAI : public ScriptedAI
|
||||
CheckAdds_Timer = 2000;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -87,7 +87,7 @@ struct mob_fireswornAI : public ScriptedAI
|
||||
Immolate_Timer = 4000; //These times are probably wrong
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ struct boss_gehennasAI : public ScriptedAI
|
||||
GehennasCurse_Timer = 12000;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who) {}
|
||||
void EnterCombat(Unit * /*who*/) {}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
|
||||
@@ -61,7 +61,7 @@ struct boss_golemaggAI : public ScriptedAI
|
||||
DoCast(me, SPELL_MAGMASPLASH, true);
|
||||
}
|
||||
|
||||
void JustDied(Unit* pKiller)
|
||||
void JustDied(Unit* /*pKiller*/)
|
||||
{
|
||||
if (m_pInstance)
|
||||
m_pInstance->SetData(DATA_GOLEMAGG_DEATH, 0);
|
||||
@@ -133,7 +133,7 @@ struct mob_core_ragerAI : public ScriptedAI
|
||||
m_uiMangleTimer = 7*IN_MILISECONDS; // These times are probably wrong
|
||||
}
|
||||
|
||||
void DamageTaken(Unit* pDoneBy, uint32& uiDamage)
|
||||
void DamageTaken(Unit* /*pDoneBy*/, uint32& uiDamage)
|
||||
{
|
||||
if (me->GetHealth()*100 < me->GetMaxHealth()*50)
|
||||
{
|
||||
|
||||
@@ -42,7 +42,7 @@ struct boss_lucifronAI : public ScriptedAI
|
||||
ShadowShock_Timer = 6000; //6 seconds
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ struct boss_magmadarAI : public ScriptedAI
|
||||
DoCast(me, SPELL_MAGMASPIT, true);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ struct boss_majordomoAI : public ScriptedAI
|
||||
Blastwave_Timer = 10000;
|
||||
}
|
||||
|
||||
void KilledUnit(Unit* victim)
|
||||
void KilledUnit(Unit* /*victim*/)
|
||||
{
|
||||
if (rand()%5)
|
||||
return;
|
||||
@@ -74,7 +74,7 @@ struct boss_majordomoAI : public ScriptedAI
|
||||
DoScriptText(SAY_SLAY, me);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
DoScriptText(SAY_AGGRO, me);
|
||||
}
|
||||
|
||||
@@ -122,7 +122,7 @@ struct boss_ragnarosAI : public ScriptedAI
|
||||
HasAura = true;
|
||||
}
|
||||
|
||||
void KilledUnit(Unit* victim)
|
||||
void KilledUnit(Unit* /*victim*/)
|
||||
{
|
||||
if (rand()%5)
|
||||
return;
|
||||
@@ -130,7 +130,7 @@ struct boss_ragnarosAI : public ScriptedAI
|
||||
DoScriptText(SAY_KILL, me);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ struct boss_shazzrahAI : public ScriptedAI
|
||||
Blink_Timer = 30000;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ struct boss_sulfuronAI : public ScriptedAI
|
||||
Flamespear_Timer = 2000;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -133,7 +133,7 @@ struct mob_flamewaker_priestAI : public ScriptedAI
|
||||
Immolate_Timer = 8000;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@ struct instance_molten_core : public ScriptedInstance
|
||||
return false;
|
||||
};
|
||||
|
||||
void OnGameObjectCreate(GameObject* pGo, bool add)
|
||||
void OnGameObjectCreate(GameObject* pGo, bool /*add*/)
|
||||
{
|
||||
switch(pGo->GetEntry())
|
||||
{
|
||||
@@ -124,7 +124,7 @@ struct instance_molten_core : public ScriptedInstance
|
||||
}
|
||||
}
|
||||
|
||||
void OnCreatureCreate(Creature* pCreature, bool add)
|
||||
void OnCreatureCreate(Creature* pCreature, bool /*add*/)
|
||||
{
|
||||
switch (pCreature->GetEntry())
|
||||
{
|
||||
@@ -243,7 +243,7 @@ struct instance_molten_core : public ScriptedInstance
|
||||
return 0;
|
||||
}
|
||||
|
||||
void SetData(uint32 type, uint32 data)
|
||||
void SetData(uint32 type, uint32 /*data*/)
|
||||
{
|
||||
if (type == DATA_GOLEMAGG_DEATH)
|
||||
IsBossDied[7] = true;
|
||||
|
||||
@@ -121,7 +121,7 @@ struct npc_unworthy_initiateAI : public ScriptedAI
|
||||
me->LoadEquipment(0, true);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
events.ScheduleEvent(EVENT_ICY_TOUCH, 1000, GCD_CAST);
|
||||
events.ScheduleEvent(EVENT_PLAGUE_STRIKE, 3000, GCD_CAST);
|
||||
@@ -176,13 +176,13 @@ struct npc_unworthy_initiate_anchorAI : public PassiveAI
|
||||
|
||||
uint64 prisonerGUID;
|
||||
|
||||
void SetGUID(const uint64 &guid, int32 id)
|
||||
void SetGUID(const uint64 &guid, int32 /*id*/)
|
||||
{
|
||||
if (!prisonerGUID)
|
||||
prisonerGUID = guid;
|
||||
}
|
||||
|
||||
uint64 GetGUID(int32 id) { return prisonerGUID; }
|
||||
uint64 GetGUID(int32 /*id*/) { return prisonerGUID; }
|
||||
};
|
||||
|
||||
void npc_unworthy_initiateAI::UpdateAI(const uint32 diff)
|
||||
@@ -458,7 +458,7 @@ bool GossipHello_npc_death_knight_initiate(Player* pPlayer, Creature* pCreature)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GossipSelect_npc_death_knight_initiate(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
|
||||
bool GossipSelect_npc_death_knight_initiate(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
if (uiAction == GOSSIP_ACTION_INFO_DEF)
|
||||
{
|
||||
@@ -640,7 +640,7 @@ struct npc_ros_dark_riderAI : public ScriptedAI
|
||||
{
|
||||
npc_ros_dark_riderAI(Creature *c) : ScriptedAI(c) {}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
me->ExitVehicle();
|
||||
}
|
||||
@@ -748,7 +748,7 @@ struct npc_scarlet_ghoulAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
void UpdateAI(const uint32 /*diff*/)
|
||||
{
|
||||
if (!me->isInCombat())
|
||||
{
|
||||
@@ -810,12 +810,12 @@ struct npc_scarlet_miner_cartAI : public PassiveAI
|
||||
|
||||
uint64 minerGUID;
|
||||
|
||||
void SetGUID(const uint64 &guid, int32 id)
|
||||
void SetGUID(const uint64 &guid, int32 /*id*/)
|
||||
{
|
||||
minerGUID = guid;
|
||||
}
|
||||
|
||||
void DoAction(const int32 param)
|
||||
void DoAction(const int32 /*param*/)
|
||||
{
|
||||
if (Creature *miner = Unit::GetCreature(*me, minerGUID))
|
||||
{
|
||||
@@ -827,7 +827,7 @@ struct npc_scarlet_miner_cartAI : public PassiveAI
|
||||
}
|
||||
}
|
||||
|
||||
void PassengerBoarded(Unit *who, int8 seatId, bool apply)
|
||||
void PassengerBoarded(Unit * /*who*/, int8 /*seatId*/, bool apply)
|
||||
{
|
||||
if (!apply)
|
||||
if (Creature *miner = Unit::GetCreature(*me, minerGUID))
|
||||
@@ -975,7 +975,7 @@ CreatureAI* GetAI_npc_scarlet_miner(Creature *_Creature)
|
||||
|
||||
#define SPELL_CART_SUMM 52463
|
||||
|
||||
bool GOHello_go_inconspicuous_mine_car(Player* pPlayer, GameObject* pGO)
|
||||
bool GOHello_go_inconspicuous_mine_car(Player* pPlayer, GameObject* /*pGO*/)
|
||||
{
|
||||
if (pPlayer->GetQuestStatus(12701) == QUEST_STATUS_INCOMPLETE)
|
||||
{
|
||||
|
||||
@@ -352,7 +352,7 @@ struct mob_scarlet_courierAI : public ScriptedAI
|
||||
uiStage_timer = 3000;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
DoScriptText(SAY_TREE2, me);
|
||||
me->Unmount();
|
||||
|
||||
@@ -507,7 +507,7 @@ struct npc_highlord_darion_mograineAI : public npc_escortAI
|
||||
break;
|
||||
case 3:
|
||||
{
|
||||
Unit* pTirion = Unit::GetCreature(*me, uiTirionGUID);
|
||||
//Unit* pTirion = Unit::GetCreature(*me, uiTirionGUID);
|
||||
|
||||
DoScriptText(EMOTE_LIGHT_OF_DAWN05, me);
|
||||
if (me->HasAura(SPELL_THE_LIGHT_OF_DAWN, 0))
|
||||
@@ -963,7 +963,9 @@ struct npc_highlord_darion_mograineAI : public npc_escortAI
|
||||
|
||||
case 42: // Maxwell yells for attack
|
||||
{
|
||||
float fLichPositionX, fLichPositionY, fLichPositionZ;
|
||||
float fLichPositionX = 0,
|
||||
fLichPositionY = 0,
|
||||
fLichPositionZ = 0;
|
||||
if (Creature* pTemp = Unit::GetCreature(*me, uiLichKingGUID))
|
||||
{
|
||||
fLichPositionX = pTemp->GetPositionX();
|
||||
@@ -1619,7 +1621,7 @@ bool GossipHello_npc_highlord_darion_mograine(Player* pPlayer, Creature* pCreatu
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GossipSelect_npc_highlord_darion_mograine(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
|
||||
bool GossipSelect_npc_highlord_darion_mograine(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
switch (uiAction)
|
||||
{
|
||||
@@ -1639,9 +1641,9 @@ struct npc_the_lich_king_tirion_dawnAI : public ScriptedAI
|
||||
{
|
||||
npc_the_lich_king_tirion_dawnAI(Creature* pCreature) : ScriptedAI(pCreature) { Reset(); }
|
||||
void Reset() {}
|
||||
void AttackStart(Unit *who) { return; } // very sample, just don't make them aggreesive
|
||||
void UpdateAI(const uint32 diff) { return; }
|
||||
void JustDied(Unit* killer) {}
|
||||
void AttackStart(Unit * /*who*/) {} // very sample, just don't make them aggreesive
|
||||
void UpdateAI(const uint32 /*diff*/) {}
|
||||
void JustDied(Unit* /*killer*/) {}
|
||||
};
|
||||
|
||||
CreatureAI* GetAI_npc_highlord_darion_mograine(Creature* pCreature)
|
||||
|
||||
@@ -54,7 +54,7 @@ struct boss_arcanist_doanAI : public ScriptedAI
|
||||
bShielded = false;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
DoScriptText(SAY_AGGRO, me);
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ struct boss_azshir_the_sleeplessAI : public ScriptedAI
|
||||
Terrify_Timer = 20000;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -54,12 +54,12 @@ struct boss_bloodmage_thalnosAI : public ScriptedAI
|
||||
FireNova_Timer = 40000;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
DoScriptText(SAY_AGGRO, me);
|
||||
}
|
||||
|
||||
void KilledUnit(Unit* Victim)
|
||||
void KilledUnit(Unit* /*Victim*/)
|
||||
{
|
||||
DoScriptText(SAY_KILL, me);
|
||||
}
|
||||
|
||||
@@ -150,7 +150,7 @@ struct mob_wisp_invisAI : public ScriptedAI
|
||||
uint32 spell;
|
||||
uint32 spell2;
|
||||
void Reset(){}
|
||||
void EnterCombat(Unit *who){}
|
||||
void EnterCombat(Unit * /*who*/){}
|
||||
void SetType(uint32 _type)
|
||||
{
|
||||
switch(Creaturetype = _type)
|
||||
@@ -176,7 +176,7 @@ struct mob_wisp_invisAI : public ScriptedAI
|
||||
DoCast(me, spell);
|
||||
}
|
||||
|
||||
void SpellHit(Unit* caster, const SpellEntry *spell)
|
||||
void SpellHit(Unit* /*caster*/, const SpellEntry *spell)
|
||||
{
|
||||
if (spell->Id == SPELL_WISP_FLIGHT_PORT && Creaturetype == 4)
|
||||
me->SetDisplayId(2027);
|
||||
@@ -229,7 +229,7 @@ struct mob_headAI : public ScriptedAI
|
||||
laugh = urand(15000,30000);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who) {}
|
||||
void EnterCombat(Unit * /*who*/) {}
|
||||
void SaySound(int32 textEntry, Unit *pTarget = 0)
|
||||
{
|
||||
DoScriptText(textEntry, me, pTarget);
|
||||
@@ -240,7 +240,7 @@ struct mob_headAI : public ScriptedAI
|
||||
laugh += 3000;
|
||||
}
|
||||
|
||||
void DamageTaken(Unit* done_by,uint32 &damage)
|
||||
void DamageTaken(Unit* /*done_by*/,uint32 &damage)
|
||||
{
|
||||
if (withbody)
|
||||
return;
|
||||
@@ -464,7 +464,7 @@ struct boss_headless_horsemanAI : public ScriptedAI
|
||||
++id;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
if (pInstance)
|
||||
pInstance->SetData(DATA_HORSEMAN_EVENT, IN_PROGRESS);
|
||||
@@ -526,7 +526,7 @@ struct boss_headless_horsemanAI : public ScriptedAI
|
||||
SaySound(SAY_CONFLAGRATION,unit);
|
||||
}
|
||||
|
||||
void JustDied(Unit* killer)
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
me->StopMoving();
|
||||
//me->GetMotionMaster()->MoveIdle();
|
||||
@@ -776,9 +776,9 @@ struct mob_pulsing_pumpkinAI : public ScriptedAI
|
||||
me->SetFlag(UNIT_FIELD_FLAGS,UNIT_FLAG_STUNNED);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who){}
|
||||
void EnterCombat(Unit * /*who*/){}
|
||||
|
||||
void SpellHit(Unit *caster, const SpellEntry *spell)
|
||||
void SpellHit(Unit * /*caster*/, const SpellEntry *spell)
|
||||
{
|
||||
if (spell->Id == SPELL_SPROUTING)
|
||||
{
|
||||
@@ -800,7 +800,7 @@ struct mob_pulsing_pumpkinAI : public ScriptedAI
|
||||
debuffGUID = 0;
|
||||
}
|
||||
|
||||
void JustDied(Unit *killer) { if (!sprouted) Despawn(); }
|
||||
void JustDied(Unit * /*killer*/) { if (!sprouted) Despawn(); }
|
||||
|
||||
void MoveInLineOfSight(Unit *who)
|
||||
{
|
||||
@@ -812,7 +812,7 @@ struct mob_pulsing_pumpkinAI : public ScriptedAI
|
||||
DoStartMovement(who);
|
||||
}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
void UpdateAI(const uint32 /*diff*/)
|
||||
{
|
||||
if (sprouted && UpdateVictim())
|
||||
DoMeleeAttackIfReady();
|
||||
|
||||
@@ -54,18 +54,18 @@ struct boss_herodAI : public ScriptedAI
|
||||
Whirlwind_Timer = 60000;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
DoScriptText(SAY_AGGRO, me);
|
||||
DoCast(me, SPELL_RUSHINGCHARGE);
|
||||
}
|
||||
|
||||
void KilledUnit(Unit *victim)
|
||||
void KilledUnit(Unit * /*victim*/)
|
||||
{
|
||||
DoScriptText(SAY_KILL, me);
|
||||
}
|
||||
|
||||
void JustDied(Unit* killer)
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
for (uint8 i = 0; i < 20; ++i)
|
||||
me->SummonCreature(ENTRY_SCARLET_TRAINEE, 1939.18, -431.58, 17.09, 6.22, TEMPSUMMON_TIMED_OR_DEAD_DESPAWN, 600000);
|
||||
@@ -119,8 +119,8 @@ struct mob_scarlet_traineeAI : public npc_escortAI
|
||||
uint32 Start_Timer;
|
||||
|
||||
void Reset() {}
|
||||
void WaypointReached(uint32 uiPoint) {}
|
||||
void EnterCombat(Unit* who) {}
|
||||
void WaypointReached(uint32 /*uiPoint*/) {}
|
||||
void EnterCombat(Unit* /*who*/) {}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
|
||||
@@ -56,7 +56,7 @@ struct boss_high_inquisitor_fairbanksAI : public ScriptedAI
|
||||
PowerWordShield = false;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ struct boss_houndmaster_lokseyAI : public ScriptedAI
|
||||
BloodLust_Timer = 20000;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
DoScriptText(SAY_AGGRO, me);
|
||||
}
|
||||
|
||||
@@ -53,17 +53,17 @@ struct boss_interrogator_vishasAI : public ScriptedAI
|
||||
ShadowWordPain_Timer = 5000;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
DoScriptText(SAY_AGGRO, me);
|
||||
}
|
||||
|
||||
void KilledUnit(Unit* Victim)
|
||||
void KilledUnit(Unit* /*Victim*/)
|
||||
{
|
||||
DoScriptText(SAY_KILL, me);
|
||||
}
|
||||
|
||||
void JustDied(Unit* Killer)
|
||||
void JustDied(Unit* /*Killer*/)
|
||||
{
|
||||
if (!pInstance)
|
||||
return;
|
||||
|
||||
@@ -95,7 +95,7 @@ struct boss_scarlet_commander_mograineAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* pWho)
|
||||
void EnterCombat(Unit* /*pWho*/)
|
||||
{
|
||||
DoScriptText(SAY_MO_AGGRO, me);
|
||||
DoCast(me, SPELL_RETRIBUTIONAURA);
|
||||
@@ -103,12 +103,12 @@ struct boss_scarlet_commander_mograineAI : public ScriptedAI
|
||||
me->CallForHelp(VISIBLE_RANGE);
|
||||
}
|
||||
|
||||
void KilledUnit(Unit* pVictim)
|
||||
void KilledUnit(Unit* /*pVictim*/)
|
||||
{
|
||||
DoScriptText(SAY_MO_KILL, me);
|
||||
}
|
||||
|
||||
void DamageTaken(Unit* pDoneBy, uint32 &uiDamage)
|
||||
void DamageTaken(Unit* /*pDoneBy*/, uint32 &uiDamage)
|
||||
{
|
||||
if (uiDamage < me->GetHealth() || m_bHasDied || m_bFakeDeath)
|
||||
return;
|
||||
@@ -145,7 +145,7 @@ struct boss_scarlet_commander_mograineAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void SpellHit(Unit* pWho, const SpellEntry* pSpell)
|
||||
void SpellHit(Unit* /*pWho*/, const SpellEntry* pSpell)
|
||||
{
|
||||
//When hit with ressurection say text
|
||||
if (pSpell->Id == SPELL_SCARLETRESURRECTION)
|
||||
@@ -244,12 +244,12 @@ struct boss_high_inquisitor_whitemaneAI : public ScriptedAI
|
||||
ScriptedAI::AttackStart(pWho);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* pWho)
|
||||
void EnterCombat(Unit* /*pWho*/)
|
||||
{
|
||||
DoScriptText(SAY_WH_INTRO, me);
|
||||
}
|
||||
|
||||
void KilledUnit(Unit* pVictim)
|
||||
void KilledUnit(Unit* /*pVictim*/)
|
||||
{
|
||||
DoScriptText(SAY_WH_KILL, me);
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ struct boss_scornAI : public ScriptedAI
|
||||
FrostNova_Timer = 30000;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user