Skip to content

Commit

Permalink
Ferumbras Ascension - Levers - final
Browse files Browse the repository at this point in the history
  • Loading branch information
htc16 committed Oct 23, 2024
1 parent e7115dd commit 64ff86d
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function leverFerumbras.onUse(player, item, fromPosition, target, toPosition, is
end
end
if item.itemid == 8911 then
if doCheckBossRoom(player:getId(), "Ascending Ferumbras", Position(33379, 31460, 14), Position(33405, 31485, 14)) then
if player:doCheckBossRoom("Ascending Ferumbras", Position(33379, 31460, 14), Position(33405, 31485, 14)) then
Game.createMonster("Ascending Ferumbras", config.BossPosition, true, true)
for b = 1, 10 do
local xrand = math.random(-10, 10)
Expand All @@ -59,7 +59,7 @@ function leverFerumbras.onUse(player, item, fromPosition, target, toPosition, is
playerTile:getPosition():sendMagicEffect(CONST_ME_POFF)
playerTile:teleportTo(config.newPosition)
playerTile:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
playerTile:setStorageValue(Storage.FerumbrasAscension.FerumbrasTimer, os.time() + 60 * 60 * 20 * 24)
playerTile:setStorageValue(Storage.Quest.U10_90.FerumbrasAscension.FerumbrasTimer, os.time() + 60 * 60 * 20 * 24)
table.insert(playersTable, playerTile:getId())
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function leverMazoran.onUse(player, item, fromPosition, target, toPosition, isHo

if item.itemid == 8911 then
local playersTable = {}
if doCheckBossRoom(player:getId(), "Mazoran", Position(33572, 32679, 14), Position(33599, 32701, 14)) then
if player:doCheckBossRoom("Mazoran", Position(33572, 32679, 14), Position(33599, 32701, 14)) then
local specs, spec = Game.getSpectators(config.centerRoom, false, false, 15, 15, 15, 15)
for i = 1, #specs do
spec = specs[i]
Expand All @@ -39,7 +39,7 @@ function leverMazoran.onUse(player, item, fromPosition, target, toPosition, isHo
playerTile:getPosition():sendMagicEffect(CONST_ME_POFF)
playerTile:teleportTo(config.newPosition)
playerTile:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
playerTile:setStorageValue(Storage.FerumbrasAscension.MazoranTimer, os.time() + os.time() + 60 * 60 * 2 * 24)
playerTile:setStorageValue(Storage.Quest.U10_90.FerumbrasAscension.MazoranTimer, os.time() + os.time() + 60 * 60 * 2 * 24)
table.insert(playersTable, playerTile:getId())
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function leverPlagirath.onUse(player, item, fromPosition, target, toPosition, is
playerTile:getPosition():sendMagicEffect(CONST_ME_POFF)
playerTile:teleportTo(config.newPosition)
playerTile:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
playerTile:setStorageValue(Storage.FerumbrasAscension.PlagirathTimer, os.time() + 60 * 60 * 24 * 2)
playerTile:setStorageValue(Storage.Quest.U10_90.FerumbrasAscension.PlagirathTimer, os.time() + 60 * 60 * 24 * 2)
end
end
Game.setStorageValue(Storage.Quest.U10_90.FerumbrasAscension.PlagirathTimer, 1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function ferumbrasAscendantRatLever.onUse(player, item, fromPosition, target, to

if item.itemid == 8911 then
local playersTable = {}
if doCheckBossRoom(player:getId(), "The Lord of the Lice", Position(33187, 31429, 12), Position(33242, 31487, 12)) then
if player:doCheckBossRoom("The Lord of the Lice", Position(33187, 31429, 12), Position(33242, 31487, 12)) then
local specs, spec = Game.getSpectators(config.centerRoom, false, false, 30, 30, 30, 30)
for i = 1, #specs do
spec = specs[i]
Expand All @@ -39,7 +39,7 @@ function ferumbrasAscendantRatLever.onUse(player, item, fromPosition, target, to
playerTile:getPosition():sendMagicEffect(CONST_ME_POFF)
playerTile:teleportTo(config.newPosition)
playerTile:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
playerTile:setStorageValue(Storage.FerumbrasAscension.TheLordOfTheLiceTimer, os.time() + 60 * 60 * 2 * 24)
playerTile:setStorageValue(Storage.Quest.U10_90.FerumbrasAscension.TheLordOfTheLiceTimer, os.time() + 60 * 60 * 2 * 24)
table.insert(playersTable, playerTile:getId())
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function leverShulgrax.onUse(player, item, fromPosition, target, toPosition, isH
end
if item.itemid == 8911 then
local playersTable = {}
if doCheckBossRoom(player:getId(), "Shulgrax", Position(33473, 32776, 13), Position(33496, 32798, 13)) then
if player:doCheckBossRoom("Shulgrax", Position(33473, 32776, 13), Position(33496, 32798, 13)) then
local specs, spec = Game.getSpectators(config.centerRoom, false, false, 15, 15, 15, 15)
for i = 1, #specs do
spec = specs[i]
Expand All @@ -38,7 +38,7 @@ function leverShulgrax.onUse(player, item, fromPosition, target, toPosition, isH
playerTile:getPosition():sendMagicEffect(CONST_ME_POFF)
playerTile:teleportTo(config.newPosition)
playerTile:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
playerTile:setStorageValue(Storage.FerumbrasAscension.ShulgraxTimer, os.time() + 60 * 60 * 2 * 24)
playerTile:setStorageValue(Storage.Quest.U10_90.FerumbrasAscension.ShulgraxTimer, os.time() + 60 * 60 * 2 * 24)
table.insert(playersTable, playerTile:getId())
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function leverTarbaz.onUse(player, item, fromPosition, target, toPosition, isHot
end
if item.itemid == 8911 then
local playersTable = {}
if doCheckBossRoom(player:getId(), "Tarbaz", Position(33446, 32833, 11), Position(33515, 32875, 12)) then
if player:doCheckBossRoom("Tarbaz", Position(33446, 32833, 11), Position(33515, 32875, 12)) then
local specs, spec = Game.getSpectators(config.centerRoom, false, false, 15, 15, 15, 15)
for i = 1, #specs do
spec = specs[i]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function ferumbrasAscendantTheShattererLever.onUse(player, item, fromPosition, t
end
if item.itemid == 8912 then
local playersTable = {}
if doCheckBossRoom(player:getId(), "The Shatterer", Position(33377, 32390, 14), Position(33446, 32447, 14)) then
if player:doCheckBossRoom("The Shatterer", Position(33377, 32390, 14), Position(33446, 32447, 14)) then
local specs, spec = Game.getSpectators(config.centerRoom, false, false, 30, 30, 30, 30)
for i = 1, #specs do
spec = specs[i]
Expand All @@ -38,7 +38,7 @@ function ferumbrasAscendantTheShattererLever.onUse(player, item, fromPosition, t
playerTile:getPosition():sendMagicEffect(CONST_ME_POFF)
playerTile:teleportTo(config.newPosition)
playerTile:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
playerTile:setStorageValue(Storage.FerumbrasAscension.TheShattererTimer, os.time() + 60 * 60 * 2 * 24)
playerTile:setStorageValue(Storage.Quest.U10_90.FerumbrasAscension.TheShattererTimer, os.time() + 60 * 60 * 2 * 24)
table.insert(playersTable, playerTile:getId())
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ local chains = {
local ferumbrasAscendantTheShattererLevers = Action()

function ferumbrasAscendantTheShattererLevers.onUse(player, item, fromPosition, target, toPosition, isHotkey)
if player:getStorageValue(Storage.FerumbrasAscension.TheShatterer) >= 1 then
if player:getStorageValue(Storage.Quest.U10_90.FerumbrasAscension.TheShatterer) >= 1 then
player:sendCancelMessage("You cannot use this lever again.")
return true
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function leverZamulosh.onUse(player, item, fromPosition, target, toPosition, isH
end
if item.itemid == 8911 then
local playersTable = {}
if doCheckBossRoom(player:getId(), "Zamulosh", Position(33634, 32749, 11), Position(33654, 32765, 11)) then
if player:doCheckBossRoom("Zamulosh", Position(33634, 32749, 11), Position(33654, 32765, 11)) then
local specs, spec = Game.getSpectators(config.centerRoom, false, false, 15, 15, 15, 15)
for i = 1, #specs do
spec = specs[i]
Expand Down

0 comments on commit 64ff86d

Please sign in to comment.