Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. On $*:TEXT:/^[!@.](grab|take)/Si:#: {
  2. if (%loggedin [ $+ [ $nick ] ] == Yes) {
  3. if ($hget(Totals. $+ $nick) == $null) {
  4. hmake Totals. $+ $nick
  5. }
  6. if ($hget(wtime,$nick)) { .notice $nick You must wait $duration($hget(wtime,$nick)) before using this command again.
  7. halt
  8. }
  9. var %X $rand(30,60)
  10. hinc -m $+(Totals.,$nick) Treats %X if
  11. .notice $nick You got %X sweets from the jar, You now have $hget($+(Totals.,$nick),Treats) sweets!
  12. hadd -z wtime $nick $r(30,60)
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement