viewing paste Unknown #21128 | Text

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
-----------------------------------
-- 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;
Viewed 715 times, submitted by Guest.