Voice Counter

By Stealth on Jun 11, 2005

This voice counter has 3 Functions. 1: it tells you what your target amount of voices are. 2: shows how many voices you are at currently. and 3: how much percent you are to reaching your goal. it comes with a Dialog so you don't have to worry about setting any variables manually. just get voiced for it to start! Oh: you must set Colour1 and Colour2 in the Dialog!

i Was going to do halfop,op ect. but im too lazy :P

on *:voice:#: {
  if (%tvoices == $Null) || (%colour1 == $null) || (%colour2 == $null) { SVCount | HALT } {
    if (%voices != $calc(%tvoices - 1)) && ($vnick == $me) {
      inc %voices
      msg $chan   $+ %colour1 $+ (  $+ %colour2 $+ Target Voice Count $+  $+ %colour1 $+ :  $+ %colour2 $+ %tvoices  $+ %colour1 $+ ||  $+ %colour2 $+ Voice Count $+  $+ %colour1 $+ :  $+ %colour2 $+ %voices   $+ %colour1 $+ ||  $+ %colour2 $+ % $+ $calc(%voices / %tvoices * 100)  $+ %colour1 $+ )
    }
    if (%voices == $calc(%tvoices - 1)) && ($vnick == $me) {
      inc %voices
      msg $chan  $+ %colour1 $+ (  $+ %colour2 $+ Target Voice Count $+  $+ %colour1 $+ :  $+ %colour2 $+ %tvoices  $+ %colour1 $+ ||  $+ %colour2 $+ Voice Count $+  $+ %colour1 $+ :  $+ %colour2 $+ %voices   $+ %colour1 $+ ||  $+ %colour2 $+ % $+ $calc(%voices / %tvoices * 100)  $+ %colour1 $+ )
      msg $chan  $+ %colour1 $+ (  $+ %colour2 $+ Goal Reached, Clearing Voices!  $+ %colour1 $+ )
      unset %voices
    }
  }
}
alias SVCount {
  Dialog -m SVCount SVCount
}
Dialog SVCount {
  title "SVCount Stats"
  Size 120 250 141 80
  option dbu
  button Target Voice Count!, 1, 1 5 140 20,ok
  button Colour 1, 2, 1 30 140 20,ok
  Button Colour 2, 3 ,1 55 140 20,ok
}
on 1:Dialog:SVCount:Sclick:1: {
  set %Tvoices $$?="Please Set The Amount Of Voices You Want As Your Target"
}
on 1:Dialog:SVCount:Sclick:2: {
  set %Colour1 $$?="Please Chose Numbers From 1-15 For Your Colour1. Eg: 01,12 || 11"
}
on 1:Dialog:SVCount:Sclick:3: {
  set %Colour2 $$?="Please Chose Numbers From 1-15 For Your Colour3. Eg: 01,12 || 11"
}

Comments

Sign in to comment.
DarthReven   -  Jun 12, 2005

total voices in a channel $nick(#,0,v) varablies aren\'t needed

 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.