aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoroffl <offl@users.noreply.github.com>2021-08-24 23:27:14 +0300
committerShauren <shauren.trinity@gmail.com>2022-03-13 22:13:20 +0100
commit0b50fd183fa32c065b83355704a5ba269e08acae (patch)
tree05e4fe627d6e7ab8035c4e9ba3e473089594979c /src
parent4164d5515847731ed3881ea6ce287bef61c69e0e (diff)
DB/Quest: Rework 'Bitter Departure' (12832)
(cherry picked from commit afafff57a85232d42517439496a5281598a08126)
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Northrend/zone_storm_peaks.cpp83
1 files changed, 0 insertions, 83 deletions
diff --git a/src/server/scripts/Northrend/zone_storm_peaks.cpp b/src/server/scripts/Northrend/zone_storm_peaks.cpp
index a0095bbd309..1533ee51e89 100644
--- a/src/server/scripts/Northrend/zone_storm_peaks.cpp
+++ b/src/server/scripts/Northrend/zone_storm_peaks.cpp
@@ -29,88 +29,6 @@
#include "Vehicle.h"
#include "WorldSession.h"
-/////////////////////
-///npc_injured_goblin
-/////////////////////
-
-enum InjuredGoblinMiner
-{
- QUEST_BITTER_DEPARTURE = 12832,
- SAY_QUEST_ACCEPT = 0,
- SAY_END_WP_REACHED = 1,
- GOSSIP_ID = 9859,
- GOSSIP_OPTION_ID = 0
-};
-
-class npc_injured_goblin : public CreatureScript
-{
-public:
- npc_injured_goblin() : CreatureScript("npc_injured_goblin") { }
-
- struct npc_injured_goblinAI : public EscortAI
- {
- npc_injured_goblinAI(Creature* creature) : EscortAI(creature) { }
-
- void WaypointReached(uint32 waypointId, uint32 /*pathId*/) override
- {
- Player* player = GetPlayerForEscort();
- if (!player)
- return;
-
- switch (waypointId)
- {
- case 26:
- Talk(SAY_END_WP_REACHED, player);
- break;
- case 27:
- player->GroupEventHappens(QUEST_BITTER_DEPARTURE, me);
- break;
- }
- }
-
- void JustEngagedWith(Unit* /*who*/) override { }
-
- void Reset() override { }
-
- void JustDied(Unit* /*killer*/) override
- {
- Player* player = GetPlayerForEscort();
- if (HasEscortState(STATE_ESCORT_ESCORTING) && player)
- player->FailQuest(QUEST_BITTER_DEPARTURE);
- }
-
- void UpdateAI(uint32 uiDiff) override
- {
- EscortAI::UpdateAI(uiDiff);
- if (!UpdateVictim())
- return;
- DoMeleeAttackIfReady();
- }
-
- bool OnGossipSelect(Player* player, uint32 menuId, uint32 gossipListId) override
- {
- if (menuId == GOSSIP_ID && gossipListId == GOSSIP_OPTION_ID)
- {
- CloseGossipMenuFor(player);
- me->SetFaction(FACTION_ESCORTEE_N_NEUTRAL_PASSIVE);
- Start(true, true, player->GetGUID());
- }
- return false;
- }
-
- void OnQuestAccept(Player* /*player*/, Quest const* quest) override
- {
- if (quest->GetQuestId() == QUEST_BITTER_DEPARTURE)
- Talk(SAY_QUEST_ACCEPT);
- }
- };
-
- CreatureAI* GetAI(Creature* creature) const override
- {
- return new npc_injured_goblinAI(creature);
- }
-};
-
/*######
## npc_roxi_ramrocket
######*/
@@ -1494,7 +1412,6 @@ class spell_q12823_remove_collapsing_cave_aura : public SpellScript
void AddSC_storm_peaks()
{
- new npc_injured_goblin();
new npc_roxi_ramrocket();
new npc_brunnhildar_prisoner();
new npc_freed_protodrake();