aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoroffl <offl@users.noreply.github.com>2020-05-26 00:01:54 +0200
committerKillyana <morphone1@gmail.com>2020-05-26 00:01:54 +0200
commite48c4151560049a876418f69cd25153a259f50eb (patch)
tree5de848936b0b4956e0409c1ba0ef89c1c3b71193 /src
parent1316ca482d1d20d03bbdfa5aa338955d96dd03bb (diff)
DB/Quest: Convert & update support for 'Mark V is Alive!' to SAI
Closes #24686
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Outland/zone_netherstorm.cpp109
1 files changed, 0 insertions, 109 deletions
diff --git a/src/server/scripts/Outland/zone_netherstorm.cpp b/src/server/scripts/Outland/zone_netherstorm.cpp
index adba219d5a1..8d6c330c385 100644
--- a/src/server/scripts/Outland/zone_netherstorm.cpp
+++ b/src/server/scripts/Outland/zone_netherstorm.cpp
@@ -24,7 +24,6 @@ EndScriptData */
/* ContentData
npc_commander_dawnforge
-npc_maxx_a_million
go_captain_tyralius_prison
EndContentData */
@@ -469,113 +468,6 @@ public:
};
/*######
-## npc_maxx_a_million
-######*/
-
-enum MaxxAMillion
-{
- QUEST_MARK_V_IS_ALIVE = 10191,
- GO_DRAENEI_MACHINE = 183771
-};
-
-class npc_maxx_a_million_escort : public CreatureScript
-{
-public:
- npc_maxx_a_million_escort() : CreatureScript("npc_maxx_a_million_escort") { }
-
- struct npc_maxx_a_million_escortAI : public EscortAI
- {
- npc_maxx_a_million_escortAI(Creature* creature) : EscortAI(creature)
- {
- Initialize();
- }
-
- void Initialize()
- {
- bTake = false;
- uiTakeTimer = 3000;
- }
-
- bool bTake;
- uint32 uiTakeTimer;
-
- void Reset() override
- {
- Initialize();
- }
-
- void WaypointReached(uint32 waypointId, uint32 /*pathId*/) override
- {
- Player* player = GetPlayerForEscort();
- if (!player)
- return;
-
- switch (waypointId)
- {
- case 7:
- case 17:
- case 29:
- //Find Object and "work"
- if (GetClosestGameObjectWithEntry(me, GO_DRAENEI_MACHINE, INTERACTION_DISTANCE))
- {
- // take the GO -> animation
- me->HandleEmoteCommand(EMOTE_STATE_LOOT);
- SetEscortPaused(true);
- bTake = true;
- }
- break;
- case 36: //return and quest_complete
- player->CompleteQuest(QUEST_MARK_V_IS_ALIVE);
- break;
- }
- }
-
- void JustDied(Unit* /*killer*/) override
- {
- if (Player* player = GetPlayerForEscort())
- player->FailQuest(QUEST_MARK_V_IS_ALIVE);
- }
-
- void UpdateAI(uint32 uiDiff) override
- {
- EscortAI::UpdateAI(uiDiff);
-
- if (bTake)
- {
- if (uiTakeTimer < uiDiff)
- {
- me->HandleEmoteCommand(EMOTE_STATE_NONE);
- if (GameObject* go = GetClosestGameObjectWithEntry(me, GO_DRAENEI_MACHINE, INTERACTION_DISTANCE))
- {
- SetEscortPaused(false);
- bTake = false;
- uiTakeTimer = 3000;
- go->Delete();
- }
- }
- else
- uiTakeTimer -= uiDiff;
- }
- DoMeleeAttackIfReady();
- }
-
- void QuestAccept(Player* player, Quest const* quest) override
- {
- if (quest->GetQuestId() == QUEST_MARK_V_IS_ALIVE)
- {
- me->SetFaction(FACTION_ESCORTEE_N_NEUTRAL_PASSIVE);
- Start(false, false, player->GetGUID());
- }
- }
- };
-
- CreatureAI* GetAI(Creature* creature) const override
- {
- return new npc_maxx_a_million_escortAI(creature);
- }
-};
-
-/*######
## go_captain_tyralius_prison
######*/
@@ -674,7 +566,6 @@ void AddSC_netherstorm()
new npc_commander_dawnforge();
new at_commander_dawnforge();
new npc_phase_hunter();
- new npc_maxx_a_million_escort();
new go_captain_tyralius_prison();
new npc_captain_tyralius();
}