-----------------------------------
-- 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, 15);
mob:addMod(MOD_REGEN, 1);
mob:addMod(MOD_REGAIN, 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)
-- Under 25% his regain goes from 1% to 7% per tick
if (mob:getHPP() <= 25) then
mob:addStatusEffect(EFFECT_REGAIN, 6,3,600);
end
end;
-----------------------------------
-- onMobDeath
-----------------------------------
function onMobDeath(mob, killer)
killer:addTitle(CERBERUS_MUZZLER);
mob:setRespawnTime(math.random((172800),(259200))); -- 48-72 hours
end;