Skip to content

Commit

Permalink
Shift-proof Crawlers Nest & [S]
Browse files Browse the repository at this point in the history
  • Loading branch information
Frankie-hz committed May 13, 2024
1 parent 8805aaa commit 7d2e435
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 18 deletions.
18 changes: 6 additions & 12 deletions scripts/zones/Crawlers_Nest/IDs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,12 @@ zones[xi.zone.CRAWLERS_NEST] =
},
mob =
{
DEMONIC_TIPHIA_PH =
{
[17584392] = 17584398, -- -103.000 -1.000 311.000
[17584395] = 17584398, -- -89.000 -1.000 301.000
[17584396] = 17584398, -- -75.000 -1.000 299.000
[17584391] = 17584398, -- -101.000 -1.000 285.000
},
AWD_GOGGIE = 17584135,
DYNAST_BEETLE = 17584312,
DREADBUG = 17584425,
MIMIC = 17584426,
APPARATUS_ELEMENTAL = 17584427,
DEMONIC_TIPHIA = GetFirstID('Demonic_Tiphia'),
AWD_GOGGIE = GetFirstID('Awd_Goggie'),
DYNAST_BEETLE = GetFirstID('Dynast_Beetle'),
DREADBUG = GetFirstID('Dreadbug'),
MIMIC = GetFirstID('Mimic'),
APPARATUS_ELEMENTAL = GetTableOfIDs('Water_Elemental')[9], -- 9th Water Elemental
},
npc =
{
Expand Down
10 changes: 9 additions & 1 deletion scripts/zones/Crawlers_Nest/mobs/Wespe.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,20 @@ local ID = zones[xi.zone.CRAWLERS_NEST]
-----------------------------------
local entity = {}

local tiphiaPHTable =
{
[ID.mob.DEMONIC_TIPHIA - 7] = ID.mob.DEMONIC_TIPHIA, -- -101.000 -1.000 285.000
[ID.mob.DEMONIC_TIPHIA - 6] = ID.mob.DEMONIC_TIPHIA, -- -103.000 -1.000 311.000
[ID.mob.DEMONIC_TIPHIA - 3] = ID.mob.DEMONIC_TIPHIA, -- -89.000 -1.000 301.000
[ID.mob.DEMONIC_TIPHIA - 2] = ID.mob.DEMONIC_TIPHIA, -- -75.000 -1.000 299.000
}

entity.onMobDeath = function(mob, player, optParams)
xi.regime.checkRegime(player, mob, 691, 2, xi.regime.type.GROUNDS)
end

entity.onMobDespawn = function(mob)
xi.mob.phOnDespawn(mob, ID.mob.DEMONIC_TIPHIA_PH, 5, math.random(7200, 28800)) -- 2 to 8 hours
xi.mob.phOnDespawn(mob, tiphiaPHTable, 5, math.random(7200, 28800)) -- 2 to 8 hours
end

return entity
5 changes: 1 addition & 4 deletions scripts/zones/Crawlers_Nest_[S]/IDs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@ zones[xi.zone.CRAWLERS_NEST_S] =
},
mob =
{
MORILLE_MORTELLE_PH =
{
[17477636] = 17477640, -- 61 0 -4
},
MORILLE_MORTELLE= GetFirstID('Morille_Mortelle'),
},
npc =
{
Expand Down
7 changes: 6 additions & 1 deletion scripts/zones/Crawlers_Nest_[S]/mobs/Witch_Hazel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,16 @@ local ID = zones[xi.zone.CRAWLERS_NEST_S]
-----------------------------------
local entity = {}

local morillePHTable =
{
[ID.mob.MORILLE_MORTELLE - 4] = ID.mob.MORILLE_MORTELLE, -- 61 0 -4
}

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

entity.onMobDespawn = function(mob)
xi.mob.phOnDespawn(mob, ID.mob.MORILLE_MORTELLE_PH, 12, 18000) -- 5 hours
xi.mob.phOnDespawn(mob, morillePHTable, 12, 18000) -- 5 hours
end

return entity

0 comments on commit 7d2e435

Please sign in to comment.