I want a 'AFK' Check that is constantly updating. So, I decided to use stat() in this case. I've tried (client.inactivity/10) but that is not what Im looking for. For example, a player can stand at one location, continuously use a verb, and make client.inactivity invalid in my case. I need something that focuses on the mob's movement.
To make long story short, here is an example of a code that I did, turned out to be a failure.
if(!src.meditating&&src.loggedin)
var/* = src.loc
sleep(*)
if(src.loc == Zzz)
if(!src.pafk)
src.overlays += 'AFK.dmi'
src.pafk = 1
src<<"<b>I would move if I was you"
if(src.pafk)
src.firing = 1
src.doing = 1
My problem lies within var/* = src.loc I need another method that does the same function. Hope Im clear enough :)
Hope that's simple to understand.