Advertisement
Yarukinasu

autohurray

Nov 11th, 2011
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.60 KB | None | 0 0
  1. _autohurray  = 0
  2. _flaglist    = _flaglist
  3. _oldflaglist = _oldflaglist
  4.  
  5. autohurray = [
  6.   _autohurray = (! $_autohurray)
  7.   if $_autohurray [
  8.     echo (c 0) "autohurray has been enabled"
  9.     autohurrayloop
  10.   ] [
  11.     echo (c 3) "autohurray has been disabled"
  12.   ]
  13. ]
  14. autohurrayloop = [
  15.   if $_autohurray [
  16.     _flaglist = ""
  17.     loop i 20 [
  18.       _flaglist = (concat $_flaglist (at (pstat_score $i) 0))
  19.     ]
  20.     _curcn = (findcn $curname)
  21.     if (> (at $_flaglist $_curcn) (at $_oldflaglist $_curcn)) [
  22.       say "HURRAY!"
  23.     ]
  24.     _oldflaglist = $_flaglist
  25.     sleep 0 autohurrayloop
  26.   ]
  27. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement