Skip to content

Commit

Permalink
fix the Souldespoiler and preceptor lazare respawn.
Browse files Browse the repository at this point in the history
  • Loading branch information
elsongabriel committed Feb 22, 2024
1 parent b7a5285 commit 4c4a29b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ function cultsOfTibiaLevers.onUse(player, item, fromPosition, itemEx, toPosition
end
end

if item:getActionId() == 5503 then -- The Sinister Hermit
if item:getActionId() == 5503 then -- The Souldespoiler
if player:getPosition() == Position(33127, 31892, 15) and item:getId() == 8912 then
local teleport = 0
for i = 31892, 31896, 1 do
Expand Down Expand Up @@ -333,7 +333,7 @@ function cultsOfTibiaLevers.onUse(player, item, fromPosition, itemEx, toPosition
local newpos = Position(33127, i, 15)
local nplayer = Tile(newpos):getTopCreature()
if nplayer and nplayer:isPlayer() then
nplayer:setBossCooldown("The Sinister Hermit", os.time() + configManager.getNumber(configKeys.BOSS_DEFAULT_TIME_TO_FIGHT_AGAIN))
nplayer:setBossCooldown("The Souldespoiler", os.time() + configManager.getNumber(configKeys.BOSS_DEFAULT_TIME_TO_FIGHT_AGAIN))
nplayer:teleportTo(Position(33130, 31919, 15), true)
convertTable[#convertTable + 1] = nplayer:getId()
player:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
local config = {
monsterName = "Preceptor Lazare",
bossPosition = Position(33373, 31348, 3),
centerPosition = Position(33373, 31348, 3),
rangeX = 50,
rangeY = 50,
bossPosition = Position(33374, 31338, 3),
range = 5,
}

local preceptorLazare = GlobalEvent("preceptor lazare")
local preceptorLazare = GlobalEvent("PreceptorLazareRespawn")
function preceptorLazare.onThink(interval, lastExecution)
checkBoss(config.centerPosition, config.rangeX, config.rangeY, config.monsterName, config.bossPosition)
checkBoss(config.bossPosition, config.range, config.range, config.monsterName, config.bossPosition)
return true
end

preceptorLazare:interval(15 * 60 * 1000)
preceptorLazare:interval(15 * 60 * 1000) -- 15 minutes
preceptorLazare:register()
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ local setting = {
{
tpPos = { x = 33114, y = 31887, z = 15 },
tpDestination = { x = 33131, y = 31899, z = 15 },
boss = "The Sinister Hermit",
boss = "The Souldespoiler",
},
{
tpPos = { x = 33072, y = 31871, z = 15 },
Expand Down

0 comments on commit 4c4a29b

Please sign in to comment.