so something like this? havent tried it yet, just wondering if this is what you meant
Code:
set_task(30.0, "replaceXP")
public replaceXP(id)
{
ns_set_exp(id,(ns_get_exp(id) - 1000))
}
so does the task only fire once or do i need to stop the task with another command? im guessing it does only fire once since the repeat flag isnt there. So to get the task to repeat you set it like this?
Code:
set_task(30.0, "xpbalance", a, 10)
if i understand it right it will repeat 10 times then stops?
*EDIT fixed typo