Advertisement
Yarukinasu

afk

Mar 27th, 2011
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // AFK script by |FOX|Yarukinasu
  2. // requires tools.cfg
  3. AFK_NAME = "|AFK|Yarukinasu" // replace this with the AFK name
  4. CUR_NAME = "|FOX|Yarukinasu" // replace this with the original name
  5.  
  6. lastmoved = (millis)
  7.  
  8. afk = [
  9.   if (> (- (millis) $lastmoved) 300000) [ // adjust the amount of time for personal preference
  10.     if (strcmp $curname $CUR_NAME) [ name $AFK_NAME ] ] [
  11.     if (strcmp $curname $AFK_NAME) [ name $CUR_NAME ] ]
  12.   sleep 0 [ afk ] ]
  13.  
  14. addcheck_msa afk
  15.  
  16. loop i (listlen $keylist) [ add2bind (at $keylist $i) [ lastmoved = (millis) ] ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement