All pastes #69529 Raw Edit

Favor Point System

public text v1 · immutable
#69529 ·published 2006-06-23 02:10 UTC
rendered paste body
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) && ($2 ishop $chan) && ($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 ((%points. [ $+ [ $2 ] ] == 10) && ($2 isvoice $chan) && ($nick isop $chan)) {
        /mode $chan +h $2
        /msg $chan $2 got 10 points! Congratulations You have been Half-OP'd for being so liked :)
        /unset %points. [ $+ [ $2 ] ]
      }
      else {
        if ((%points. [ $+ [ $2 ] ] == 10) && ($nick isop $chan)) {
          /mode $chan +v $2
          /msg $chan $2 got 10 points! Congratulations You have been Voiced for being so liked :)
          /unset %points. [ $+ [ $2 ] ]
        }
        else {
          if ($nick isop $chan) {
            /inc %points. [ $+ [ $2 ] ] 1
            /msg $chan $2 Has recieved a favor point!
          }
        }
      }
    } 
  } 
}