diff options
| author | Wyrserth <43747507+Wyrserth@users.noreply.github.com> | 2019-06-04 19:21:40 +0200 |
|---|---|---|
| committer | Giacomo Pozzoni <giacomopoz@gmail.com> | 2019-06-04 19:21:40 +0200 |
| commit | b5e04c892084567ccbeacdb1500f0488f1eb48b8 (patch) | |
| tree | 4a8836f766e878a4e0aa151b3d336bcfd6d19388 /src | |
| parent | 7dd87e3df44c1c5b9b8ffb9652911d46d6676c38 (diff) | |
Script/Quest: implement event for the quest Orabus the Helmsman (#23346)
* Script/Quest: implement event for the quest Orabus the Helmsman.
Thanks Wyreth for the original script.
* Fix coordinates that I inverted by mistake.
* Rename 9999_99_99_99_world.sql to 2019_06_04_04_world.sql
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/scripts/Northrend/zone_borean_tundra.cpp | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/server/scripts/Northrend/zone_borean_tundra.cpp b/src/server/scripts/Northrend/zone_borean_tundra.cpp index 2c74c4ffab3..347a9433e5f 100644 --- a/src/server/scripts/Northrend/zone_borean_tundra.cpp +++ b/src/server/scripts/Northrend/zone_borean_tundra.cpp @@ -2485,6 +2485,46 @@ public: } }; +enum OrabusTheHelmsman +{ + NPC_ORABUS = 32576, + NPC_KVALDIR_CREWMAN_1 = 32577, + NPC_KVALDIR_CREWMAN_2 = 32578, + NPC_KVALDIR_CREWMAN_3 = 32579, + NPC_KVALDIR_CREWMAN_4 = 32580 +}; + +class npc_orabus_the_helmsman_ship_exit_pos : public UnitScript +{ +public: + npc_orabus_the_helmsman_ship_exit_pos() : UnitScript("npc_orabus_the_helmsman_ship_exit_pos") { } + + void ModifyVehiclePassengerExitPos(Unit* passenger, Vehicle* /*vehicle*/, Position& pos) + { + if (passenger->GetTypeId() == TYPEID_UNIT) + { + switch (passenger->GetEntry()) + { + case NPC_ORABUS: + pos.Relocate(2807.858f, 7038.571f, 7.075813f, 4.73481f); + break; + case NPC_KVALDIR_CREWMAN_1: + pos.Relocate(2801.168f, 7046.468f, 5.362013f, 4.73481f); + break; + case NPC_KVALDIR_CREWMAN_2: + pos.Relocate(2803.729f, 7046.516f, 5.362013f, 4.73481f); + break; + case NPC_KVALDIR_CREWMAN_3: + pos.Relocate(2801.48f, 7051.379f, 5.362913f, 4.73481f); + break; + case NPC_KVALDIR_CREWMAN_4: + pos.Relocate(2803.319f, 7051.411f, 5.362913f, 4.73481f); + break; + } + } + } +}; + void AddSC_borean_tundra() { new npc_sinkhole_kill_credit(); @@ -2511,4 +2551,5 @@ void AddSC_borean_tundra() new spell_windsoul_totem_aura(); new spell_q11719_bloodspore_ruination_45997(); new npc_bloodmage_laurith(); + new npc_orabus_the_helmsman_ship_exit_pos(); } |
