diff options
Diffstat (limited to 'src/server/scripts/Examples')
5 files changed, 9 insertions, 10 deletions
diff --git a/src/server/scripts/Examples/example_creature.cpp b/src/server/scripts/Examples/example_creature.cpp index 52a9a77a543..9f06ea93ea4 100644 --- a/src/server/scripts/Examples/example_creature.cpp +++ b/src/server/scripts/Examples/example_creature.cpp @@ -271,7 +271,7 @@ class example_creature : public CreatureScript return true; } - bool OnGossipSelect(Player* player, Creature* creature, uint32 sender, uint32 action) + bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action) { if (action == GOSSIP_ACTION_INFO_DEF+1) { diff --git a/src/server/scripts/Examples/example_escort.cpp b/src/server/scripts/Examples/example_escort.cpp index 50961744d3b..1d771e2f85a 100644 --- a/src/server/scripts/Examples/example_escort.cpp +++ b/src/server/scripts/Examples/example_escort.cpp @@ -197,7 +197,7 @@ class example_escort : public CreatureScript return true; } - bool OnGossipSelect(Player* player, Creature* creature, uint32 sender, uint32 action) + bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action) { npc_escortAI* pEscortAI = CAST_AI(example_escort::example_escortAI, creature->AI()); diff --git a/src/server/scripts/Examples/example_gossip_codebox.cpp b/src/server/scripts/Examples/example_gossip_codebox.cpp index 9a91ea5bedf..117b206fc56 100644 --- a/src/server/scripts/Examples/example_gossip_codebox.cpp +++ b/src/server/scripts/Examples/example_gossip_codebox.cpp @@ -58,7 +58,7 @@ class example_gossip_codebox : public CreatureScript return true; } - bool OnGossipSelect(Player* player, Creature* creature, uint32 sender, uint32 action) + bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action) { if (action == GOSSIP_ACTION_INFO_DEF+2) { diff --git a/src/server/scripts/Examples/example_misc.cpp b/src/server/scripts/Examples/example_misc.cpp index 67ed2c163dc..98a7323e1dd 100644 --- a/src/server/scripts/Examples/example_misc.cpp +++ b/src/server/scripts/Examples/example_misc.cpp @@ -40,7 +40,7 @@ class AT_example_areatrigger : public AreaTriggerScript { } - bool OnTrigger(Player* player, AreaTriggerEntry const* trigger) + bool OnTrigger(Player* player, AreaTriggerEntry const* /*trigger*/) { DoScriptText(SAY_HI, player); return true; @@ -56,7 +56,7 @@ class ItemUse_example_item : public ItemScript { } - bool OnUse(Player* player, Item* item, SpellCastTargets const& targets) + bool OnUse(Player* /*player*/, Item* /*item*/, SpellCastTargets const& /*targets*/) { sScriptMgr.LoadDatabase(); return true; @@ -72,7 +72,7 @@ class GOHello_example_go_teleporter : public GameObjectScript { } - bool OnGossipHello(Player* player, GameObject* go) + bool OnGossipHello(Player* player, GameObject* /*go*/) { player->TeleportTo(0, 1807.07f, 336.105f, 70.3975f, 0.0f); return false; diff --git a/src/server/scripts/Examples/example_spell.cpp b/src/server/scripts/Examples/example_spell.cpp index d5ba5b4a5ba..9d7fa31ca9a 100644 --- a/src/server/scripts/Examples/example_spell.cpp +++ b/src/server/scripts/Examples/example_spell.cpp @@ -35,11 +35,10 @@ class spell_ex_49375 : public SpellHandlerScript char * localVariable2; // effect handler hook - effIndex - effIndex of handled effect of a spell - void HandleDummy(SpellEffIndex effIndex) + void HandleDummy(SpellEffIndex /*effIndex*/) { // we're handling SPELL_EFFECT_DUMMY in effIndex 0 here sLog.outError("WE ARE HANDLING DUMMY!"); - sLog.outError(localVariable.c_str()); // make caster cast a spell on a unit target of effect if (Unit * target = GetHitUnit()) GetCaster()->CastSpell(target, 70522, true); @@ -81,7 +80,7 @@ class spell_ex_49375 : public SpellHandlerScript // function called on server startup // checks if script has data required for it to work - bool Validate(SpellEntry const * spellEntry) + bool Validate(SpellEntry const * /*spellEntry*/) { // check if spellid 1 exists in dbc if (!sSpellStore.LookupEntry(70522)) @@ -149,4 +148,4 @@ void AddSC_example_spell_scripts() /* Commented out to prevent loading errors new spell_ex_49375; */ -}
\ No newline at end of file +} |