Remove LOTS of compile warnings
--HG-- branch : trunk
This commit is contained in:
@@ -74,7 +74,7 @@ enum eCoilfangGOs
|
||||
GO_COILFANG_WATERFALL = 184212
|
||||
};
|
||||
|
||||
bool AreaTrigger_at_coilfang_waterfall(Player *pPlayer, const AreaTriggerEntry *pAt)
|
||||
bool AreaTrigger_at_coilfang_waterfall(Player *pPlayer, const AreaTriggerEntry * /*pAt*/)
|
||||
{
|
||||
if (GameObject* pGo = GetClosestGameObjectWithEntry(pPlayer, GO_COILFANG_WATERFALL, 35.0f))
|
||||
if (pGo->getLootState() == GO_READY)
|
||||
@@ -96,7 +96,7 @@ enum eLegionTeleporter
|
||||
QUEST_GAINING_ACCESS_H = 10604
|
||||
};
|
||||
|
||||
bool AreaTrigger_at_legion_teleporter(Player *pPlayer, const AreaTriggerEntry *pAt)
|
||||
bool AreaTrigger_at_legion_teleporter(Player *pPlayer, const AreaTriggerEntry * /*pAt*/)
|
||||
{
|
||||
if (pPlayer->isAlive() && !pPlayer->isInCombat())
|
||||
{
|
||||
@@ -123,7 +123,7 @@ enum eRavenholdt
|
||||
NPC_RAVENHOLDT = 13936
|
||||
};
|
||||
|
||||
bool AreaTrigger_at_ravenholdt(Player* pPlayer, const AreaTriggerEntry* pAt)
|
||||
bool AreaTrigger_at_ravenholdt(Player* pPlayer, const AreaTriggerEntry* /*pAt*/)
|
||||
{
|
||||
if (pPlayer->GetQuestStatus(QUEST_MANOR_RAVENHOLDT) == QUEST_STATUS_INCOMPLETE)
|
||||
pPlayer->KilledMonsterCredit(NPC_RAVENHOLDT, 0);
|
||||
@@ -173,7 +173,7 @@ enum eStormwrightShelf
|
||||
SPELL_CREATE_TRUE_POWER_OF_THE_TEMPEST = 53067
|
||||
};
|
||||
|
||||
bool AreaTrigger_at_stormwright_shelf(Player* pPlayer, const AreaTriggerEntry* pAt)
|
||||
bool AreaTrigger_at_stormwright_shelf(Player* pPlayer, const AreaTriggerEntry* /*pAt*/)
|
||||
{
|
||||
if (!pPlayer->isDead() && pPlayer->GetQuestStatus(QUEST_STRENGTH_OF_THE_TEMPEST) == QUEST_STATUS_INCOMPLETE)
|
||||
pPlayer->CastSpell(pPlayer, SPELL_CREATE_TRUE_POWER_OF_THE_TEMPEST, false);
|
||||
|
||||
@@ -57,7 +57,7 @@ struct boss_emerissAI : public ScriptedAI
|
||||
m_uiCorruptionsCasted = 0;
|
||||
}
|
||||
|
||||
void Aggro(Unit* pWho)
|
||||
void Aggro(Unit* /*pWho*/)
|
||||
{
|
||||
DoScriptText(SAY_AGGRO, me);
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@ struct boss_taerarAI : public ScriptedAI
|
||||
m_bShades = false;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* pWho)
|
||||
void EnterCombat(Unit* /*pWho*/)
|
||||
{
|
||||
DoScriptText(SAY_AGGRO, me);
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ struct boss_ysondreAI : public ScriptedAI
|
||||
m_uiSummonDruidModifier = 0;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* pWho)
|
||||
void EnterCombat(Unit* /*pWho*/)
|
||||
{
|
||||
DoScriptText(SAY_AGGRO, me);
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ enum eCatFigurine
|
||||
SPELL_SUMMON_GHOST_SABER = 5968,
|
||||
};
|
||||
|
||||
bool GOHello_go_cat_figurine(Player *pPlayer, GameObject *pGO)
|
||||
bool GOHello_go_cat_figurine(Player *pPlayer, GameObject * /*pGO*/)
|
||||
{
|
||||
pPlayer->CastSpell(pPlayer,SPELL_SUMMON_GHOST_SABER,true);
|
||||
return false;
|
||||
@@ -114,7 +114,7 @@ bool GOHello_go_western_crystal_pylon(Player *pPlayer, GameObject *pGO)
|
||||
## go_barov_journal
|
||||
######*/
|
||||
|
||||
bool GOHello_go_barov_journal(Player *pPlayer, GameObject *pGO)
|
||||
bool GOHello_go_barov_journal(Player *pPlayer, GameObject * /*pGO*/)
|
||||
{
|
||||
if (pPlayer->HasSkill(SKILL_TAILORING) && pPlayer->GetBaseSkillValue(SKILL_TAILORING) >= 280 && !pPlayer->HasSpell(26086))
|
||||
{
|
||||
@@ -127,7 +127,7 @@ bool GOHello_go_barov_journal(Player *pPlayer, GameObject *pGO)
|
||||
## go_field_repair_bot_74A
|
||||
######*/
|
||||
|
||||
bool GOHello_go_field_repair_bot_74A(Player *pPlayer, GameObject *pGO)
|
||||
bool GOHello_go_field_repair_bot_74A(Player *pPlayer, GameObject * /*pGO*/)
|
||||
{
|
||||
if (pPlayer->HasSkill(SKILL_ENGINERING) && pPlayer->GetBaseSkillValue(SKILL_ENGINERING) >= 300 && !pPlayer->HasSpell(22704))
|
||||
{
|
||||
@@ -158,7 +158,7 @@ bool GOHello_go_gilded_brazier(Player *pPlayer, GameObject *pGO)
|
||||
## go_orb_of_command
|
||||
######*/
|
||||
|
||||
bool GOHello_go_orb_of_command(Player *pPlayer, GameObject *pGO)
|
||||
bool GOHello_go_orb_of_command(Player *pPlayer, GameObject * /*pGO*/)
|
||||
{
|
||||
if (pPlayer->GetQuestRewardStatus(7761))
|
||||
pPlayer->CastSpell(pPlayer,23460,true);
|
||||
@@ -170,7 +170,7 @@ bool GOHello_go_orb_of_command(Player *pPlayer, GameObject *pGO)
|
||||
## go_tablet_of_madness
|
||||
######*/
|
||||
|
||||
bool GOHello_go_tablet_of_madness(Player *pPlayer, GameObject *pGO)
|
||||
bool GOHello_go_tablet_of_madness(Player *pPlayer, GameObject * /*pGO*/)
|
||||
{
|
||||
if (pPlayer->HasSkill(SKILL_ALCHEMY) && pPlayer->GetSkillValue(SKILL_ALCHEMY) >= 300 && !pPlayer->HasSpell(24266))
|
||||
{
|
||||
@@ -199,7 +199,7 @@ bool GOHello_go_tablet_of_the_seven(Player *pPlayer, GameObject *pGO)
|
||||
## go_jump_a_tron
|
||||
######*/
|
||||
|
||||
bool GOHello_go_jump_a_tron(Player *pPlayer, GameObject *pGO)
|
||||
bool GOHello_go_jump_a_tron(Player *pPlayer, GameObject * /*pGO*/)
|
||||
{
|
||||
if (pPlayer->GetQuestStatus(10111) == QUEST_STATUS_INCOMPLETE)
|
||||
pPlayer->CastSpell(pPlayer,33382,true);
|
||||
@@ -291,7 +291,7 @@ enum eResoniteCask
|
||||
NPC_GOGGEROC = 11920
|
||||
};
|
||||
|
||||
bool GOHello_go_resonite_cask(Player *pPlayer, GameObject *pGO)
|
||||
bool GOHello_go_resonite_cask(Player * /*pPlayer*/, GameObject *pGO)
|
||||
{
|
||||
if (pGO->GetGoType() == GAMEOBJECT_TYPE_GOOBER)
|
||||
pGO->SummonCreature(NPC_GOGGEROC, 0.0f, 0.0f, 0.0f, 0.0f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 300000);
|
||||
@@ -365,7 +365,7 @@ enum eSouthfury
|
||||
|
||||
};
|
||||
|
||||
bool GOHello_go_southfury_moonstone(Player *pPlayer, GameObject *pGO)
|
||||
bool GOHello_go_southfury_moonstone(Player *pPlayer, GameObject * /*pGO*/)
|
||||
{
|
||||
//implicitTarget=48 not implemented as of writing this code, and manual summon may be just ok for our purpose
|
||||
//pPlayer->CastSpell(pPlayer,SPELL_SUMMON_RIZZLE,false);
|
||||
@@ -388,7 +388,7 @@ enum eDalaranCrystal
|
||||
|
||||
#define GO_TELE_TO_DALARAN_CRYSTAL_FAILED "This teleport crystal cannot be used until the teleport crystal in Dalaran has been used at least once."
|
||||
|
||||
bool GOHello_go_tele_to_dalaran_crystal(Player *pPlayer, GameObject *pGO)
|
||||
bool GOHello_go_tele_to_dalaran_crystal(Player *pPlayer, GameObject * /*pGO*/)
|
||||
{
|
||||
if (pPlayer->GetQuestRewardStatus(QUEST_TELE_CRYSTAL_FLAG))
|
||||
{
|
||||
@@ -404,7 +404,7 @@ bool GOHello_go_tele_to_dalaran_crystal(Player *pPlayer, GameObject *pGO)
|
||||
## go_tele_to_violet_stand
|
||||
######*/
|
||||
|
||||
bool GOHello_go_tele_to_violet_stand(Player *pPlayer, GameObject *pGO)
|
||||
bool GOHello_go_tele_to_violet_stand(Player *pPlayer, GameObject * /*pGO*/)
|
||||
{
|
||||
if (pPlayer->GetQuestRewardStatus(QUEST_LEARN_LEAVE_RETURN) || pPlayer->GetQuestStatus(QUEST_LEARN_LEAVE_RETURN) == QUEST_STATUS_INCOMPLETE)
|
||||
return false;
|
||||
@@ -441,7 +441,7 @@ bool GOHello_go_fel_crystalforge(Player *pPlayer, GameObject *pGO)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GOSelect_go_fel_crystalforge(Player *pPlayer, GameObject *pGO, uint32 uiSender, uint32 uiAction)
|
||||
bool GOSelect_go_fel_crystalforge(Player *pPlayer, GameObject *pGO, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
switch(uiAction)
|
||||
{
|
||||
@@ -474,7 +474,7 @@ enum eBashirCrystalforge
|
||||
SPELL_CREATE_5_FLASK_OF_SORCERER = 40970,
|
||||
};
|
||||
|
||||
bool GOHello_go_bashir_crystalforge(Player *pPlayer, GameObject *pGO)
|
||||
bool GOHello_go_bashir_crystalforge(Player *pPlayer, GameObject * /*pGO*/)
|
||||
{
|
||||
pPlayer->CastSpell(pPlayer,SPELL_CREATE_1_FLASK_OF_SORCERER,false);
|
||||
return false;
|
||||
@@ -693,7 +693,7 @@ enum eInconspicuousLandmark
|
||||
ITEM_CUERGOS_KEY = 9275,
|
||||
};
|
||||
|
||||
bool GOHello_go_inconspicuous_landmark(Player *pPlayer, GameObject* pGO)
|
||||
bool GOHello_go_inconspicuous_landmark(Player *pPlayer, GameObject* /*pGO*/)
|
||||
{
|
||||
if (pPlayer->HasItemCount(ITEM_CUERGOS_KEY,1))
|
||||
return false;
|
||||
@@ -859,7 +859,7 @@ bool GOHello_go_amberpine_outhouse(Player *pPlayer, GameObject *pGO)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GOSelect_go_amberpine_outhouse(Player *pPlayer, GameObject *pGO, uint32 uiSender, uint32 uiAction)
|
||||
bool GOSelect_go_amberpine_outhouse(Player *pPlayer, GameObject *pGO, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
if (uiAction == GOSSIP_ACTION_INFO_DEF +1)
|
||||
{
|
||||
|
||||
@@ -2541,7 +2541,7 @@ struct guard_shattrath_aldorAI : public guardAI
|
||||
CanTeleport = false;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who) {}
|
||||
void EnterCombat(Unit * /*who*/) {}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
@@ -2737,7 +2737,7 @@ struct guard_shattrath_scryerAI : public guardAI
|
||||
CanTeleport = false;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who) {}
|
||||
void EnterCombat(Unit * /*who*/) {}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
|
||||
@@ -41,7 +41,7 @@ enum eOnlyForFlight
|
||||
SPELL_ARCANE_CHARGES = 45072
|
||||
};
|
||||
|
||||
bool ItemUse_item_only_for_flight(Player* pPlayer, Item* pItem, SpellCastTargets const& targets)
|
||||
bool ItemUse_item_only_for_flight(Player* pPlayer, Item* pItem, SpellCastTargets const& /*targets*/)
|
||||
{
|
||||
uint32 itemId = pItem->GetEntry();
|
||||
bool disabled = false;
|
||||
@@ -78,7 +78,7 @@ bool ItemUse_item_only_for_flight(Player* pPlayer, Item* pItem, SpellCastTargets
|
||||
|
||||
//This is just a hack and should be removed from here.
|
||||
//Creature/Item are in fact created before spell are sucessfully casted, without any checks at all to ensure proper/expected behavior.
|
||||
bool ItemUse_item_draenei_fishing_net(Player* pPlayer, Item* pItem, SpellCastTargets const& targets)
|
||||
bool ItemUse_item_draenei_fishing_net(Player* pPlayer, Item* /*pItem*/, SpellCastTargets const& /*targets*/)
|
||||
{
|
||||
//if (targets.getGOTarget() && targets.getGOTarget()->GetTypeId() == TYPEID_GAMEOBJECT &&
|
||||
//targets.getGOTarget()->GetGOInfo()->type == GAMEOBJECT_TYPE_SPELL_FOCUS && targets.getGOTarget()->GetEntry() == 181616)
|
||||
@@ -111,7 +111,7 @@ bool ItemUse_item_draenei_fishing_net(Player* pPlayer, Item* pItem, SpellCastTar
|
||||
# item_nether_wraith_beacon
|
||||
#####*/
|
||||
|
||||
bool ItemUse_item_nether_wraith_beacon(Player* pPlayer, Item* pItem, SpellCastTargets const& targets)
|
||||
bool ItemUse_item_nether_wraith_beacon(Player* pPlayer, Item* /*pItem*/, SpellCastTargets const& /*targets*/)
|
||||
{
|
||||
if (pPlayer->GetQuestStatus(10832) == QUEST_STATUS_INCOMPLETE)
|
||||
{
|
||||
@@ -128,7 +128,7 @@ bool ItemUse_item_nether_wraith_beacon(Player* pPlayer, Item* pItem, SpellCastTa
|
||||
# item_flying_machine
|
||||
#####*/
|
||||
|
||||
bool ItemUse_item_flying_machine(Player* pPlayer, Item* pItem, SpellCastTargets const& targets)
|
||||
bool ItemUse_item_flying_machine(Player* pPlayer, Item* pItem, SpellCastTargets const& /*targets*/)
|
||||
{
|
||||
uint32 itemId = pItem->GetEntry();
|
||||
if (itemId == 34060)
|
||||
@@ -162,7 +162,7 @@ bool ItemUse_item_gor_dreks_ointment(Player *pPlayer, Item *pItem, SpellCastTarg
|
||||
# item_incendiary_explosives
|
||||
#####*/
|
||||
|
||||
bool ItemUse_item_incendiary_explosives(Player *pPlayer, Item *pItem, SpellCastTargets const &targets)
|
||||
bool ItemUse_item_incendiary_explosives(Player *pPlayer, Item *pItem, SpellCastTargets const & /*targets*/)
|
||||
{
|
||||
if (pPlayer->FindNearestCreature(26248,15) || pPlayer->FindNearestCreature(26249,15))
|
||||
return false;
|
||||
@@ -177,7 +177,7 @@ bool ItemUse_item_incendiary_explosives(Player *pPlayer, Item *pItem, SpellCastT
|
||||
# item_mysterious_egg
|
||||
#####*/
|
||||
|
||||
bool ItemExpire_item_mysterious_egg(Player *pPlayer, ItemPrototype const *pItemProto)
|
||||
bool ItemExpire_item_mysterious_egg(Player *pPlayer, ItemPrototype const * /*pItemProto*/)
|
||||
{
|
||||
ItemPosCountVec dest;
|
||||
uint8 msg = pPlayer->CanStoreNewItem(NULL_BAG, NULL_SLOT, dest, 39883, 1); // Cracked Egg
|
||||
@@ -191,7 +191,7 @@ bool ItemExpire_item_mysterious_egg(Player *pPlayer, ItemPrototype const *pItemP
|
||||
# item_disgusting_jar
|
||||
#####*/
|
||||
|
||||
bool ItemExpire_item_disgusting_jar(Player *pPlayer, ItemPrototype const *pItemProto)
|
||||
bool ItemExpire_item_disgusting_jar(Player *pPlayer, ItemPrototype const * /*pItemProto*/)
|
||||
{
|
||||
ItemPosCountVec dest;
|
||||
uint8 msg = pPlayer->CanStoreNewItem(NULL_BAG, NULL_SLOT, dest, 44718, 1); // Ripe Disgusting Jar
|
||||
@@ -205,7 +205,7 @@ bool ItemExpire_item_disgusting_jar(Player *pPlayer, ItemPrototype const *pItemP
|
||||
# item_harvesters_gift
|
||||
#####*/
|
||||
#define GHOULS 28845
|
||||
bool ItemUse_item_harvesters_gift(Player* pPlayer, Item* pItem, SpellCastTargets const& targets)
|
||||
bool ItemUse_item_harvesters_gift(Player* pPlayer, Item* /*pItem*/, SpellCastTargets const& /*targets*/)
|
||||
{
|
||||
std::list<Creature*> MinionList;
|
||||
pPlayer->GetAllMinionsByEntry(MinionList,GHOULS);
|
||||
@@ -253,7 +253,7 @@ enum ePileFakeFur
|
||||
GO_HIGH_QUALITY_FUR = 187983,
|
||||
NPC_NESINGWARY_TRAPPER = 25835
|
||||
};
|
||||
bool ItemUse_item_pile_fake_furs(Player *pPlayer, Item *pItem, SpellCastTargets const &targets)
|
||||
bool ItemUse_item_pile_fake_furs(Player *pPlayer, Item * /*pItem*/, SpellCastTargets const & /*targets*/)
|
||||
{
|
||||
GameObject *pGo;
|
||||
if ((pGo = pPlayer->FindNearestGameObject(GO_CARIBOU_TRAP_1, 5.0f)) ||
|
||||
@@ -298,7 +298,7 @@ enum ePetrovClusterBombs
|
||||
ZONE_ID_HOWLING = 495
|
||||
};
|
||||
|
||||
bool ItemUse_item_petrov_cluster_bombs(Player* pPlayer, Item* pItem, const SpellCastTargets &pTargets)
|
||||
bool ItemUse_item_petrov_cluster_bombs(Player* pPlayer, Item* pItem, const SpellCastTargets & /*pTargets*/)
|
||||
{
|
||||
if (pPlayer->GetZoneId() != ZONE_ID_HOWLING)
|
||||
return false;
|
||||
@@ -348,7 +348,7 @@ enum eHelpThemselves
|
||||
GO_MAMMOTH_TRAP_22 = 188044,
|
||||
};
|
||||
|
||||
bool ItemUse_item_dehta_trap_smasher(Player* pPlayer, Item* pItem, const SpellCastTargets &pTargets)
|
||||
bool ItemUse_item_dehta_trap_smasher(Player* pPlayer, Item* /*pItem*/, const SpellCastTargets & /*pTargets*/)
|
||||
{
|
||||
Creature* pMammoth;
|
||||
GameObject* pTrap;
|
||||
|
||||
@@ -75,7 +75,7 @@ bool GossipHello_npc_innkeeper(Player *pPlayer, Creature *pCreature)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GossipSelect_npc_innkeeper(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
|
||||
bool GossipSelect_npc_innkeeper(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
if (uiAction == GOSSIP_ACTION_INFO_DEF+HALLOWEEN_EVENTID && IsEventActive(HALLOWEEN_EVENTID) && !pPlayer->HasAura(SPELL_TRICK_OR_TREATED))
|
||||
{
|
||||
|
||||
@@ -183,12 +183,12 @@ there is no difference here (except that default text is chosen with `gameobject
|
||||
# formulas to calculate unlearning cost
|
||||
###*/
|
||||
|
||||
int32 DoLearnCost(Player* pPlayer) //tailor, alchemy
|
||||
int32 DoLearnCost(Player* /*pPlayer*/) //tailor, alchemy
|
||||
{
|
||||
return 200000;
|
||||
}
|
||||
|
||||
int32 DoHighUnlearnCost(Player* pPlayer) //tailor, alchemy
|
||||
int32 DoHighUnlearnCost(Player* /*pPlayer*/) //tailor, alchemy
|
||||
{
|
||||
return 1500000;
|
||||
}
|
||||
|
||||
@@ -177,7 +177,7 @@ bool GossipHello_npc_taxi(Player* pPlayer, Creature* pCreature)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GossipSelect_npc_taxi(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
|
||||
bool GossipSelect_npc_taxi(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
switch(uiAction) {
|
||||
case GOSSIP_ACTION_INFO_DEF:
|
||||
|
||||
@@ -275,7 +275,7 @@ bool GossipHello_npc_lunaclaw_spirit(Player *pPlayer, Creature *pCreature)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GossipSelect_npc_lunaclaw_spirit(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
|
||||
bool GossipSelect_npc_lunaclaw_spirit(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
if (uiAction == GOSSIP_ACTION_INFO_DEF+1)
|
||||
{
|
||||
@@ -309,7 +309,7 @@ struct npc_chicken_cluckAI : public ScriptedAI
|
||||
me->RemoveFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_QUESTGIVER);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who) {}
|
||||
void EnterCombat(Unit * /*who*/) {}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
@@ -356,7 +356,7 @@ CreatureAI* GetAI_npc_chicken_cluck(Creature* pCreature)
|
||||
return new npc_chicken_cluckAI(pCreature);
|
||||
}
|
||||
|
||||
bool QuestAccept_npc_chicken_cluck(Player* pPlayer, Creature* pCreature, const Quest *_Quest)
|
||||
bool QuestAccept_npc_chicken_cluck(Player* /*pPlayer*/, Creature* pCreature, const Quest *_Quest)
|
||||
{
|
||||
if (_Quest->GetQuestId() == QUEST_CLUCK)
|
||||
CAST_AI(npc_chicken_cluckAI, pCreature->AI())->Reset();
|
||||
@@ -364,7 +364,7 @@ bool QuestAccept_npc_chicken_cluck(Player* pPlayer, Creature* pCreature, const Q
|
||||
return true;
|
||||
}
|
||||
|
||||
bool QuestComplete_npc_chicken_cluck(Player* pPlayer, Creature* pCreature, const Quest *_Quest)
|
||||
bool QuestComplete_npc_chicken_cluck(Player* /*pPlayer*/, Creature* pCreature, const Quest *_Quest)
|
||||
{
|
||||
if (_Quest->GetQuestId() == QUEST_CLUCK)
|
||||
CAST_AI(npc_chicken_cluckAI, pCreature->AI())->Reset();
|
||||
@@ -415,7 +415,7 @@ struct npc_dancing_flamesAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* who){}
|
||||
void EnterCombat(Unit* /*who*/){}
|
||||
|
||||
void ReceiveEmote(Player* pPlayer, uint32 emote)
|
||||
{
|
||||
@@ -555,7 +555,7 @@ struct npc_doctorAI : public ScriptedAI
|
||||
void PatientSaved(Creature* soldier, Player* pPlayer, Location* Point);
|
||||
void UpdateAI(const uint32 diff);
|
||||
|
||||
void EnterCombat(Unit* who){}
|
||||
void EnterCombat(Unit* /*who*/){}
|
||||
};
|
||||
|
||||
/*#####
|
||||
@@ -602,7 +602,7 @@ struct npc_injured_patientAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* who){}
|
||||
void EnterCombat(Unit* /*who*/){}
|
||||
|
||||
void SpellHit(Unit *caster, const SpellEntry *spell)
|
||||
{
|
||||
@@ -643,7 +643,7 @@ struct npc_injured_patientAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
void UpdateAI(const uint32 /*diff*/)
|
||||
{
|
||||
//lower HP on every world tick makes it a useful counter, not officlone though
|
||||
if (me->isAlive() && me->GetHealth() > 6)
|
||||
@@ -726,7 +726,7 @@ void npc_doctorAI::PatientDied(Location* Point)
|
||||
Reset();
|
||||
}
|
||||
|
||||
void npc_doctorAI::PatientSaved(Creature* soldier, Player* pPlayer, Location* Point)
|
||||
void npc_doctorAI::PatientSaved(Creature* /*soldier*/, Player* pPlayer, Location* Point)
|
||||
{
|
||||
if (pPlayer && PlayerGUID == pPlayer->GetGUID())
|
||||
{
|
||||
@@ -888,7 +888,7 @@ struct npc_garments_of_questsAI : public npc_escortAI
|
||||
me->SetHealth(int(me->GetMaxHealth()*0.7));
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who) {}
|
||||
void EnterCombat(Unit * /*who*/) {}
|
||||
|
||||
void SpellHit(Unit* pCaster, const SpellEntry *Spell)
|
||||
{
|
||||
@@ -1000,7 +1000,7 @@ struct npc_garments_of_questsAI : public npc_escortAI
|
||||
}
|
||||
}
|
||||
|
||||
void WaypointReached(uint32 uiPoint)
|
||||
void WaypointReached(uint32 /*uiPoint*/)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -1054,11 +1054,11 @@ struct npc_guardianAI : public ScriptedAI
|
||||
me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
void UpdateAI(const uint32 /*diff*/)
|
||||
{
|
||||
if (!UpdateVictim())
|
||||
return;
|
||||
@@ -1104,7 +1104,7 @@ bool GossipHello_npc_kingdom_of_dalaran_quests(Player* pPlayer, Creature* pCreat
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GossipSelect_npc_kingdom_of_dalaran_quests(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
|
||||
bool GossipSelect_npc_kingdom_of_dalaran_quests(Player* pPlayer, Creature* /*pCreature*/, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
if (uiAction == GOSSIP_ACTION_INFO_DEF+1)
|
||||
{
|
||||
@@ -1194,7 +1194,7 @@ bool GossipHello_npc_mount_vendor(Player* pPlayer, Creature* pCreature)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GossipSelect_npc_mount_vendor(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
|
||||
bool GossipSelect_npc_mount_vendor(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
if (uiAction == GOSSIP_ACTION_TRADE)
|
||||
pPlayer->SEND_VENDORLIST(pCreature->GetGUID());
|
||||
@@ -1234,7 +1234,7 @@ bool GossipHello_npc_rogue_trainer(Player* pPlayer, Creature* pCreature)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GossipSelect_npc_rogue_trainer(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
|
||||
bool GossipSelect_npc_rogue_trainer(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
switch(uiAction)
|
||||
{
|
||||
@@ -1434,7 +1434,7 @@ struct npc_steam_tonkAI : public ScriptedAI
|
||||
npc_steam_tonkAI(Creature *c) : ScriptedAI(c) {}
|
||||
|
||||
void Reset() {}
|
||||
void EnterCombat(Unit *who) {}
|
||||
void EnterCombat(Unit * /*who*/) {}
|
||||
|
||||
void OnPossess(bool apply)
|
||||
{
|
||||
@@ -1473,9 +1473,9 @@ struct npc_tonk_mineAI : public ScriptedAI
|
||||
ExplosionTimer = 3000;
|
||||
}
|
||||
|
||||
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 UpdateAI(const uint32 diff)
|
||||
{
|
||||
@@ -1573,7 +1573,7 @@ struct npc_snake_trap_serpentsAI : public ScriptedAI
|
||||
bool IsViper;
|
||||
bool Spawn;
|
||||
|
||||
void EnterCombat(Unit *who) {}
|
||||
void EnterCombat(Unit * /*who*/) {}
|
||||
|
||||
void Reset()
|
||||
{
|
||||
@@ -1688,7 +1688,7 @@ struct mob_mojoAI : public ScriptedAI
|
||||
if (Unit* own = me->GetOwner())
|
||||
me->GetMotionMaster()->MoveFollow(own,0,0);
|
||||
}
|
||||
void Aggro(Unit *who){}
|
||||
void Aggro(Unit * /*who*/){}
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
if (me->HasAura(20372))
|
||||
@@ -1812,7 +1812,7 @@ struct npc_ebon_gargoyleAI : CasterAI
|
||||
}
|
||||
}
|
||||
|
||||
void JustDied(Unit *killer)
|
||||
void JustDied(Unit * /*killer*/)
|
||||
{
|
||||
// Stop Feeding Gargoyle when it dies
|
||||
if (Unit *owner = me->GetOwner())
|
||||
@@ -1913,13 +1913,13 @@ struct npc_training_dummy : Scripted_NoMovementAI
|
||||
Reset();
|
||||
}
|
||||
|
||||
void DamageTaken(Unit *done_by, uint32 &damage)
|
||||
void DamageTaken(Unit * /*done_by*/, uint32 &damage)
|
||||
{
|
||||
ResetTimer = 10000;
|
||||
damage = 0;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
if (m_Entry != 2674 && m_Entry != 2673)
|
||||
return;
|
||||
@@ -1951,7 +1951,7 @@ struct npc_training_dummy : Scripted_NoMovementAI
|
||||
DespawnTimer -= diff;
|
||||
}
|
||||
}
|
||||
void MoveInLineOfSight(Unit *who){return;}
|
||||
void MoveInLineOfSight(Unit * /*who*/){return;}
|
||||
};
|
||||
|
||||
CreatureAI* GetAI_npc_training_dummy(Creature* pCreature)
|
||||
@@ -1969,7 +1969,7 @@ struct npc_shadowfiendAI : public ScriptedAI
|
||||
{
|
||||
npc_shadowfiendAI(Creature* pCreature) : ScriptedAI(pCreature) {}
|
||||
|
||||
void DamageTaken(Unit* pKiller, uint32 &damage)
|
||||
void DamageTaken(Unit* /*pKiller*/, uint32 &damage)
|
||||
{
|
||||
if (me->isSummon())
|
||||
if (Unit* pOwner = CAST_SUM(me)->GetSummoner())
|
||||
@@ -1980,7 +1980,7 @@ struct npc_shadowfiendAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
void UpdateAI(const uint32 /*diff*/)
|
||||
{
|
||||
DoMeleeAttackIfReady();
|
||||
}
|
||||
@@ -2029,7 +2029,7 @@ bool GossipHello_npc_wormhole(Player* pPlayer, Creature* pCreature)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GossipSelect_npc_wormhole(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
|
||||
bool GossipSelect_npc_wormhole(Player* pPlayer, Creature* /*pCreature*/, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
bool roll = urand(0,1);
|
||||
|
||||
@@ -2089,7 +2089,7 @@ bool GossipHello_npc_pet_trainer(Player* pPlayer, Creature* pCreature)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GossipSelect_npc_pet_trainer(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
|
||||
bool GossipSelect_npc_pet_trainer(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
switch(uiAction)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user