-
-
Notifications
You must be signed in to change notification settings - Fork 651
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix the Souldespoiler and preceptor lazare respawn.
- Loading branch information
1 parent
b7a5285
commit 4c4a29b
Showing
3 changed files
with
8 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 5 additions & 7 deletions
12
data-otservbr-global/scripts/globalevents/quests/secret_library_preceptor_lazare.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters