Page 1 of 1

Manipulating Individual Mob Stats

Posted: Mon Aug 25, 2014 9:23 am
by R3P0
Just wondering if anyone here has the instructions or a good guide on hoe to manipulate individual mob stats such as str dex int atk def eva etc. The mob_groups.sql file only gives the base leveling options for level and hp, I am looking to go a little deeper on some mobs. These instructions would be much appreciated.

Re: Manipulating Individual Mob Stats

Posted: Mon Aug 25, 2014 1:31 pm
by demolish
scripts/zones/ZONE_NAME/mobs/MOB_NAME.lua

Code: Select all

function onMobSpawn(mob)
    if(mob:getID() == id_goes_here) then
        do shit;
    elseif(mob:getID() == id_goes_here) then
        do shit;
end;
where id_goes_here is the mob's id and 'do shit' does shit e.g. mob:setHP(9001)

Re: Manipulating Individual Mob Stats

Posted: Mon Aug 25, 2014 3:18 pm
by kjLotus
you can also add any modifier in mob_spawn_mods.sql for specific IDs