All pastes #67663 Raw Edit

Unnamed

public text v1 · immutable
#67663 ·published 2006-06-20 12:46 UTC
rendered paste body
on *:TEXT:!points:#:{
  if (%points. [ $+ [ $nick ] ] != $null) {
    /msg $chan 7,0««12,0 $nick 7,0»» has 12 %points. [ $+ [ $nick ] ]  points.
  }
}
on *:TEXT:!takepoint *:#:{
  if (%points. [ $+ [ $2 ] ] != $null) (
  /dec %points. [ $+ [ $2 ] ] 1
}
on *:TEXT:!givepoint *:#:{
  if ((%points. [ $+ [ $2 ] ] == $null) && ($nick isop $chan)) {
    /set %points. [ $+ [ $2 ] ] 1
    /msg $chan $2 Has recieved a favor point! 
  }
  else { 
    if ((%points. [ $+ [ $2 ] ] == 10) && ($nick isop $chan)) {
      /mode $chan +o $2
      /msg $chan $2 got 10 points! Congratulations You have been OP'd for being so liked :)
      /unset %points. [ $+ [ $2 ] ]
    }
    else { 
      if ($nick isop $chan) {
        /inc %points. [ $+ [ $2 ] ] 1
        /msg $chan $2 Has recieved a favor point!
      }
    }
  }
}