Skip to content

Commit

Permalink
improve
Browse files Browse the repository at this point in the history
  • Loading branch information
majestyotbr committed Jan 8, 2024
1 parent fd348bf commit a49ff86
Showing 1 changed file with 27 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,29 @@ local config = {
exitPosition = Position(31971, 32325, 10),
}

local tiles = {
{ 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 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 } },
}

local zone = Zone("boss." .. toKey(config.bossName))
Expand Down Expand Up @@ -124,9 +124,11 @@ function teleportBoss.onStepIn(creature, item, position, fromPosition)
player:sendBosstiaryCooldownTimer()
end

for a = 1, #tiles do
teleportBoss:position(tiles[a])
for value in pairs(entrancesTiles) do
teleportBoss:position(entrancesTiles[value].position)
end

teleportBoss:type("stepin")
teleportBoss:register()

SimpleTeleport(Position(31946, 32334, 10), config.exitPosition)

0 comments on commit a49ff86

Please sign in to comment.