|
Joined: Jan 2004
Posts: 25
Ameglian cow
|
OP
Ameglian cow
Joined: Jan 2004
Posts: 25 |
im making a massop/deop... script, but this message always comes up (in Status Window) when im testing it on myself in a channel...: * Send error ([10053] Software caused connection abort) heres the script (OBS! this is in the NickList popup feature!): Mass .Op:{ if ($me isop #) { var %o = 1 :loop if ($snick(#,0) > 0) { mode # + $+ $str(o,$modespl) $gettok($snicks,%o,44) $gettok($snicks,$calc(%o + 1),44) $gettok($snicks,$calc(%o + 1),44) $gettok($snicks,$calc(%o + 1),44) if (%o <= $snick(#,0)) { goto loop } } } } someone help me?
Thax
|
|
|
|
Joined: Dec 2002
Posts: 1,541
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,541 |
It doesnt looke like (to me) that you're either increasing or decreasing the variable at all. maybe try:
var %o = 1
:loop
if ($snick(#,0) > 0) {
mode # + $+ $str(o,$modespl) $gettok($snicks,%o,44) $gettok($snicks,$calc(%o + 1),44) $gettok($snicks,$calc(%o + 1),44) $gettok($snicks,$calc(%o + 1),44)
if (%o <= $snick(#,0)) { inc %o | goto loop }
}
Just a thought to try
Those who fail history are doomed to repeat it
|
|
|
|
Joined: Jan 2004
Posts: 25
Ameglian cow
|
OP
Ameglian cow
Joined: Jan 2004
Posts: 25 |
tnx m8 i forgot to 'inc' it... hehe.. *bad* i shouldve seen that :tongue: tnx for your fast reply, landonsandor!
Thax
|
|
|
|
Joined: Dec 2002
Posts: 1,541
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,541 |
anytime glad to be of help. As a side note, you could also use the following example to only show the popup if you are an op:
Mass
.$iif($me isop #,Op): {
var %o = 1
:loop
if ($snick(#,0) > 0) {
mode # + $+ $str(o,$modespl) $gettok($snicks,%o,44) $gettok($snicks,$calc(%o + 1),44) $gettok($snicks,$calc(%o + 1),44) $gettok($snicks,$calc(%o + 1),44)
if (%o <= $snick(#,0)) { inc %o | goto loop }
}
}
This way if it doesnt apply to you (you're not opped) you wont see it use it or not, just a thought is all
Those who fail history are doomed to repeat it
|
|
|
|
Joined: Apr 2004
Posts: 218
Fjord artisan
|
Fjord artisan
Joined: Apr 2004
Posts: 218 |
This code, highlight the nicks in the nicklist this run the code. I really don't understand your code, though. ;\
var %n = 1
var %o
while (%n <= $snick($chan,0)) {
.var %o = %o $eval($snick($chan,%n),99)
inc %n
}
.mode $chan + $+ $str(o,$snick($chan,0)) %o }
Live to Dream & Dream for Life
|
|
|
|
Joined: Dec 2002
Posts: 788
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 788 |
Hmm, to be honest the above codes, seem to be completely 'useless' for anything other than something that might be used to take over a channel, the oppion might be that you "need" to op that many people, but i've never seen the problem with op'ing the maximum users allowed in anyone, /mode..
For example, why not just use: Op:{ //mode # $+(+,$str(o,$snick(#,0))) $replace($snicks,$chr(44),$chr(32)) }
|
|
|
|
|