viewing paste Cerberus.lua | 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 49 50
-----------------------------------
-- 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;
Viewed 658 times, submitted by unknown.