Skip to content

Commit 1342b15

Browse files
committed
Xolotl Bug Fixes
1 parent 151d0fc commit 1342b15

3 files changed

Lines changed: 13 additions & 0 deletions

File tree

scripts/zones/Attohwa_Chasm/mobs/Xolotl.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ end
3838

3939
entity.onMobInitialize = function(mob)
4040
mob:addImmunity(xi.immunity.DARK_SLEEP)
41+
mob:setRespawnTime(math.randomInt(75600, 86400)) -- When server restarts, reset respawn timer.
4142
end
4243

4344
entity.onMobSpawn = function(mob)

scripts/zones/Attohwa_Chasm/mobs/Xolotls_Hound_Warrior.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ entity.onMobSpawn = function(mob)
1717
mob:setMobMod(xi.mobMod.NO_STANDBACK, 1)
1818
end
1919

20+
entity.onMobRoam = function(mob)
21+
if VanadielHour() >= 4 and VanadielHour() < 20 then
22+
DespawnMob(mob:getID(), 1)
23+
end
24+
end
25+
2026
entity.onMobSpellChoose = function(mob, target, spellId)
2127
local spellList =
2228
{

scripts/zones/Attohwa_Chasm/mobs/Xolotls_Sacrifice.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ entity.onMobInitialize = function(mob)
1313
mob:addImmunity(xi.immunity.PETRIFY)
1414
end
1515

16+
entity.onMobRoam = function(mob)
17+
if VanadielHour() >= 4 and VanadielHour() < 20 then
18+
DespawnMob(mob:getID(), 1)
19+
end
20+
end
21+
1622
entity.onMobDeath = function(mob, player, optParams)
1723
if optParams.isKiller or optParams.noKiller then
1824
local xolotl = GetMobByID(zones[xi.zone.ATTOHWA_CHASM].mob.XOLOTL)

0 commit comments

Comments
 (0)