aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWyrserth <43747507+Wyrserth@users.noreply.github.com>2019-06-04 19:21:40 +0200
committerShauren <shauren.trinity@gmail.com>2021-12-10 21:38:27 +0100
commitdb6fdef3d73ed6a57a1be9db391d714827bfc6de (patch)
tree050e26e8ca5cbd3acf24555d998a392ccf9551df /src
parentadb5535483cf202572ae34065959aa94cf0304e8 (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 (cherry picked from commit b5e04c892084567ccbeacdb1500f0488f1eb48b8)
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Northrend/zone_borean_tundra.cpp41
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 e9b0123453b..d5b0d53e5e8 100644
--- a/src/server/scripts/Northrend/zone_borean_tundra.cpp
+++ b/src/server/scripts/Northrend/zone_borean_tundra.cpp
@@ -2483,6 +2483,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();
@@ -2509,4 +2549,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();
}