All pastes #432051 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-04-10 01:03 UTC
rendered paste body
on *:TEXT:!blackjack*:#:{
  /set %8ball $rand(1,4)
  set %rand [ $+ [ $nick ] ] $rand(1,10)
  if (!%total [ $+ [ $nick ] ]) { set %total [ $+ [ $Nick ] ] 0 }
  if (%8ball == 1) { set %newtotal [ $+ [ $nick ] ] $calc(%total [ $+ [ $Nick ] ] + %rand [ $+ [ $Nick ] ]) | /notice $nick 4You got an 12Ace 4 you get a12 %rand [ $+ [ $nick ] ] }
  if (%8ball == 2) { set %newtotal [ $+ [ $nick ] ] $calc(%total [ $+ [ $Nick ] ] + %rand [ $+ [ $Nick ] ]) | /notice $nick 4You got a 12King 4 you get a12 %rand [ $+ [ $nick ] ] }
  if (%8ball == 3) { set %newtotal [ $+ [ $nick ] ] $calc(%total [ $+ [ $Nick ] ] + %rand [ $+ [ $Nick ] ]) | /notice $nick 4You got a 12Queen 4 you get a12 %rand [ $+ [ $nick ] ] }
  if (%8ball == 4) { set %newtotal [ $+ [ $nick ] ] $calc(%total [ $+ [ $Nick ] ] + %rand [ $+ [ $Nick ] ]) | /notice $nick 4You got a 12Jack 4 you get a12 %rand [ $+ [ $nick ] ] }
}
on *:TEXT:!fold:#:{
  /msg $chan 4 $nick 12has folded
}
on *:TEXT:!draw:#:{
  set %card [ $+ [ $nick ] ] $rand(1,10)
  set %newtotal [ $+ [ $nick ] ] $calc(%total [ $+ [ $nick ] ] + %card ) 
  /notice $nick 12you drew a:4 %card [ $+ [ $nick ] ] $+ . You now got: %newtotal [ $+ [ $Nick ] ] $+ . 
}
}
on *:TEXT:!stay*:#:{
/msg $chan 4 $nick 12 is staying with his cards
}