mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-28 04:42:10 +01:00
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 b5e04c8920)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user