mIRC Home    About    Download    Register    News    Help

Print Thread
#133586 22/10/05 09:52 PM
Joined: Oct 2005
Posts: 28
G
gliX Offline OP
Ameglian cow
OP Offline
Ameglian cow
G
Joined: Oct 2005
Posts: 28
Hey whats the script for a massops. I want it to be set so on one client, I say .massops and then on the bot client it ops every1 in the channel i said it in. I also want to make it so only I can say this command for it to work. Can anyone help me?

#133587 22/10/05 10:12 PM
Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
...

Last edited by schaefer31; 22/10/05 11:43 PM.
#133588 22/10/05 10:23 PM
Joined: Oct 2005
Posts: 28
G
gliX Offline OP
Ameglian cow
OP Offline
Ameglian cow
G
Joined: Oct 2005
Posts: 28
Thanks, and how do i script a userlist? Haven't made that yet.

Last edited by gliX; 22/10/05 10:44 PM.
#133589 22/10/05 11:11 PM
Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
...

Last edited by schaefer31; 22/10/05 11:42 PM.
#133590 22/10/05 11:20 PM
Joined: Oct 2005
Posts: 28
G
gliX Offline OP
Ameglian cow
OP Offline
Ameglian cow
G
Joined: Oct 2005
Posts: 28
I said .massops and then on the bot's client it said
MASSOPS Unknown command


i don't think massops is an actual command, i'm just trying to get the bot to op everyone in the channel

#133591 22/10/05 11:25 PM
Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
...

Last edited by schaefer31; 22/10/05 11:42 PM.
#133592 22/10/05 11:29 PM
Joined: Oct 2005
Posts: 28
G
gliX Offline OP
Ameglian cow
OP Offline
Ameglian cow
G
Joined: Oct 2005
Posts: 28
In Alias I have:

/massops { set %_ $replace($snicks,$chr(44),$chr(32)) while ($numtok(%_,32) > 0) { mode $active $str(o,$modespl) $gettok(%_,1- $+ $modespl $+ ,32) set -u0 %_ $gettok(%_, $+ $calc($modespl + 1) $+ -,32) }}

In Remote i have:

on 1:text:.massops:#Fairfax:{ massops # }

In Users i have:

1:*!*@gliX.user.gamesurge


but nothings happening now when i say .massops in #fairfax

#133593 22/10/05 11:42 PM
Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
Ok, sorry. I didn't test it. I think this should work, however:

Code:
on 100:text:.massops:#Fairfax:{ massops # }


Code:
/massops { 
  var %x = $nick($1,0,r) 
  while (%x) { 
    if ($nick($1,%x,r) != $me) { 
      var %r = %r $nick($1,%x,r) 
      if ($numtok(%r,32) = $modespl) { mode $1 + $+ $str(o,$modespl) %r | unset %r } 
    } 
    dec %x 
  } 
  if (%r) { mode $1 + $+ $str(o,$numtok(%r,32)) %r } 
}


Also, using a access level 1 is highly not recommended, because 1 is a default level for everyone. So if you're using 1, then anybody can trigger it.

#133594 22/10/05 11:51 PM
Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
How about the users who only has voice? The code you gave will only give ops to regular users. Also check if the bot is opped.

Here's a simple one:

Code:
On @*:TEXT:.massop:#: if ( $nick == YOURNICK )  massop $chan

alias massop { 
  var %m = $nick($1,0,a,o), %nicks
  while %m {
    %nicks = %nicks $nick($1,%m,a,o)
    if ( $numtok(%nicks,32) == $modespl ) {
      mode $1 $str(+o,$modespl) %nicks
      %nicks = ""
    }
    dec %m
  }
  if ( %nicks ) mode $1 $str(+o,$modespl) %nicks
}  


** Change YOURNICK


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
#133595 23/10/05 12:18 AM
Joined: Oct 2005
Posts: 28
G
gliX Offline OP
Ameglian cow
OP Offline
Ameglian cow
G
Joined: Oct 2005
Posts: 28
yea i'm trying to get it to op EVERYONE in the channel, despite their access. schaefer i tried yours but it said

IF Unknown command

daemon i tried urs but nothing happened..

#133596 23/10/05 03:30 AM
Joined: Oct 2005
Posts: 28
G
gliX Offline OP
Ameglian cow
OP Offline
Ameglian cow
G
Joined: Oct 2005
Posts: 28
nvm daemon it works

thank u!!

and thank you too schaefer


Link Copied to Clipboard