Jethro commented on a Page, Lottery Script  -  Jun 18, 2011

There's one section of your code that you can shorten a lot more using:

    tokenize 32 %people
    if ($1-5 != $null) {
     var %x = 1
     while (%x <= 5) {
     inc %points [ $+ [ $+($,%x) ] ]
     inc %x
    }
    unset %amount %people %lottery
    msg # the lottery was ended by $nick $+ !
  }
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.