Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- On $*:TEXT:/^[!@.](grab|take)/Si:#: {
- if (%loggedin [ $+ [ $nick ] ] == Yes) {
- if ($hget(Totals. $+ $nick) == $null) {
- hmake Totals. $+ $nick
- }
- if ($hget(wtime,$nick)) { .notice $nick You must wait $duration($hget(wtime,$nick)) before using this command again.
- halt
- }
- var %X $rand(30,60)
- hinc -m $+(Totals.,$nick) Treats %X if
- .notice $nick You got %X sweets from the jar, You now have $hget($+(Totals.,$nick),Treats) sweets!
- hadd -z wtime $nick $r(30,60)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement