diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/server/scripts/Northrend/zone_sholazar_basin.cpp | 105 |
1 files changed, 0 insertions, 105 deletions
diff --git a/src/server/scripts/Northrend/zone_sholazar_basin.cpp b/src/server/scripts/Northrend/zone_sholazar_basin.cpp index 1fbe817b82c..d0702789a66 100644 --- a/src/server/scripts/Northrend/zone_sholazar_basin.cpp +++ b/src/server/scripts/Northrend/zone_sholazar_basin.cpp @@ -597,110 +597,6 @@ public: }; /*###### -## Quest: Reconnaissance Flight (12671) -######*/ -enum ReconnaissanceFlight -{ - NPC_PLANE = 28710, // Vic's Flying Machine - NPC_PILOT = 28646, - - VIC_SAY_0 = 0, - VIC_SAY_1 = 1, - VIC_SAY_2 = 2, - VIC_SAY_3 = 3, - VIC_SAY_4 = 4, - VIC_SAY_5 = 5, - VIC_SAY_6 = 6, - PLANE_EMOTE = 0, - - SPELL_ENGINE = 52255, // Engine on Fire - - SPELL_LAND = 52226, // Land Flying Machine - SPELL_CREDIT = 53328 // Land Flying Machine Credit -}; - -class npc_vics_flying_machine : public CreatureScript -{ -public: - npc_vics_flying_machine() : CreatureScript("npc_vics_flying_machine") { } - - struct npc_vics_flying_machineAI : public VehicleAI - { - npc_vics_flying_machineAI(Creature* creature) : VehicleAI(creature) { } - - void PassengerBoarded(Unit* passenger, int8 /*seatId*/, bool apply) override - { - if (apply && passenger->GetTypeId() == TYPEID_PLAYER) - { - /// @workaround - Because accessory gets unmounted when using vehicle_template_accessory. - /// When vehicle spawns accessory is mounted to seat 0,but when player mounts - /// he uses the same seat (instead of mounting to seat 1) kicking the accessory out. - passenger->ChangeSeat(1, false); - me->GetVehicleKit()->InstallAccessory(NPC_PILOT, 0, true, TEMPSUMMON_DEAD_DESPAWN, 0); - me->GetMotionMaster()->MovePath(NPC_PLANE, false); - } - } - - void MovementInform(uint32 type, uint32 id) override - { - if (type != WAYPOINT_MOTION_TYPE) - return; - - if (Creature* pilot = GetClosestCreatureWithEntry(me, NPC_PILOT, 10)) - switch (id) - { - case 5: - pilot->AI()->Talk(VIC_SAY_0); - break; - case 11: - pilot->AI()->Talk(VIC_SAY_1); - break; - case 12: - pilot->AI()->Talk(VIC_SAY_2); - break; - case 14: - pilot->AI()->Talk(VIC_SAY_3); - break; - case 15: - pilot->AI()->Talk(VIC_SAY_4); - break; - case 17: - pilot->AI()->Talk(VIC_SAY_5); - break; - case 21: - pilot->AI()->Talk(VIC_SAY_6); - break; - case 25: - Talk(PLANE_EMOTE); - DoCast(SPELL_ENGINE); - me->AddUnitFlag2(UNIT_FLAG2_FORCE_MOVEMENT); - break; - } - } - - void SpellHit(Unit* /*caster*/, SpellInfo const* spell) override - { - if (spell->Id == SPELL_LAND) - { - Unit* passenger = me->GetVehicleKit()->GetPassenger(1); // player should be on seat 1 - if (passenger && passenger->GetTypeId() == TYPEID_PLAYER) - { - passenger->CastSpell(passenger, SPELL_CREDIT, true); - passenger->ExitVehicle(); - } - } - } - - void UpdateAI(uint32 /*diff*/) override { } - }; - - CreatureAI* GetAI(Creature* creature) const override - { - return new npc_vics_flying_machineAI(creature); - } -}; - -/*###### ## Quest Dreadsaber Mastery: Stalking the Prey (12550) ######*/ @@ -796,7 +692,6 @@ void AddSC_sholazar_basin() new spell_q12620_the_lifewarden_wrath(); new spell_q12589_shoot_rjr(); new npc_haiphoon(); - new npc_vics_flying_machine(); new spell_shango_tracks(); RegisterSpellScript(spell_q12611_deathbolt); } |