Channel Status

By Jamiie on Feb 28, 2008

This is a alias script, when triggered by /chans.. it will display the number of channels your in, wich ones your op, halfop, voice, and regular in. Paste in Remotes.

alias chans {
  var %a = 0
  while (%a < $chan(0)) {
    inc %a 
    if ($me isop $chan(%a)) {
      inc %b
      inc %power $nick($chan(%a),0)
      inc %chan $nick($chan(%a),0)
    } 
    if ($me ishop $chan(%a)) {
      inc %c
      inc %power $nick($chan(%a),0)
      inc %chan $nick($chan(%a),0)
    } 
    if ($me isvoice $chan(%a)) {
      inc %d
      inc %chan $nick($chan(%a),0)
    } 
    if ($me isreg $chan(%a)) {
      inc %e
      inc %chan $nick($chan(%a),0)
    } 
  }
  msg $iif($chan,$chan,$active) 1[2STATUS1]14 I am on 13 $+ $chan(0) 14channels. Of those, I am (4@14)Op on 13 $+ $iif(%b,%b,0) $+  $+  14, (7%14)Halfop on 13 $+ $iif(%c,%c,0) $+  14 (2+14)Voice on 13 $+ $iif(%d,%d,0)  14and (2_14)Regular on 13 $+ $iif(%e,%e,0) $+ . 14I have power over $+ 13 $+ 1 (13 $+ %power $+ 14/13 $+ %chan $+ 14) 14(13 $+ $int($calc(%power * 100 / %chan)) $+ % $+ 14) 14users.
  unset %b %c %d %e %power %chan
}

Comments

Sign in to comment.
SnoooP   -  Feb 29, 2008

no problem... =)

 Respond  
Jamiie   -  Feb 29, 2008

Thanks SnoooP, yeah I\'ll work on it sooner or later. Been real busy lately. :|

 Respond  
SnoooP   -  Feb 29, 2008

by the way... i forget to mention it up there ^^ lol

it only displays the channels your in on one server it doesnt display all the channels that you are in...

if you changed it to do that then it would be awesome!

 Respond  
SnoooP   -  Feb 29, 2008

good job

its nice =) and worked well for me... i just changed the colours =P

 Respond  
Jamiie   -  Feb 28, 2008

Why should I mention if their is anything anywhere? The script works..

 Respond  
Scakk   -  Feb 28, 2008

You have inc %b inc %c inc %d inc %e in the if statements and yet you do not mention them anywhere else in the if statements.

 Respond  
Jamiie   -  Feb 28, 2008

Ok thanks mountaindew, I\'ll change that now

 Respond  
guest598594   -  Feb 28, 2008

you can do

unset %b %c %d %e %power %chan

 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.