Skip to content
This repository has been archived by the owner on Apr 29, 2020. It is now read-only.

Commit

Permalink
Merge pull request #5962 from isotor/fradubio_lottery
Browse files Browse the repository at this point in the history
Make Fradubio lottery spawn off Fraelissa
  • Loading branch information
zynjec authored Jun 1, 2019
2 parents 64cc8c4 + 5c39d98 commit 48c40f3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
4 changes: 4 additions & 0 deletions scripts/zones/Jugner_Forest/IDs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ zones[dsp.zone.JUGNER_FOREST] =
{
[17203437] = 17203475,
},
FRADUBIO_PH =
{
[17203447] = 17203448,
},
KING_ARTHRO = 17203216,
FRAELISSA = 17203447,
},
Expand Down
13 changes: 4 additions & 9 deletions scripts/zones/Jugner_Forest/mobs/Fradubio.lua
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
7 changes: 4 additions & 3 deletions scripts/zones/Jugner_Forest/mobs/Fraelissa.lua
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

0 comments on commit 48c40f3

Please sign in to comment.