Skip to content

Commit

Permalink
Shift-proof Cape Terriggan
Browse files Browse the repository at this point in the history
  • Loading branch information
Frankie-hz committed May 13, 2024
1 parent 96e92bc commit 8dff08a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
14 changes: 4 additions & 10 deletions scripts/zones/Cape_Teriggan/IDs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,10 @@ zones[xi.zone.CAPE_TERIGGAN] =
},
mob =
{
FROSTMANE_PH =
{
[17240374] = 17240376, -- -283.874 -0.660 485.504
[17240372] = 17240376, -- -272.224 -0.942 461.321
[17240373] = 17240376, -- -268.000 -0.558 440.000
[17240371] = 17240376, -- -262.000 -0.700 442.000
},
KREUTZET = 17240413,
AXESARION_THE_WANDERER = 17240414,
STOLAS = 17240424,
FROSTMANE = GetFirstID('Frostmane'),
KREUTZET = GetFirstID('Kreutzet'),
AXESARION_THE_WANDERER = GetFirstID('Axesarion_the_Wanderer'),
STOLAS = GetFirstID('Stolas'),
ZMEY_GORYNYCH = GetFirstID('Zmey_Gorynych')
},
npc =
Expand Down
10 changes: 9 additions & 1 deletion scripts/zones/Cape_Teriggan/mobs/Greater_Manticore.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,20 @@ local ID = zones[xi.zone.CAPE_TERIGGAN]
-----------------------------------
local entity = {}

local frostmanePHTable =
{
[ID.mob.FROSTMANE - 5] = ID.mob.FROSTMANE, -- -262.000 -0.700 442.000
[ID.mob.FROSTMANE - 4] = ID.mob.FROSTMANE, -- -272.224 -0.942 461.321
[ID.mob.FROSTMANE - 3] = ID.mob.FROSTMANE, -- -268.000 -0.558 440.000
[ID.mob.FROSTMANE - 2] = ID.mob.FROSTMANE, -- -283.874 -0.660 485.504
}

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

entity.onMobDespawn = function(mob)
xi.mob.phOnDespawn(mob, ID.mob.FROSTMANE_PH, 5, math.random(3600, 21600)) -- 1 to 6 hours
xi.mob.phOnDespawn(mob, frostmanePHTable, 5, math.random(3600, 21600)) -- 1 to 6 hours
end

return entity

0 comments on commit 8dff08a

Please sign in to comment.