viewing paste Unknown #19573 | Lua

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12
 
function onMobSpawn(mob)
    -- Two hours to forced depop
    mob:setLocalVar("depopTime", os.time(t) + 7200);
end;
 
function onMobFight(mob,target)
    local depopTime = mob:getLocalVar("depopTime");
    if (os.time(t) > depopTime) then
        DespawnMob(i);
    end
end;
Viewed 630 times, submitted by Guest.