Skip to content

Commit

Permalink
improve: brain head boss teleport from action id to position (#2087)
Browse files Browse the repository at this point in the history
Migrate brain head boss teleport from action id to position.

---------

Co-authored-by: Luan Santos <[email protected]>
  • Loading branch information
majestyotbr and luan authored Jan 9, 2024
1 parent 6ae7aec commit ea4c6e8
Showing 1 changed file with 39 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,41 @@ 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 = 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 = 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 },
{ 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 },
{ 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))
local encounter = Encounter("Brain Head", {
zone = zone,
Expand Down Expand Up @@ -99,7 +134,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()

Expand Down

0 comments on commit ea4c6e8

Please sign in to comment.