power (with color)

By ryu.dragonryder on Sep 03, 2005

very simple power script (with colors)
shows the server your on - how many chans your Opped in (if any)
and the amount of users under your Ops

added an on :input: cause an on :text: wouldn`t work for this

alias power {
set %power.chan $chan(0)
set %power.op 0
:power
if ($me isop $chan(%power.chan)) { set %power.num $calc(%power.num + $nick($chan(%power.chan),0)) | inc %power.op }
if (%power.chan = 0) { 
if (%power.op = 0) { say 15P14ower: 11[10 Opped:  $+ 0 $+ / $+ $chan(0) , control: 0 ] | unset %power.* }
else { say 15C14onnected 15V14ia:3  $+ $server $+ . 15P14ower: 11[10 Opped:3  $+ %power.op $+ / $+ $chan(0) 11] 15M14y 15U14ser 15C14ount: 11[10 %power.num 11]5 | unset %power.* }
}
else { dec %power.chan 1 | goto power }
}
menu * {
Power:power
}
on *:input:*:{ if (*!power* iswm $1-) { say $1- | power | halt } }

Comments

Sign in to comment.
a careful warchild   -  May 27, 2008

sorry for the double post but you didnt need the on *:input: as you can see from the remake of your script i just posted.

 Respond  
a careful warchild   -  May 27, 2008

alias stats {
set %power.chan $chan(0)
set %power.op 0
:power
if ($me isop $chan(%power.chan)) { set %power.num $calc(%power.num + $nick($chan(%power.chan),0)) | inc %power.op }
if (%power.chan = 0) {
if (%power.op = 0) { say 15P14ower: 11[10 Opped: $+ 0 $+ / $+ $chan(0) , control: 0 ] | unset %power. }
else { say 15C14onnected 15V14ia:3 $+ $server $+ . 15P14ower: 11[10 Opped:3 $+ %power.op $+ / $+ $chan(0) 11] 15M14y 15U14ser 15C14ount: 11[10 %power.num 11]5 | unset %power.
}
}
else { dec %power.chan 1 | goto power }
}
menu * {
stats:stats
}

much easier to do script oh and whenever someone type !power my stats would come up twice i have fixed that and this is the new script, but i changed it to show my stats on /stats rather than !stats because it created useless spam =D

 Respond  
ryu.dragonryder   -  Sep 06, 2005

alias power {
set %power.chan $chan(0)
set %power.op 0
:power
if ($me isop $chan(%power.chan)) { set %power.num $calc(%power.num + $nick($chan(%power.chan),0)) | inc %power.op }
if (%power.chan = 0) {
if (%power.op = 0) { say 15P14ower: 11[10 Opped: $+ 0 $+ / $+ $chan(0) , control: 0 ] | unset %power. }
else { say 15C14onnected 15V14ia:3 $+ $server $+ . 15P14ower: 11[10 Opped:3 $+ %power.op $+ / $+ $chan(0) 11] 15M14y 15U14ser 15C14ount: 11[10 %power.num 11]5 | unset %power.
}
}
else { dec %power.chan 1 | goto power }
}
menu {
Power:power
}
on
:input::{ if (!power* iswm $1-) { say $1- | power | halt } }

added an on :input: cause an on :text: wouldn`t work for this

 Respond  
David_James   -  Sep 03, 2005

I haven\'t tested it yet... seem nice :) I\'m gonna test it.... but can you add on *:text:!power:

 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.