aboutsummaryrefslogtreecommitdiff
path: root/src/scripts/examples
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripts/examples')
-rw-r--r--src/scripts/examples/example_creature.cpp4
-rw-r--r--src/scripts/examples/example_escort.cpp4
-rw-r--r--src/scripts/examples/example_gossip_codebox.cpp2
-rw-r--r--src/scripts/examples/example_misc.cpp6
4 files changed, 8 insertions, 8 deletions
diff --git a/src/scripts/examples/example_creature.cpp b/src/scripts/examples/example_creature.cpp
index b24dd7bdf1b..856b680e2e6 100644
--- a/src/scripts/examples/example_creature.cpp
+++ b/src/scripts/examples/example_creature.cpp
@@ -133,7 +133,7 @@ struct example_creatureAI : public ScriptedAI
//*** HANDLED FUNCTION ***
//Our Receive emote function
- void ReceiveEmote(Player* pPlayer, uint32 uiTextEmote)
+ void ReceiveEmote(Player* /*pPlayer*/, uint32 uiTextEmote)
{
me->HandleEmoteCommand(uiTextEmote);
@@ -255,7 +255,7 @@ CreatureAI* GetAI_example_creature(Creature* pCreature)
}
//This function is called when the player clicks an option on the gossip menu
-bool GossipSelect_example_creature(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
+bool GossipSelect_example_creature(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
if (uiAction == GOSSIP_ACTION_INFO_DEF+1)
{
diff --git a/src/scripts/examples/example_escort.cpp b/src/scripts/examples/example_escort.cpp
index a4282d4c447..bf2b454bf8e 100644
--- a/src/scripts/examples/example_escort.cpp
+++ b/src/scripts/examples/example_escort.cpp
@@ -87,7 +87,7 @@ struct example_escortAI : public npc_escortAI
}
}
- void EnterCombat(Unit* pWho)
+ void EnterCombat(Unit* /*pWho*/)
{
if (HasEscortState(STATE_ESCORT_ESCORTING))
{
@@ -186,7 +186,7 @@ bool GossipHello_example_escort(Player* pPlayer, Creature* pCreature)
return true;
}
-bool GossipSelect_example_escort(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
+bool GossipSelect_example_escort(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
npc_escortAI* pEscortAI = CAST_AI(example_escortAI, pCreature->AI());
diff --git a/src/scripts/examples/example_gossip_codebox.cpp b/src/scripts/examples/example_gossip_codebox.cpp
index 0506c9ada42..e208722784a 100644
--- a/src/scripts/examples/example_gossip_codebox.cpp
+++ b/src/scripts/examples/example_gossip_codebox.cpp
@@ -49,7 +49,7 @@ bool GossipHello_example_gossip_codebox(Player* pPlayer, Creature* pCreature)
}
//This function is called when the player clicks an option on the gossip menubool
-bool GossipSelect_example_gossip_codebox(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
+bool GossipSelect_example_gossip_codebox(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
if (uiAction == GOSSIP_ACTION_INFO_DEF+2)
{
diff --git a/src/scripts/examples/example_misc.cpp b/src/scripts/examples/example_misc.cpp
index e26220bfbb3..3c96cc0bae7 100644
--- a/src/scripts/examples/example_misc.cpp
+++ b/src/scripts/examples/example_misc.cpp
@@ -29,20 +29,20 @@ enum eSay
SAY_HI = -1999925
};
-bool AT_example_areatrigger(Player* pPlayer, const AreaTriggerEntry *pAt)
+bool AT_example_areatrigger(Player* pPlayer, const AreaTriggerEntry * /*pAt*/)
{
DoScriptText(SAY_HI, pPlayer);
return true;
}
extern void LoadDatabase();
-bool ItemUse_example_item(Player* pPlayer, Item* pItem, SpellCastTargets const& scTargets)
+bool ItemUse_example_item(Player* /*pPlayer*/, Item* /*pItem*/, SpellCastTargets const& /*scTargets*/)
{
sScriptMgr.LoadDatabase();
return true;
}
-bool GOHello_example_go_teleporter(Player* pPlayer, GameObject* pGo)
+bool GOHello_example_go_teleporter(Player* pPlayer, GameObject* /*pGo*/)
{
pPlayer->TeleportTo(0, 1807.07f, 336.105f, 70.3975f, 0.0f);
return false;