This randomly gives a selection of cards to the user prompting the script. E.g.:
!deal 12
**[GameMoglin ]** < No. of Cards Dealt:12 > < Cards:8 **King**10 8 10 4 **Queen** **Queen**4 6 8 7 > ```mirc on *:text:!Deal*:#: { if (($2 == $null) || ($2 <= 0)) { /msg $chan [4 $nick ] You need some cards to be dealt! | /halt } var -s %CardsDealt 0 while (%CardsDealt < $2) { inc %CardsDealt var %Cards $instok(%Cards,$rand(2,14),%CardsDealt,32) } var -s %Cards $replace(%Cards,11,Jack,12,Queen,13,King,14,Ace) msg $chan [4 $nick ] < No. of Cards Dealt:4 $2 > < Cards:4 %Cards > } ```