From fe5f7972599a174e879adf89f72e94df7d311887 Mon Sep 17 00:00:00 2001 From: Majesty <32709570+majestyotbr@users.noreply.github.com> Date: Sun, 7 Jan 2024 05:02:48 -0300 Subject: [PATCH 1/2] improve: brain head boss teleport from action id to position --- .../feaster_of_souls/portal_brain_head.lua | 30 ++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/data-otservbr-global/scripts/actions/quests/feaster_of_souls/portal_brain_head.lua b/data-otservbr-global/scripts/actions/quests/feaster_of_souls/portal_brain_head.lua index d76538b4236..e984921f39d 100644 --- a/data-otservbr-global/scripts/actions/quests/feaster_of_souls/portal_brain_head.lua +++ b/data-otservbr-global/scripts/actions/quests/feaster_of_souls/portal_brain_head.lua @@ -6,6 +6,31 @@ local config = { exitPosition = Position(31971, 32325, 10), } +local entrancesTiles = { + { x = 31937, y = 32324, z = 10 }, + { x = 31937, y = 32325, z = 10 }, + { x = 31937, y = 32326, z = 10 }, + { x = 31951, y = 32310, z = 10 }, + { x = 31952, y = 32310, z = 10 }, + { x = 31953, y = 32310, z = 10 }, + { x = 31954, y = 32310, z = 10 }, + { x = 31955, y = 32310, z = 10 }, + { x = 31956, y = 32310, z = 10 }, + { x = 31957, y = 32310, z = 10 }, + { x = 31951, y = 32339, z = 10 }, + { x = 31952, y = 32339, z = 10 }, + { x = 31953, y = 32339, z = 10 }, + { x = 31953, y = 32340, z = 10 }, + { x = 31954, y = 32340, z = 10 }, + { x = 31955, y = 32340, z = 10 }, + { x = 31955, y = 32341, z = 10 }, + { x = 31969, y = 32323, z = 10 }, + { x = 31969, y = 32324, z = 10 }, + { x = 31969, y = 32325, z = 10 }, + { x = 31969, y = 32326, z = 10 }, + { x = 31969, y = 32327, z = 10 }, +} + local zone = Zone("boss." .. toKey(config.bossName)) local encounter = Encounter("Brain Head", { zone = zone, @@ -99,7 +124,10 @@ function teleportBoss.onStepIn(creature, item, position, fromPosition) player:sendBosstiaryCooldownTimer() end -teleportBoss:aid(30407) +for _, registerPosition in ipairs(entrancesTiles) do + teleportBoss:position(registerPosition) +end + teleportBoss:type("stepin") teleportBoss:register() From 9e767bd02ad6df18daf1af3ce4877373f9298db2 Mon Sep 17 00:00:00 2001 From: Luan Santos Date: Tue, 9 Jan 2024 11:58:13 -0800 Subject: [PATCH 2/2] Update data-otservbr-global/scripts/actions/quests/feaster_of_souls/portal_brain_head.lua --- .../quests/feaster_of_souls/portal_brain_head.lua | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/data-otservbr-global/scripts/actions/quests/feaster_of_souls/portal_brain_head.lua b/data-otservbr-global/scripts/actions/quests/feaster_of_souls/portal_brain_head.lua index e984921f39d..725359eb64a 100644 --- a/data-otservbr-global/scripts/actions/quests/feaster_of_souls/portal_brain_head.lua +++ b/data-otservbr-global/scripts/actions/quests/feaster_of_souls/portal_brain_head.lua @@ -11,11 +11,18 @@ local entrancesTiles = { { x = 31937, y = 32325, z = 10 }, { x = 31937, y = 32326, z = 10 }, { x = 31951, y = 32310, z = 10 }, + { x = 31952, y = 32309, z = 10 }, { x = 31952, y = 32310, z = 10 }, + { x = 31953, y = 32309, z = 10 }, { x = 31953, y = 32310, z = 10 }, { x = 31954, y = 32310, z = 10 }, - { x = 31955, y = 32310, z = 10 }, + { x = 31954, y = 32311, z = 10 }, + { x = 31955, y = 32311, z = 10 }, + { x = 31956, y = 32309, z = 10 }, { x = 31956, y = 32310, z = 10 }, + { x = 31956, y = 32311, z = 10 }, + { x = 31957, y = 32308, z = 10 }, + { x = 31957, y = 32309, z = 10 }, { x = 31957, y = 32310, z = 10 }, { x = 31951, y = 32339, z = 10 }, { x = 31952, y = 32339, z = 10 }, @@ -29,6 +36,9 @@ local entrancesTiles = { { x = 31969, y = 32325, z = 10 }, { x = 31969, y = 32326, z = 10 }, { x = 31969, y = 32327, z = 10 }, + { x = 31970, y = 32323, z = 10 }, + { x = 31970, y = 32324, z = 10 }, + { x = 31970, y = 32326, z = 10 }, } local zone = Zone("boss." .. toKey(config.bossName))