This repository has been archived by the owner on Apr 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 546
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5962 from isotor/fradubio_lottery
Make Fradubio lottery spawn off Fraelissa
- Loading branch information
Showing
3 changed files
with
12 additions
and
12 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
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,11 @@ | ||
---------------------------------- | ||
-- Area: Jugner_Forest | ||
-- NM: Fradubio | ||
-- !pos 76.573 -0.901 -246.241 104 | ||
-- NM: Fradubio | ||
----------------------------------- | ||
|
||
function onMobDeath(mob, player, isKiller) | ||
end; | ||
end | ||
|
||
function onMobDespawn(mob) | ||
|
||
-- Set Fradubio spawnpoint and respawn time (21-24 hours) | ||
UpdateNMSpawnPoint(mob:getID()); | ||
mob:setRespawnTime(math.random(75600,86400)); | ||
|
||
end; | ||
UpdateNMSpawnPoint(mob:getID()) | ||
end |
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,13 +1,14 @@ | ||
----------------------------------- | ||
-- Area: Jugner Forest (104) | ||
-- Area: Jugner Forest | ||
-- NM: Fraelissa | ||
-- !pos 9.320 -0.493 -371.654 104 | ||
----------------------------------- | ||
|
||
function onMobDeath(mob, player, isKiller) | ||
end | ||
|
||
function onMobDespawn(mob) | ||
UpdateNMSpawnPoint(mob:getID()) | ||
mob:setRespawnTime(math.random(3600, 4500)) -- 60 to 75 minutes | ||
if not dsp.mob.phOnDespawn(mob, ID.mob.FRADUBIO_PH, 10, math.random(75600, 86400)) then -- 21-24 hours | ||
mob:setRespawnTime(math.random(3600, 4500)) -- 60 to 75 minutes | ||
end | ||
end |