All pastes #555075 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-06-10 11:19 UTC
rendered paste body
on *:TEXT:!rate *:#:{
  if (%vote [ $+ [ $nick ] ] == 1) { /notice $nick Please rate 1 time! | halt }
  if ($2 !isnum) { /notice $nick Please set a number. | halt }
  if ($2 == 1) { /inc %rate.1 }
  if ($2 == 2) { /inc %rate.2 }
  if ($2 == 3) { /inc %rate.3 }
  if ($2 == 4) { /inc %rate.4 }
  if ($2 == 5) { /inc %rate.5 }
  if ($2 == 6) { /inc %rate.6 }
  if ($2 == 7) { /inc %rate.7 }
  if ($2 == 8) { /inc %rate.8 }
  if ($2 == 9) { /inc %rate.9 }
  if ($2 == 10) { /inc %rate.10 }
  /set %vote [ $+ [ $nick ] ] 1
  /notice $nick Thanks for rate!
}
on *:TEXT:!viewrates:#:{
  if ($nick == Hotwizard00) {
    /notice $nick Votes 1: %rate.1 Votes 2: %rate.2 Votes 3: %rate.3 Votes 4: %rate.4 Votes 5: %rate.5 Votes 6: %rate.6 Vote 7: %rate.7 Vote 8: %rate.8 Vote 9: %rate.9 Vote 10: %rate.10
  }
}