Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve: brain head boss teleport from action id to position #2087

Merged
merged 2 commits into from
Jan 9, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
}
luan marked this conversation as resolved.
Show resolved Hide resolved

local zone = Zone("boss." .. toKey(config.bossName))
local encounter = Encounter("Brain Head", {
zone = zone,
Expand Down Expand Up @@ -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()

Expand Down