|
Joined: Dec 2002
Posts: 1,245
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,245 |
are you using the color code with 03 or just 3
colorcode032 2
colorcode32 (no text as mirc sees the 32 as the color number)
|
|
|
|
Joined: Oct 2006
Posts: 68
Babel fish
|
OP
Babel fish
Joined: Oct 2006
Posts: 68 |
ok well this is wot i got on 1:TEXT:`chans:#:{
var %i $chan(0)
var %o 0
while %o < %i {
inc %o
if $left($me,1) != $left($nick($chan(%o),$me).pnick,1) {
set %bot-chans $addtok(%bot-chans,5 $+ $chan(%o) 4 $+ $left($nick($chan(%o),$me).pnick,1) $+ $chr(124) ,32)
}
else {
set %bot-chans $addtok(%bot-chans, $chan(%o) $+ $chr(124) ,32)
}
if $left($nick($chan(%o),$me).pnick,1) == $chr(64) {
inc %bot-nicks $calc( %bot-nicks + $nick($chan(%o),0,a,o))
}
}
msg $chan I am on $chr(124) %bot-chans with control over5 $+ %bot-nicks $+ nicks.
unset %bot-*
} this is wot it comes out with I am on | #blah| #blah| #blah @ | with control over 1 nicks.
Last edited by BuTLeR; 15/10/06 05:18 PM.
At Your Service.
|
|
|
|
Joined: Dec 2002
Posts: 1,245
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,245 |
ok, it was inc where it should be set (really use local vars) try this edited
on 1:TEXT:`chans:#:{
var %i $chan(0)
var %o 0
while %o < %i {
inc %o
if $left($me,1) != $left($nick($chan(%o),$me).pnick,1) {
set %bot-chans $addtok(%bot-chans,5 $+ $chan(%o) 4 $+ $left($nick($chan(%o),$me).pnick,1) $+ $chr(124) ,32)
}
else {
set %bot-chans $addtok(%bot-chans, $chan(%o) $chr(124) ,32)
}
if $left($nick($chan(%o),$me).pnick,1) == $chr(64) {
set %bot-nicks $calc( %bot-nicks + $nick($chan(%o),0,a,o))
}
}
msg $chan I am on $chr(124) %bot-chans with control over5 $+ %bot-nicks $+ nicks.
unset %bot-*
}
Last edited by MikeChat; 15/10/06 07:42 PM.
|
|
|
|
Joined: Oct 2006
Posts: 68
Babel fish
|
OP
Babel fish
Joined: Oct 2006
Posts: 68 |
ok i want it so that the #blah name is always in colour not just wen its oped or voiced and that i want it to show how many users i control in every chan not just 1 for every peron say jimbot is in 1 chan an the other and i have power over him in both channels i want it so its counts him twice you know what i mean?
Last edited by BuTLeR; 15/10/06 07:16 PM.
At Your Service.
|
|
|
|
Joined: Dec 2002
Posts: 1,245
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,245 |
see edited code above
Last edited by MikeChat; 15/10/06 07:45 PM.
|
|
|
|
Joined: Mar 2003
Posts: 612
Fjord artisan
|
Fjord artisan
Joined: Mar 2003
Posts: 612 |
haha, I originally wrote the code using set %variable $calc(%variable + numbers) but changed it during "cleanup" lol.
nice catch, mine was working here though, strangely.
btk
billythekid
|
|
|
|
Joined: Oct 2006
Posts: 68
Babel fish
|
OP
Babel fish
Joined: Oct 2006
Posts: 68 |
but when the bot is not voiced or oped its still not colourd red only when its voiced or oped is the channel red =/
At Your Service.
|
|
|
|
Joined: Dec 2002
Posts: 1,245
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,245 |
I guess to have all the channel names be colored you can do
change this [color:blue]
else {
set %bot-chans $addtok(%bot-chans, $chan(%o) $chr(124) ,32)
}[/color]
To
[color:red]
else {
set %bot-chans $addtok(%bot-chans,5 $+ $chan(%o) $+ $chr(124) ,32)
}[/color]
|
|
|
|
Joined: Oct 2006
Posts: 68
Babel fish
|
OP
Babel fish
Joined: Oct 2006
Posts: 68 |
Thanks
sorry im a pain =P hehe
At Your Service.
|
|
|
|
|