CODE
[FUNCTION HitsRegen]
//If <argn> is present, changes the time (in seconds) to earn a Hitpoint by regeneration and returns the old value.
//If not present return the time (in seconds) to earn a Hitpoint by regeneration.
IF (!<argn>)
return <eval (<serv.regen0>/10)-<TAG0.OVERRIDE.Regen_0>>
endif
local.old=<eval (<serv.regen0>/10)-<TAG0.OVERRIDE.Regen_0>>
TAG.OVERRIDE.Regen_0=<eval (<serv.regen0>/10)-<argn>>
return <local.old>
[FUNCTION ManaRegen]
//If <argn> is present, changes the time (in seconds) to earn a Mana point by regeneration and returns the old value.
//If not present return the time (in seconds) to earn a Mana point by regeneration.
IF (!<argn>)
return <eval (<serv.regen1>/10)-<TAG0.OVERRIDE.Regen_1>>
endif
local.old=<eval (<serv.regen1>/10)-<TAG0.OVERRIDE.Regen_1>>
TAG.OVERRIDE.Regen_1=<eval (<serv.regen1>/10)-<argn>>
return <local.old>
[FUNCTION StamRegen]
//If <argn> is present, changes the time (in seconds) to earn a Stam point by regeneration and returns the old value.
//If not present return the time (in seconds) to earn a Stam point by regeneration.
IF (!<argn>)
return <eval (<serv.regen2>/10)-<TAG0.OVERRIDE.Regen_2>>
endif
local.old=<eval (<serv.regen2>/10)-<TAG0.OVERRIDE.Regen_2>>
TAG.OVERRIDE.Regen_2=<eval (<serv.regen2>/10)-<argn>>
return <local.old>
Ingame, if you want to see the stam regen you can type '.show stamregen'
To set stamregen you can type '.stamregen 15' to earn a stam point every 15 seconds.
It's tested.
Very usefull in Focus Skill, aye?
I'm using in a race system.