guest598594 commented on a Page, Pie Script  -  Dec 10, 2007
  if ($2 != $null) {
    /set %throw.pie $rand(1,8)
    if ((%throw.pie == 1)) /describe $chan throws a blueberry pie at $2- and laughs saying it was from $nick $+ .
    if ((%throw.pie == 2)) /describe $chan throws a cherry pie at $2- and laughs saying it was from $nick $+ .
    if ((%throw.pie == 3)) /describe $chan throws a normal pie at $2- and laughs saying it was from $nick $+ .
    if ((%throw.pie == 4)) /describe $chan throws an apple pie at $2- and laughs saying it was from $nick $+ .
    if ((%throw.pie == 5)) /describe $chan throws a pumpkin pie at $2- and laughs saying it was from $nick $+ .
    if ((%throw.pie == 6)) /describe $chan throws a sweet potato pie at $2- and laughs saying it was from $nick $+ .
    if ((%throw.pie == 7)) /describe $chan throws an apple cinnamon pie at $2- and laughs saying it was from $nick $+ .
    if ((%throw.pie == 8)) /describe $chan throws a chicken pot pie at $2- and laughs saying it was from $nick $+ .
  } 

like cantseeme said, it can be simplified a lot

i would do

  if (!$2) describe $chan throws a $gettok(blueberry|cherry|normal|apple|pumpkin|sweet potato|apple cinnamon|chicken pot,$r(1,8),124) pie at $nick and laughs $+ .
 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.