Skip to content

Commit

Permalink
Shift-proof West Sarutabaruta[S]
Browse files Browse the repository at this point in the history
Shift-proof West Sarutabaruta[S]
  • Loading branch information
Frankie-hz committed May 1, 2024
1 parent a2c5cf4 commit d2ce370
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
12 changes: 2 additions & 10 deletions scripts/zones/West_Sarutabaruta_[S]/IDs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,8 @@ zones[xi.zone.WEST_SARUTABARUTA_S] =

mob =
{
JEDUAH_PH =
{
[17166542] = 17166543, -- 113.797 -0.8 -310.342
},

RAMPONNEAU_PH =
{
[17166701] = 17166705, -- 78.836 -0.109 -199.204
},

JEDUAH = GetFirstID('Jeduah'),
RAMPONNEAU = GetFirstID('Ramponneau'),
VOIDWALKER =
{
[xi.keyItem.CLEAR_ABYSSITE] =
Expand Down
7 changes: 6 additions & 1 deletion scripts/zones/West_Sarutabaruta_[S]/mobs/Tiny_Lycopodium.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ mixins = { require('scripts/mixins/families/lycopodium') }
-----------------------------------
local entity = {}

local jeduahPHTable =
{
[ID.mob.JEDUAH - 1] = ID.mob.JEDUAH, -- 113.797 -0.8 -310.342
}

entity.onMobInitialize = function(mob)
mob:setMobMod(xi.mobMod.ALWAYS_AGGRO, 1)
end
Expand All @@ -16,7 +21,7 @@ entity.onMobDeath = function(mob, player, optParams)
end

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

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

local ramponneauPHTable =
{
[ID.mob.RAMPONNEAU - 1] = ID.mob.RAMPONNEAU, -- 78.836 -0.109 -199.204
}

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

entity.onMobDespawn = function(mob)
xi.mob.phOnDespawn(mob, ID.mob.RAMPONNEAU_PH, 20, 5400) -- 90 minutes
xi.mob.phOnDespawn(mob, ramponneauPHTable, 20, 5400) -- 90 minutes
end

return entity

0 comments on commit d2ce370

Please sign in to comment.