diff options
| author | Maks Szokalski <42069493+illunix@users.noreply.github.com> | 2020-09-10 16:57:11 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2022-02-05 22:18:19 +0100 |
| commit | bc04acb72652882290cef49b2055d3cf1ab12f36 (patch) | |
| tree | b430b10375254570eb8c4c9ed802066ba0c14b96 /src/server/scripts/Northrend | |
| parent | 013c9b2cb7404a6d03443eb39f49622dcc99a7fa (diff) | |
Add "On" to some gossip methods in AI (#25415)
* Add "On" to some methods
* Update npc_innkeeper.cpp
* Update zone_borean_tundra.cpp
(cherry picked from commit 41188eb535e445b73909659980257da2939e4be4)
Diffstat (limited to 'src/server/scripts/Northrend')
30 files changed, 65 insertions, 65 deletions
diff --git a/src/server/scripts/Northrend/AzjolNerub/Ahnkahet/boss_prince_taldaram.cpp b/src/server/scripts/Northrend/AzjolNerub/Ahnkahet/boss_prince_taldaram.cpp index a4b4028e44e..ae9e00725bd 100644 --- a/src/server/scripts/Northrend/AzjolNerub/Ahnkahet/boss_prince_taldaram.cpp +++ b/src/server/scripts/Northrend/AzjolNerub/Ahnkahet/boss_prince_taldaram.cpp @@ -409,7 +409,7 @@ class go_prince_taldaram_sphere : public GameObjectScript InstanceScript* instance; - bool GossipHello(Player* /*player*/) override + bool OnGossipHello(Player* /*player*/) override { Creature* princeTaldaram = instance->GetCreature(DATA_PRINCE_TALDARAM); if (princeTaldaram && princeTaldaram->IsAlive()) diff --git a/src/server/scripts/Northrend/ChamberOfAspects/RubySanctum/boss_halion.cpp b/src/server/scripts/Northrend/ChamberOfAspects/RubySanctum/boss_halion.cpp index 40abdb784c4..d4dde67813b 100644 --- a/src/server/scripts/Northrend/ChamberOfAspects/RubySanctum/boss_halion.cpp +++ b/src/server/scripts/Northrend/ChamberOfAspects/RubySanctum/boss_halion.cpp @@ -1372,7 +1372,7 @@ class go_twilight_portal : public GameObjectScript } } - bool GossipHello(Player* player) override + bool OnGossipHello(Player* player) override { if (_spellId != 0) player->CastSpell(player, _spellId, true); diff --git a/src/server/scripts/Northrend/CrusadersColiseum/TrialOfTheChampion/trial_of_the_champion.cpp b/src/server/scripts/Northrend/CrusadersColiseum/TrialOfTheChampion/trial_of_the_champion.cpp index bc72c654d0e..00c98055929 100644 --- a/src/server/scripts/Northrend/CrusadersColiseum/TrialOfTheChampion/trial_of_the_champion.cpp +++ b/src/server/scripts/Northrend/CrusadersColiseum/TrialOfTheChampion/trial_of_the_champion.cpp @@ -450,7 +450,7 @@ public: } } - bool GossipHello(Player* player) override + bool OnGossipHello(Player* player) override { if (((instance->GetData(BOSS_GRAND_CHAMPIONS) == DONE && instance->GetData(BOSS_BLACK_KNIGHT) == DONE && @@ -470,7 +470,7 @@ public: return true; } - bool GossipSelect(Player* player, uint32 /*menuId*/, uint32 gossipListId) override + bool OnGossipSelect(Player* player, uint32 /*menuId*/, uint32 gossipListId) override { uint32 const action = player->PlayerTalkClass->GetGossipOptionAction(gossipListId); ClearGossipMenuFor(player); diff --git a/src/server/scripts/Northrend/CrusadersColiseum/TrialOfTheCrusader/boss_twin_valkyr.cpp b/src/server/scripts/Northrend/CrusadersColiseum/TrialOfTheCrusader/boss_twin_valkyr.cpp index e760e55ebc2..c6bdd4fb258 100644 --- a/src/server/scripts/Northrend/CrusadersColiseum/TrialOfTheCrusader/boss_twin_valkyr.cpp +++ b/src/server/scripts/Northrend/CrusadersColiseum/TrialOfTheCrusader/boss_twin_valkyr.cpp @@ -537,7 +537,7 @@ class npc_essence_of_twin : public CreatureScript return spellReturned; } - bool GossipHello(Player* player) override + bool OnGossipHello(Player* player) override { player->RemoveAurasDueToSpell(GetData(ESSENCE_REMOVE)); player->CastSpell(player, GetData(ESSENCE_APPLY), true); diff --git a/src/server/scripts/Northrend/CrusadersColiseum/TrialOfTheCrusader/trial_of_the_crusader.cpp b/src/server/scripts/Northrend/CrusadersColiseum/TrialOfTheCrusader/trial_of_the_crusader.cpp index 8628b7bd73c..ffc8272bbf1 100644 --- a/src/server/scripts/Northrend/CrusadersColiseum/TrialOfTheCrusader/trial_of_the_crusader.cpp +++ b/src/server/scripts/Northrend/CrusadersColiseum/TrialOfTheCrusader/trial_of_the_crusader.cpp @@ -237,7 +237,7 @@ struct npc_barrett_toc : public ScriptedAI me->GetMotionMaster()->MoveAlongSplineChain(POINT_BARRETT_DESPAWN, SPLINE_INITIAL_MOVEMENT, false); } - bool GossipSelect(Player* player, uint32 menuId, uint32 gossipListId) override + bool OnGossipSelect(Player* player, uint32 menuId, uint32 gossipListId) override { switch (menuId) { diff --git a/src/server/scripts/Northrend/FrozenHalls/ForgeOfSouls/forge_of_souls.cpp b/src/server/scripts/Northrend/FrozenHalls/ForgeOfSouls/forge_of_souls.cpp index dddbb7cb1e1..ea22c7acbad 100644 --- a/src/server/scripts/Northrend/FrozenHalls/ForgeOfSouls/forge_of_souls.cpp +++ b/src/server/scripts/Northrend/FrozenHalls/ForgeOfSouls/forge_of_souls.cpp @@ -102,7 +102,7 @@ public: Initialize(); } - bool GossipSelect(Player* player, uint32 menuId, uint32 gossipListId) override + bool OnGossipSelect(Player* player, uint32 menuId, uint32 gossipListId) override { if (menuId == MENU_ID_SYLVANAS && gossipListId == GOSSIP_OPTION_ID) { @@ -197,7 +197,7 @@ public: Initialize(); } - bool GossipSelect(Player* player, uint32 menuId, uint32 gossipListId) override + bool OnGossipSelect(Player* player, uint32 menuId, uint32 gossipListId) override { if (menuId == MENU_ID_JAINA && gossipListId == GOSSIP_OPTION_ID) { diff --git a/src/server/scripts/Northrend/FrozenHalls/HallsOfReflection/halls_of_reflection.cpp b/src/server/scripts/Northrend/FrozenHalls/HallsOfReflection/halls_of_reflection.cpp index cb0007b86c2..cd968cec2bb 100644 --- a/src/server/scripts/Northrend/FrozenHalls/HallsOfReflection/halls_of_reflection.cpp +++ b/src/server/scripts/Northrend/FrozenHalls/HallsOfReflection/halls_of_reflection.cpp @@ -360,7 +360,7 @@ class npc_jaina_or_sylvanas_intro_hor : public CreatureScript _instance = me->GetInstanceScript(); } - bool GossipHello(Player* player) override + bool OnGossipHello(Player* player) override { // override default gossip if (_instance->GetData(DATA_QUEL_DELAR_EVENT) == IN_PROGRESS || _instance->GetData(DATA_QUEL_DELAR_EVENT) == SPECIAL) @@ -373,7 +373,7 @@ class npc_jaina_or_sylvanas_intro_hor : public CreatureScript return false; } - bool GossipSelect(Player* player, uint32 /*menuId*/, uint32 gossipListId) override + bool OnGossipSelect(Player* player, uint32 /*menuId*/, uint32 gossipListId) override { ClearGossipMenuFor(player); @@ -880,7 +880,7 @@ class npc_jaina_or_sylvanas_escape_hor : public CreatureScript } } - bool GossipHello(Player* player) override + bool OnGossipHello(Player* player) override { // override default gossip if (_instance->GetBossState(DATA_THE_LICH_KING_ESCAPE) == DONE) @@ -894,7 +894,7 @@ class npc_jaina_or_sylvanas_escape_hor : public CreatureScript return false; } - bool GossipSelect(Player* player, uint32 /*menuId*/, uint32 gossipListId) override + bool OnGossipSelect(Player* player, uint32 /*menuId*/, uint32 gossipListId) override { ClearGossipMenuFor(player); diff --git a/src/server/scripts/Northrend/Gundrak/instance_gundrak.cpp b/src/server/scripts/Northrend/Gundrak/instance_gundrak.cpp index 48cc2743a72..285e04fc15b 100644 --- a/src/server/scripts/Northrend/Gundrak/instance_gundrak.cpp +++ b/src/server/scripts/Northrend/Gundrak/instance_gundrak.cpp @@ -360,7 +360,7 @@ class go_gundrak_altar : public GameObjectScript InstanceScript* instance; - bool GossipHello(Player* /*player*/) override + bool OnGossipHello(Player* /*player*/) override { me->AddFlag(GO_FLAG_NOT_SELECTABLE); me->SetGoState(GO_STATE_ACTIVE); diff --git a/src/server/scripts/Northrend/IcecrownCitadel/boss_deathbringer_saurfang.cpp b/src/server/scripts/Northrend/IcecrownCitadel/boss_deathbringer_saurfang.cpp index 51c9acd7684..e98d70250b5 100644 --- a/src/server/scripts/Northrend/IcecrownCitadel/boss_deathbringer_saurfang.cpp +++ b/src/server/scripts/Northrend/IcecrownCitadel/boss_deathbringer_saurfang.cpp @@ -642,7 +642,7 @@ class npc_high_overlord_saurfang_icc : public CreatureScript _events.Reset(); } - bool GossipSelect(Player* player, uint32 menuId, uint32 /*gossipListId*/) override + bool OnGossipSelect(Player* player, uint32 menuId, uint32 /*gossipListId*/) override { if (menuId == GOSSIP_MENU_HIGH_OVERLORD_SAURFANG) { @@ -853,7 +853,7 @@ class npc_muradin_bronzebeard_icc : public CreatureScript _events.Reset(); } - bool GossipSelect(Player* player, uint32 menuId, uint32 /*gossipListId*/) override + bool OnGossipSelect(Player* player, uint32 menuId, uint32 /*gossipListId*/) override { if (menuId == GOSSIP_MENU_MURADIN_BRONZEBEARD) { diff --git a/src/server/scripts/Northrend/IcecrownCitadel/boss_icecrown_gunship_battle.cpp b/src/server/scripts/Northrend/IcecrownCitadel/boss_icecrown_gunship_battle.cpp index df8e1ecc80f..f1eb4de82ed 100644 --- a/src/server/scripts/Northrend/IcecrownCitadel/boss_icecrown_gunship_battle.cpp +++ b/src/server/scripts/Northrend/IcecrownCitadel/boss_icecrown_gunship_battle.cpp @@ -953,7 +953,7 @@ class npc_high_overlord_saurfang_igb : public CreatureScript } } - bool GossipSelect(Player* /*player*/, uint32 /*menuId*/, uint32 /*gossipListId*/) override + bool OnGossipSelect(Player* /*player*/, uint32 /*menuId*/, uint32 /*gossipListId*/) override { me->RemoveNpcFlag(UNIT_NPC_FLAG_GOSSIP); me->GetTransport()->EnableMovement(true); @@ -1217,7 +1217,7 @@ class npc_muradin_bronzebeard_igb : public CreatureScript } } - bool GossipSelect(Player* /*player*/, uint32 /*menuId*/, uint32 /*gossipListId*/) override + bool OnGossipSelect(Player* /*player*/, uint32 /*menuId*/, uint32 /*gossipListId*/) override { me->RemoveNpcFlag(UNIT_NPC_FLAG_GOSSIP); me->GetTransport()->EnableMovement(true); @@ -1383,7 +1383,7 @@ class npc_zafod_boombox : public CreatureScript me->SetReactState(REACT_PASSIVE); } - bool GossipSelect(Player* player, uint32 /*menuId*/, uint32 /*gossipListId*/) override + bool OnGossipSelect(Player* player, uint32 /*menuId*/, uint32 /*gossipListId*/) override { player->AddItem(ITEM_GOBLIN_ROCKET_PACK, 1); CloseGossipMenuFor(player); diff --git a/src/server/scripts/Northrend/IcecrownCitadel/boss_the_lich_king.cpp b/src/server/scripts/Northrend/IcecrownCitadel/boss_the_lich_king.cpp index 12f051b540d..026eac4d68b 100644 --- a/src/server/scripts/Northrend/IcecrownCitadel/boss_the_lich_king.cpp +++ b/src/server/scripts/Northrend/IcecrownCitadel/boss_the_lich_king.cpp @@ -1190,7 +1190,7 @@ struct npc_tirion_fordring_tft : public ScriptedAI me->LoadEquipment(1); // remove glow on ashbringer } - bool GossipSelect(Player* /*player*/, uint32 menuId, uint32 gossipListId) override + bool OnGossipSelect(Player* /*player*/, uint32 menuId, uint32 gossipListId) override { if (me->GetCreatureTemplate()->GossipMenuId == menuId && !gossipListId) { @@ -2854,4 +2854,4 @@ void AddSC_boss_the_lich_king() // Achievements new achievement_been_waiting_long_time(); new achievement_neck_deep_in_vile(); -} +}
\ No newline at end of file diff --git a/src/server/scripts/Northrend/IcecrownCitadel/go_icecrown_citadel_teleport.cpp b/src/server/scripts/Northrend/IcecrownCitadel/go_icecrown_citadel_teleport.cpp index 024ce9c4fd8..1e4fd7a595e 100644 --- a/src/server/scripts/Northrend/IcecrownCitadel/go_icecrown_citadel_teleport.cpp +++ b/src/server/scripts/Northrend/IcecrownCitadel/go_icecrown_citadel_teleport.cpp @@ -51,7 +51,7 @@ class icecrown_citadel_teleport : public GameObjectScript { } - bool GossipSelect(Player* player, uint32 /*menuId*/, uint32 gossipListId) override + bool OnGossipSelect(Player* player, uint32 /*menuId*/, uint32 gossipListId) override { if (gossipListId >= TeleportSpells.size()) return false; diff --git a/src/server/scripts/Northrend/IcecrownCitadel/icecrown_citadel.cpp b/src/server/scripts/Northrend/IcecrownCitadel/icecrown_citadel.cpp index 7b4aaf428a6..ed200f0b1ad 100644 --- a/src/server/scripts/Northrend/IcecrownCitadel/icecrown_citadel.cpp +++ b/src/server/scripts/Northrend/IcecrownCitadel/icecrown_citadel.cpp @@ -581,7 +581,7 @@ class npc_alchemist_adrianna : public CreatureScript { npc_alchemist_adriannaAI(Creature* creature) : ScriptedAI(creature) { } - bool GossipHello(Player* player) override + bool OnGossipHello(Player* player) override { if (!me->FindCurrentSpellBySpellId(SPELL_HARVEST_BLIGHT_SPECIMEN) && !me->FindCurrentSpellBySpellId(SPELL_HARVEST_BLIGHT_SPECIMEN25)) if (player->HasAura(SPELL_ORANGE_BLIGHT_RESIDUE) && player->HasAura(SPELL_GREEN_BLIGHT_RESIDUE)) @@ -650,7 +650,7 @@ struct npc_entrance_faction_leader : public ScriptedAI { npc_entrance_faction_leader(Creature* creature) : ScriptedAI(creature) { } - bool GossipSelect(Player* /*player*/, uint32 menuId, uint32 /*gossipListId*/) override + bool OnGossipSelect(Player* /*player*/, uint32 menuId, uint32 /*gossipListId*/) override { if (menuId == GOSSIP_MENUID_ALLY || menuId == GOSSIP_MENUID_HORDE) if (InstanceScript* instance = me->GetInstanceScript()) @@ -1162,7 +1162,7 @@ struct go_empowering_blood_orb : public GameObjectAI _triggerGuid = trigger->GetGUID(); } - bool GossipHello(Player* player) override + bool OnGossipHello(Player* player) override { me->CastSpell(player, SPELL_EMPOWERED_BLOOD, true); HandleObjectUse(); diff --git a/src/server/scripts/Northrend/Nexus/Nexus/boss_keristrasza.cpp b/src/server/scripts/Northrend/Nexus/Nexus/boss_keristrasza.cpp index 0af477b1d63..9cb27634ec5 100644 --- a/src/server/scripts/Northrend/Nexus/Nexus/boss_keristrasza.cpp +++ b/src/server/scripts/Northrend/Nexus/Nexus/boss_keristrasza.cpp @@ -227,7 +227,7 @@ public: InstanceScript* instance; - bool GossipHello(Player* /*player*/) override + bool OnGossipHello(Player* /*player*/) override { Creature* keristrasza = ObjectAccessor::GetCreature(*me, instance->GetGuidData(DATA_KERISTRASZA)); if (keristrasza && keristrasza->IsAlive()) diff --git a/src/server/scripts/Northrend/Nexus/Oculus/oculus.cpp b/src/server/scripts/Northrend/Nexus/Oculus/oculus.cpp index 39f887b2f81..0a72610fdc7 100644 --- a/src/server/scripts/Northrend/Nexus/Oculus/oculus.cpp +++ b/src/server/scripts/Northrend/Nexus/Oculus/oculus.cpp @@ -143,7 +143,7 @@ class npc_verdisa_beglaristrasz_eternos : public CreatureScript player->DestroyItemCount(itemId, 1, true, false); } - bool GossipSelect(Player* player, uint32 menuId, uint32 gossipListId) override + bool OnGossipSelect(Player* player, uint32 menuId, uint32 gossipListId) override { switch (menuId) { diff --git a/src/server/scripts/Northrend/Ulduar/HallsOfStone/halls_of_stone.cpp b/src/server/scripts/Northrend/Ulduar/HallsOfStone/halls_of_stone.cpp index 70927971632..9b1bff74e54 100644 --- a/src/server/scripts/Northrend/Ulduar/HallsOfStone/halls_of_stone.cpp +++ b/src/server/scripts/Northrend/Ulduar/HallsOfStone/halls_of_stone.cpp @@ -685,7 +685,7 @@ public: DoMeleeAttackIfReady(); } - bool GossipSelect(Player* player, uint32 /*menuId*/, uint32 gossipListId) override + bool OnGossipSelect(Player* player, uint32 /*menuId*/, uint32 gossipListId) override { uint32 const action = player->PlayerTalkClass->GetGossipOptionAction(gossipListId); ClearGossipMenuFor(player); @@ -698,7 +698,7 @@ public: return true; } - bool GossipHello(Player* player) override + bool OnGossipHello(Player* player) override { if (me->IsQuestGiver()) player->PrepareQuestMenu(me->GetGUID()); diff --git a/src/server/scripts/Northrend/Ulduar/Ulduar/boss_flame_leviathan.cpp b/src/server/scripts/Northrend/Ulduar/Ulduar/boss_flame_leviathan.cpp index f3fbfdebf7f..3f1e5f23aa8 100644 --- a/src/server/scripts/Northrend/Ulduar/Ulduar/boss_flame_leviathan.cpp +++ b/src/server/scripts/Northrend/Ulduar/Ulduar/boss_flame_leviathan.cpp @@ -1212,7 +1212,7 @@ class npc_brann_bronzebeard_ulduar_intro : public CreatureScript _instance = creature->GetInstanceScript(); } - bool GossipSelect(Player* player, uint32 menuId, uint32 gossipListId) override + bool OnGossipSelect(Player* player, uint32 menuId, uint32 gossipListId) override { if (menuId == GOSSIP_MENU_BRANN_BRONZEBEARD && gossipListId == GOSSIP_OPTION_BRANN_BRONZEBEARD) { @@ -1266,7 +1266,7 @@ class npc_lorekeeper : public CreatureScript } } - bool GossipSelect(Player* player, uint32 menuId, uint32 gossipListId) override + bool OnGossipSelect(Player* player, uint32 menuId, uint32 gossipListId) override { if (menuId == GOSSIP_MENU_LORE_KEEPER && gossipListId == GOSSIP_OPTION_LORE_KEEPER) { diff --git a/src/server/scripts/Northrend/Ulduar/Ulduar/boss_mimiron.cpp b/src/server/scripts/Northrend/Ulduar/Ulduar/boss_mimiron.cpp index 39b7190e828..03aae53fd8a 100644 --- a/src/server/scripts/Northrend/Ulduar/Ulduar/boss_mimiron.cpp +++ b/src/server/scripts/Northrend/Ulduar/Ulduar/boss_mimiron.cpp @@ -1683,7 +1683,7 @@ class go_mimiron_hardmode_button : public GameObjectScript InstanceScript* instance; - bool GossipHello(Player* /*player*/) override + bool OnGossipHello(Player* /*player*/) override { if (me->HasFlag(GO_FLAG_NOT_SELECTABLE)) return true; diff --git a/src/server/scripts/Northrend/Ulduar/Ulduar/boss_razorscale.cpp b/src/server/scripts/Northrend/Ulduar/Ulduar/boss_razorscale.cpp index b363bd4ea8a..d129b420843 100644 --- a/src/server/scripts/Northrend/Ulduar/Ulduar/boss_razorscale.cpp +++ b/src/server/scripts/Northrend/Ulduar/Ulduar/boss_razorscale.cpp @@ -679,7 +679,7 @@ struct npc_expedition_commander : public ScriptedAI BuildBrokenHarpoons(); } - bool GossipSelect(Player* player, uint32 /*menuId*/, uint32 gossipListId) override + bool OnGossipSelect(Player* player, uint32 /*menuId*/, uint32 gossipListId) override { if (gossipListId == GOSSIP_START_ENCOUNTER) { @@ -1511,7 +1511,7 @@ public: } } - bool GossipHello(Player* /*player*/) override + bool OnGossipHello(Player* /*player*/) override { me->AddFlag(GO_FLAG_NOT_SELECTABLE); if (Creature* controller = me->FindNearestCreature(NPC_RAZORSCALE_CONTROLLER, 5.0f)) diff --git a/src/server/scripts/Northrend/Ulduar/Ulduar/boss_yogg_saron.cpp b/src/server/scripts/Northrend/Ulduar/Ulduar/boss_yogg_saron.cpp index 570a06f92fa..618d2972810 100644 --- a/src/server/scripts/Northrend/Ulduar/Ulduar/boss_yogg_saron.cpp +++ b/src/server/scripts/Northrend/Ulduar/Ulduar/boss_yogg_saron.cpp @@ -1547,7 +1547,7 @@ class npc_observation_ring_keeper : public CreatureScript DoCast(SPELL_KEEPER_ACTIVE); } - bool GossipSelect(Player* player, uint32 menuId, uint32 /*gossipListId*/) override + bool OnGossipSelect(Player* player, uint32 menuId, uint32 /*gossipListId*/) override { if (menuId != 10333) return false; diff --git a/src/server/scripts/Northrend/UtgardeKeep/UtgardePinnacle/boss_palehoof.cpp b/src/server/scripts/Northrend/UtgardeKeep/UtgardePinnacle/boss_palehoof.cpp index 049f5c62071..4d0b52018a5 100644 --- a/src/server/scripts/Northrend/UtgardeKeep/UtgardePinnacle/boss_palehoof.cpp +++ b/src/server/scripts/Northrend/UtgardeKeep/UtgardePinnacle/boss_palehoof.cpp @@ -566,7 +566,7 @@ public: InstanceScript* instance; - bool GossipHello(Player* /*player*/) override + bool OnGossipHello(Player* /*player*/) override { if (Creature* palehoof = instance->GetCreature(DATA_GORTOK_PALEHOOF)) { diff --git a/src/server/scripts/Northrend/VioletHold/violet_hold.cpp b/src/server/scripts/Northrend/VioletHold/violet_hold.cpp index 0b81438e29b..c3bab501e0e 100644 --- a/src/server/scripts/Northrend/VioletHold/violet_hold.cpp +++ b/src/server/scripts/Northrend/VioletHold/violet_hold.cpp @@ -345,7 +345,7 @@ class npc_sinclari_vh : public CreatureScript } } - bool GossipHello(Player* player) override + bool OnGossipHello(Player* player) override { // override default gossip switch (_instance->GetData(DATA_MAIN_EVENT_STATE)) @@ -366,7 +366,7 @@ class npc_sinclari_vh : public CreatureScript return false; } - bool GossipSelect(Player* player, uint32 menuId, uint32 gossipListId) override + bool OnGossipSelect(Player* player, uint32 menuId, uint32 gossipListId) override { if (menuId == GOSSIP_MENU_START_ENCOUNTER && gossipListId == 0) { @@ -1308,7 +1308,7 @@ class go_activation_crystal : public GameObjectScript { go_activation_crystalAI(GameObject* go) : GameObjectAI(go) { } - bool GossipHello(Player* player) override + bool OnGossipHello(Player* player) override { player->CastSpell(player, SPELL_CRYSTAL_ACTIVATION, true); return false; diff --git a/src/server/scripts/Northrend/zone_borean_tundra.cpp b/src/server/scripts/Northrend/zone_borean_tundra.cpp index a88dab2ae64..077f54a3f5e 100644 --- a/src/server/scripts/Northrend/zone_borean_tundra.cpp +++ b/src/server/scripts/Northrend/zone_borean_tundra.cpp @@ -63,7 +63,7 @@ public: { npc_corastraszaAI(Creature* creature) : ScriptedAI(creature) { } - bool GossipHello(Player* player) override + bool OnGossipHello(Player* player) override { if (me->IsQuestGiver()) player->PrepareQuestMenu(me->GetGUID()); @@ -84,7 +84,7 @@ public: return true; } - bool GossipSelect(Player* player, uint32 /*menuId*/, uint32 gossipListId) override + bool OnGossipSelect(Player* player, uint32 /*menuId*/, uint32 gossipListId) override { uint32 const action = player->PlayerTalkClass->GetGossipOptionAction(gossipListId); ClearGossipMenuFor(player); @@ -717,7 +717,7 @@ public: arthas->RemoveFromWorld(); } - bool GossipHello(Player* player) override + bool OnGossipHello(Player* player) override { if (me->IsQuestGiver()) player->PrepareQuestMenu(me->GetGUID()); @@ -729,7 +729,7 @@ public: return true; } - bool GossipSelect(Player* player, uint32 /*menuId*/, uint32 gossipListId) override + bool OnGossipSelect(Player* player, uint32 /*menuId*/, uint32 gossipListId) override { uint32 const action = player->PlayerTalkClass->GetGossipOptionAction(gossipListId); ClearGossipMenuFor(player); @@ -1601,7 +1601,7 @@ public: DoMeleeAttackIfReady(); } - bool GossipHello(Player* player) override + bool OnGossipHello(Player* player) override { uint32 uiGossipText = 0; char const* charGossipItem; @@ -1635,7 +1635,7 @@ public: return true; } - bool GossipSelect(Player* player, uint32 /*menuId*/, uint32 gossipListId) override + bool OnGossipSelect(Player* player, uint32 /*menuId*/, uint32 gossipListId) override { uint32 const action = player->PlayerTalkClass->GetGossipOptionAction(gossipListId); ClearGossipMenuFor(player); diff --git a/src/server/scripts/Northrend/zone_dragonblight.cpp b/src/server/scripts/Northrend/zone_dragonblight.cpp index 0d42217025f..6e616af9333 100644 --- a/src/server/scripts/Northrend/zone_dragonblight.cpp +++ b/src/server/scripts/Northrend/zone_dragonblight.cpp @@ -560,7 +560,7 @@ class npc_wyrmrest_defender : public CreatureScript } } - bool GossipSelect(Player* player, uint32 menuId, uint32 gossipListId) override + bool OnGossipSelect(Player* player, uint32 menuId, uint32 gossipListId) override { if (menuId == MENU_ID && gossipListId == GOSSIP_OPTION_ID) { diff --git a/src/server/scripts/Northrend/zone_grizzly_hills.cpp b/src/server/scripts/Northrend/zone_grizzly_hills.cpp index 262ffc44dbc..3f448058ed9 100644 --- a/src/server/scripts/Northrend/zone_grizzly_hills.cpp +++ b/src/server/scripts/Northrend/zone_grizzly_hills.cpp @@ -183,7 +183,7 @@ public: _RavenousworgGUID.Clear(); } - void QuestAccept(Player* player, Quest const* quest) override + void OnQuestAccept(Player* player, Quest const* quest) override { if (quest->GetQuestId() == QUEST_PERILOUS_ADVENTURE) { @@ -774,7 +774,7 @@ public: } } - bool GossipSelect(Player* player, uint32 /*menuId*/, uint32 /*gossipListId*/) override + bool OnGossipSelect(Player* player, uint32 /*menuId*/, uint32 /*gossipListId*/) override { DoCast(player, SPELL_SUMMON_ASHWOOD_BRAND); return false; diff --git a/src/server/scripts/Northrend/zone_howling_fjord.cpp b/src/server/scripts/Northrend/zone_howling_fjord.cpp index ca3dcc19a2e..732fbf5c45a 100644 --- a/src/server/scripts/Northrend/zone_howling_fjord.cpp +++ b/src/server/scripts/Northrend/zone_howling_fjord.cpp @@ -235,7 +235,7 @@ public: } } - void QuestAccept(Player* player, Quest const* quest) override + void OnQuestAccept(Player* player, Quest const* quest) override { if (quest->GetQuestId() == QUEST_TRAIL_OF_FIRE) StartEscort(player); @@ -371,7 +371,7 @@ struct npc_daegarn : public ScriptedAI SummonGladiator(entry); } - void QuestAccept(Player* player, Quest const* quest) override + void OnQuestAccept(Player* player, Quest const* quest) override { if (quest->GetQuestId() == QUEST_DEFEAT_AT_RING) { diff --git a/src/server/scripts/Northrend/zone_sholazar_basin.cpp b/src/server/scripts/Northrend/zone_sholazar_basin.cpp index 981d801d7a8..b64f3038ca9 100644 --- a/src/server/scripts/Northrend/zone_sholazar_basin.cpp +++ b/src/server/scripts/Northrend/zone_sholazar_basin.cpp @@ -137,7 +137,7 @@ public: } } - void QuestAccept(Player* player, Quest const* quest) override + void OnQuestAccept(Player* player, Quest const* quest) override { if (quest->GetQuestId() == QUEST_DISASTER) { diff --git a/src/server/scripts/Northrend/zone_storm_peaks.cpp b/src/server/scripts/Northrend/zone_storm_peaks.cpp index fc02e17c786..946533454d4 100644 --- a/src/server/scripts/Northrend/zone_storm_peaks.cpp +++ b/src/server/scripts/Northrend/zone_storm_peaks.cpp @@ -88,7 +88,7 @@ public: DoMeleeAttackIfReady(); } - bool GossipSelect(Player* player, uint32 menuId, uint32 gossipListId) override + bool OnGossipSelect(Player* player, uint32 menuId, uint32 gossipListId) override { if (menuId == GOSSIP_ID && gossipListId == GOSSIP_OPTION_ID) { @@ -99,7 +99,7 @@ public: return false; } - void QuestAccept(Player* /*player*/, Quest const* quest) override + void OnQuestAccept(Player* /*player*/, Quest const* quest) override { if (quest->GetQuestId() == QUEST_BITTER_DEPARTURE) Talk(SAY_QUEST_ACCEPT); @@ -132,7 +132,7 @@ public: { npc_roxi_ramrocketAI(Creature* creature) : ScriptedAI(creature) { } - bool GossipHello(Player* player) override + bool OnGossipHello(Player* player) override { //Quest Menu if (me->IsQuestGiver()) @@ -151,7 +151,7 @@ public: return true; } - bool GossipSelect(Player* player, uint32 /*menuId*/, uint32 gossipListId) override + bool OnGossipSelect(Player* player, uint32 /*menuId*/, uint32 gossipListId) override { uint32 const action = player->PlayerTalkClass->GetGossipOptionAction(gossipListId); ClearGossipMenuFor(player); @@ -494,7 +494,7 @@ public: objectCounter = 0; } - bool GossipSelect(Player* player, uint32 /*menuId*/, uint32 /*gossipListId*/) override + bool OnGossipSelect(Player* player, uint32 /*menuId*/, uint32 /*gossipListId*/) override { CloseGossipMenuFor(player); playerGUID = player->GetGUID(); diff --git a/src/server/scripts/Northrend/zone_wintergrasp.cpp b/src/server/scripts/Northrend/zone_wintergrasp.cpp index 6b64ba4eccd..dd71c269605 100644 --- a/src/server/scripts/Northrend/zone_wintergrasp.cpp +++ b/src/server/scripts/Northrend/zone_wintergrasp.cpp @@ -126,7 +126,7 @@ class npc_wg_demolisher_engineer : public CreatureScript { npc_wg_demolisher_engineerAI(Creature* creature) : ScriptedAI(creature) { } - bool GossipHello(Player* player) override + bool OnGossipHello(Player* player) override { if (me->IsQuestGiver()) player->PrepareQuestMenu(me->GetGUID()); @@ -149,7 +149,7 @@ class npc_wg_demolisher_engineer : public CreatureScript return true; } - bool GossipSelect(Player* player, uint32 /*menuId*/, uint32 gossipListId) override + bool OnGossipSelect(Player* player, uint32 /*menuId*/, uint32 gossipListId) override { uint32 const action = player->PlayerTalkClass->GetGossipOptionAction(gossipListId); CloseGossipMenuFor(player); @@ -214,7 +214,7 @@ class npc_wg_spirit_guide : public CreatureScript DoCast(me, SPELL_CHANNEL_SPIRIT_HEAL); } - bool GossipHello(Player* player) override + bool OnGossipHello(Player* player) override { if (me->IsQuestGiver()) player->PrepareQuestMenu(me->GetGUID()); @@ -232,7 +232,7 @@ class npc_wg_spirit_guide : public CreatureScript return true; } - bool GossipSelect(Player* player, uint32 /*menuId*/, uint32 gossipListId) override + bool OnGossipSelect(Player* player, uint32 /*menuId*/, uint32 gossipListId) override { uint32 const action = player->PlayerTalkClass->GetGossipOptionAction(gossipListId); CloseGossipMenuFor(player); @@ -294,7 +294,7 @@ class npc_wg_queue : public CreatureScript DoMeleeAttackIfReady(); } - bool GossipHello(Player* player) override + bool OnGossipHello(Player* player) override { if (me->IsQuestGiver()) player->PrepareQuestMenu(me->GetGUID()); @@ -323,7 +323,7 @@ class npc_wg_queue : public CreatureScript return true; } - bool GossipSelect(Player* player, uint32 /*menuId*/, uint32 /*gossipListId*/) override + bool OnGossipSelect(Player* player, uint32 /*menuId*/, uint32 /*gossipListId*/) override { CloseGossipMenuFor(player); diff --git a/src/server/scripts/Northrend/zone_zuldrak.cpp b/src/server/scripts/Northrend/zone_zuldrak.cpp index 50843c06cb4..9432dab4685 100644 --- a/src/server/scripts/Northrend/zone_zuldrak.cpp +++ b/src/server/scripts/Northrend/zone_zuldrak.cpp @@ -268,7 +268,7 @@ public: return; } - bool GossipSelect(Player* player, uint32 /*menuId*/, uint32 /*gossipListId*/) override + bool OnGossipSelect(Player* player, uint32 /*menuId*/, uint32 /*gossipListId*/) override { _events.ScheduleEvent(EVENT_RECRUIT_1, 100ms); CloseGossipMenuFor(player); @@ -309,7 +309,7 @@ public: { go_scourge_enclosureAI(GameObject* go) : GameObjectAI(go) { } - bool GossipHello(Player* player) override + bool OnGossipHello(Player* player) override { me->UseDoorOrButton(); if (player->GetQuestStatus(QUEST_OUR_ONLY_HOPE) == QUEST_STATUS_INCOMPLETE) @@ -563,7 +563,7 @@ public: } } - bool GossipSelect(Player* player, uint32 /*menuId*/, uint32 /*gossipListId*/) override + bool OnGossipSelect(Player* player, uint32 /*menuId*/, uint32 /*gossipListId*/) override { CloseGossipMenuFor(player); DoCast(player, SPELL_ALCHEMIST_APPRENTICE_INVISBUFF); @@ -594,7 +594,7 @@ public: { go_finklesteins_cauldronAI(GameObject* go) : GameObjectAI(go) { } - bool GossipHello(Player* player) override + bool OnGossipHello(Player* player) override { player->CastSpell(player, SPELL_POT_CHECK); return true; |
