Skip to content

Commit

Permalink
Shift-proof Ule Range
Browse files Browse the repository at this point in the history
  • Loading branch information
Frankie-hz committed May 2, 2024
1 parent b1e83d5 commit 3fa7ac1
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 27 deletions.
33 changes: 9 additions & 24 deletions scripts/zones/Uleguerand_Range/IDs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,33 +27,18 @@ zones[xi.zone.ULEGUERAND_RANGE] =
},
mob =
{
SKVADER_PH =
{
[16797769] = 16797770,
},
MAGNOTAUR_PH =
{
[16797966] = 16797968,
[16797967] = 16797968,
},
BONNACON_PH =
{
[16798050] = 16798056, -- -623.154 -40.604 -51.621
[16798051] = 16798056, -- -587.026 -40.994 -22.551
[16798052] = 16798056, -- -513.416 -40.490 -43.706
[16798053] = 16798056, -- -553.844 -38.958 -53.864
[16798054] = 16798056, -- -631.268 -40.257 0.709
[16798055] = 16798056, -- -513.999 -40.541 -34.928
},
JORMUNGAND = 16797969,
GEUSH_URVAN = 16798078,
WHITE_CONEY = 16798079,
BLACK_CONEY = 16798080,
SKVADER = GetFirstID('Skvader'),
MAGNOTAUR = GetFirstID('Magnotaur'),
BONNACON = GetFirstID('Bonnacon'),
JORMUNGAND = GetFirstID('Jormungand'),
GEUSH_URVAN = GetFirstID('Geush_Urvan'),
WHITE_CONEY = GetFirstID('White_Coney'),
BLACK_CONEY = GetFirstID('Black_Coney'),
},
npc =
{
WATERFALL = 16798113,
RABBIT_FOOTPRINT = 16798100,
WATERFALL = GetFirstID('_058'),
RABBIT_FOOTPRINT = GetFirstID('Rabbit_Footprint'),
},
}

Expand Down
12 changes: 11 additions & 1 deletion scripts/zones/Uleguerand_Range/mobs/Buffalo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,21 @@ local ID = zones[xi.zone.ULEGUERAND_RANGE]
-----------------------------------
local entity = {}

local bonnaconPHTable =
{
[ID.mob.BONNACON - 6] = ID.mob.BONNACON, -- -623.154 -40.604 -51.621
[ID.mob.BONNACON - 5] = ID.mob.BONNACON, -- -587.026 -40.994 -22.551
[ID.mob.BONNACON - 4] = ID.mob.BONNACON, -- -513.416 -40.490 -43.706
[ID.mob.BONNACON - 3] = ID.mob.BONNACON, -- -553.844 -38.958 -53.864
[ID.mob.BONNACON - 2] = ID.mob.BONNACON, -- -631.268 -40.257 0.709
[ID.mob.BONNACON - 1] = ID.mob.BONNACON, -- -513.999 -40.541 -34.928
}

entity.onMobDeath = function(mob, player, optParams)
end

entity.onMobDespawn = function(mob)
xi.mob.phOnDespawn(mob, ID.mob.BONNACON_PH, 5, math.random(3600, 86400)) -- 1 to 24 hours
xi.mob.phOnDespawn(mob, bonnaconPHTable, 5, math.random(3600, 86400)) -- 1 to 24 hours
end

return entity
8 changes: 7 additions & 1 deletion scripts/zones/Uleguerand_Range/mobs/Molech.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,17 @@ local ID = zones[xi.zone.ULEGUERAND_RANGE]
-----------------------------------
local entity = {}

local magnotaurPHTable =
{
[ID.mob.MAGNOTAUR - 2] = ID.mob.MAGNOTAUR,
[ID.mob.MAGNOTAUR - 1] = ID.mob.MAGNOTAUR,
}

entity.onMobDeath = function(mob, player, optParams)
end

entity.onMobDespawn = function(mob)
xi.mob.phOnDespawn(mob, ID.mob.MAGNOTAUR_PH, 10, 3600) -- 1 hour
xi.mob.phOnDespawn(mob, magnotaurPHTable, 10, 3600) -- 1 hour
end

return entity
7 changes: 6 additions & 1 deletion scripts/zones/Uleguerand_Range/mobs/Polar_Hare.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,16 @@ local ID = zones[xi.zone.ULEGUERAND_RANGE]
-----------------------------------
local entity = {}

local ixtabPHTable =
{
[ID.mob.SKVADER - 1] = ID.mob.SKVADER,
}

entity.onMobDeath = function(mob, player, optParams)
end

entity.onMobDespawn = function(mob)
xi.mob.phOnDespawn(mob, ID.mob.SKVADER_PH, 10, 3600) -- 1 hour
xi.mob.phOnDespawn(mob, ixtabPHTable, 10, 3600) -- 1 hour
end

return entity

0 comments on commit 3fa7ac1

Please sign in to comment.