From 161a9744c58df7c44acd7099bde6ad0c176cd735 Mon Sep 17 00:00:00 2001 From: Majesty <32709570+majestyotbr@users.noreply.github.com> Date: Tue, 9 Jan 2024 09:33:38 -0300 Subject: [PATCH] improve --- .../feaster_of_souls/portal_brain_head.lua | 48 +++++++++---------- 1 file changed, 24 insertions(+), 24 deletions(-) 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 75d0cae92c8..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 @@ -7,28 +7,28 @@ local config = { } local entrancesTiles = { - { position = { x = 31937, y = 32324, z = 10 } }, - { position = { x = 31937, y = 32325, z = 10 } }, - { position = { x = 31937, y = 32326, z = 10 } }, - { position = { x = 31951, y = 32310, z = 10 } }, - { position = { x = 31952, y = 32310, z = 10 } }, - { position = { x = 31953, y = 32310, z = 10 } }, - { position = { x = 31954, y = 32310, z = 10 } }, - { position = { x = 31955, y = 32310, z = 10 } }, - { position = { x = 31956, y = 32310, z = 10 } }, - { position = { x = 31957, y = 32310, z = 10 } }, - { position = { x = 31951, y = 32339, z = 10 } }, - { position = { x = 31952, y = 32339, z = 10 } }, - { position = { x = 31953, y = 32339, z = 10 } }, - { position = { x = 31953, y = 32340, z = 10 } }, - { position = { x = 31954, y = 32340, z = 10 } }, - { position = { x = 31955, y = 32340, z = 10 } }, - { position = { x = 31955, y = 32341, z = 10 } }, - { position = { x = 31969, y = 32323, z = 10 } }, - { position = { x = 31969, y = 32324, z = 10 } }, - { position = { x = 31969, y = 32325, z = 10 } }, - { position = { x = 31969, y = 32326, z = 10 } }, - { position = { x = 31969, y = 32327, z = 10 } }, + { 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)) @@ -124,8 +124,8 @@ function teleportBoss.onStepIn(creature, item, position, fromPosition) player:sendBosstiaryCooldownTimer() end -for value in pairs(entrancesTiles) do - teleportBoss:position(entrancesTiles[value].position) +for _, registerPosition in ipairs(entrancesTiles) do + teleportBoss:position(registerPosition) end teleportBoss:type("stepin")