-----------------------------------
-- Area: Mount Zhayolm
-- NPC: Cerberus
-----------------------------------
require("scripts/globals/titles");
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function onMobInitialize(mob)
mob:setMobMod(MOBMOD_MAIN_2HOUR, 1);
mob:setMobMod(MOBMOD_DRAW_IN, 1);
end;
function onMobSpawn(mob)
mob:addMod(MOD_DOUBLE_ATTACK, 20);
mob:addMod(MOD_REGEN, 1);
mob:addMod(MOD_EARTHRES, 120);
mob:addMod(MOD_WATERRES, 120);
mob:addMod(MOD_WINDRES, 120);
mob:addMod(MOD_FIRERES, 120);
mob:addMod(MOD_ICERES, 160);
mob:addMod(MOBMOD_SIGHT_RANGE, 21);
end;
-----------------------------------
-- onMobFight Action
-----------------------------------
function onMobFight(mob,target)
-- Gains a 70 (7.0) tp per tick regain under 25%
if(mob:getHP() < ((mob:getMaxHP() / 10) * 2.5)) then
mob:addStatusEffect(EFFECT_REGAIN, 7,3,600);
end
end;
-----------------------------------
-- onMobDeath
-----------------------------------
function onMobDeath(mob, killer)
killer:addTitle(CERBERUS_MUZZLER);
mob:setRespawnTime(math.random((172800),(259200))); -- 48-72 hours
end;