From 9d4c9eb986c4c6e67f5622269fc92d62e64b9e4b Mon Sep 17 00:00:00 2001 From: Skjalf <47818697+Nyeriah@users.noreply.github.com> Date: Sun, 30 Jun 2024 17:13:44 -0300 Subject: [PATCH] fix: Update nightbane blackened urn script --- .../scripts/Karazhan/instance_karazhan.cpp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/Bracket_70_2_2/scripts/Karazhan/instance_karazhan.cpp b/src/Bracket_70_2_2/scripts/Karazhan/instance_karazhan.cpp index 09cbd229..7fe24c37 100644 --- a/src/Bracket_70_2_2/scripts/Karazhan/instance_karazhan.cpp +++ b/src/Bracket_70_2_2/scripts/Karazhan/instance_karazhan.cpp @@ -21,17 +21,6 @@ class go_blackened_urn_70 : public GameObjectScript //right now that doesn't work because of how the urn works bool OnGossipHello(Player* player, GameObject* go) override { - float IntroWay[8][3] = - { - {-11053.37f, -1794.48f, 149.00f}, - {-11141.07f, -1841.40f, 125.00f}, - {-11187.28f, -1890.23f, 125.00f}, - {-11189.20f, -1931.25f, 125.00f}, - {-11153.76f, -1948.93f, 125.00f}, - {-11128.73f, -1929.75f, 125.00f}, - {-11140.00f, -1915.00f, 122.00f}, - {-11163.00f, -1903.00f, 91.473f} - }; //TODO: move to table if (player->HasItemCount(ITEM_BLACKENED_URN, 1)) { @@ -39,7 +28,7 @@ class go_blackened_urn_70 : public GameObjectScript { if (pInstance->GetData(DATA_NIGHTBANE) != DONE && !go->FindNearestCreature(NPC_NIGHTBANE, 40.0f)) if (Creature* cr = ObjectAccessor::GetCreature(*player, pInstance->GetGuidData(DATA_NIGHTBANE))) - cr->GetMotionMaster()->MovePoint(0, IntroWay[0][0], IntroWay[0][1], IntroWay[0][2]); + cr->AI()->DoAction(0 /*ACTION_START_INTRO */); } } else