mIRC Home    About    Download    Register    News    Help

Print Thread
scirpt #170642 12/02/07 02:37 AM
Joined: Feb 2007
Posts: 1
K
kenny158 Offline OP
Mostly harmless
OP Offline
Mostly harmless
K
Joined: Feb 2007
Posts: 1
i want to know the script that when u put in like .h nick it halfops them and any other script that when it has a "." in front of it.

Re: scirpt [Re: kenny158] #170649 12/02/07 05:22 AM
Joined: Mar 2006
Posts: 4
W
wutteh Offline
Self-satisified door
Offline
Self-satisified door
W
Joined: Mar 2006
Posts: 4
are you looking for an INPUT command or ON TEXT command.. I mean.. you want the command to be evaluate localy or thru a bot ?

Re: scirpt [Re: kenny158] #170659 12/02/07 02:05 PM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Code:
on @*:text:.* &:#: {
  if ($nick isop $chan) {
    if ($1 == .v || $1 == .h || $1 == .o) {
      mode $chan $replace($1,.,+) $2
    }
  }
}
on @*:input:#: {
  if ($1 == .v || $1 == .h || $1 == .o) {
    mode $chan $replace($1,.,+) $2
  }
}


This will only work if the person using the commands is an op and only if the person running the script is opped. It will also work for the person running the script to type it.

.v nick
.h nick
.o nick

If you want it to work for specific people even if they aren't an op, then you'll want to use your userlist to specify who can use the script.


Invision Support
#Invision on irc.irchighway.net