All pastes #116517 Raw Edit

Stuff

public text v1 · immutable
·published 2006-08-05 09:39 UTC
rendered paste body
on *:text:!vote:*: {
  notice $nick 3 $nick $+ , The poll is Favorite RuneScape God?
  notice $nick 3Guthix %guthix1
  notice $nick 3Saradomin %saradomin1
  notice $nick 3Zamorak %zamorak1
}
on *:text:!vote*:*: {
  if (%poll !== $2) || (%poll == $null) { .set %poll $+ . $+ $nick
    if (%poll !== %poll) && ($2 == guthix)  {
      inc %guthix1 1
      set %poll $+ . $+ $nick $+ . $+  %guthix1 $+ G | notice $nick 3 $nick $+ , Your vote is now $2 $+ .
    }
    if (%poll !== %poll) && ($2 == saradomin) {
      inc %saradomin1 1
      set %poll $+ . $+ $nick $+ . $+  %saradomin1 $+ S | notice $nick 3 $nick $+ , Your vote is now $2 $+ .
    }
    if (%poll !== %poll) && ($2 == zamorak) {
      inc %zamorak1 1
      set %poll $+ . $+ $nick  $+ . $+  %zamorak1 $+ Z | notice $nick 3 $nick $+ , Your vote is now $2 $+ .
    }
    if (%poll == %poll) { notice $nick 3 $nick $+ , You have already voted, type !clear to revote }  
    else {
      notice $nick 3 $nick $+ , Your vote $2 is Invalid, and wasnt counted, please try again.
    }
    notice $nick 3 Current Poll: Guthix %guthix1 : Saradomin %saradomin1 : Zamorak %zamorak1
  }
}
on *:TEXT:!count:#: { msg $chan 3 Current Poll: Guthix %guthix1 : Saradomin %saradomin1 : Zamorak %zamorak1
}
on *:TEXT:!clear:*: { set %poll $+ . $+ $nick $+ .
  notice $nick 3 $nick $+ , Your vote has been cleared, please re-vote.
}

//my intentions are simply.. as you can see.. i just can figure out how to get it to work right.
//also, if you are going to make it an advanced script.. at least explain it to me, any advice is VERY MUCH APPRECIATED