mob/Login()
..()
src.AFKCHECK()//I tried this
mob/New()
..()
src.AFKCHECK()//I tried this as well
world/New()
..()
ACHECK()
world
proc
ACHECK()
set background=1
sleep(100)
if(!AFKALLOW)
AFKALLOW=1
var/AFKALLOW=1
mob
proc/AFKCHECK()
if(AFKALLOW==1)
if(src.loggedin)
var/Zzz = src.loc
sleep(10)
if(src.loc == Zzz)
if(!src.pafk&&!src.meditating)
src.overlays += 'AFK.dmi'
src.pafk = 1
spawn(1)
alert(usr,"You been away too long :(","Away From Keyboard Message")
else
..()
AFKALLOW=0
Problem description: I can't make it into a loop. I have tried spawn while(1) and other loop procs but it failed horribly :( Help ?