mIRC Home    About    Download    Register    News    Help

Print Thread
#171569 25/02/07 11:16 PM
Joined: Feb 2007
Posts: 9
W
WoWoWee Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
W
Joined: Feb 2007
Posts: 9
Can somebody pls help me with this
like if i type it on the channel for example

x op or x voice, x ban in the channel X will do the opping or voicing or banning ... without doing the /msg x ban or /msg x voice

thanx in advance....

WoWoWee #171572 26/02/07 12:22 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
The message still has to be sent to X using the /msg command, however, if you use .msg rather than /msg the command will be silent.

ie: Use .msg x ban
in place of /msg x ban

Note: This will not work as a command line entry, only as a script.

RusselB #171573 26/02/07 12:40 AM
Joined: Jan 2007
Posts: 1,156
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
I dont understand, you want to make a mIRC thats in your channel kick and/or ban someone without showing your request in the room?

You can whisper the script, or send it a notice. Something like that.

WoWoWee #171576 26/02/07 02:15 AM
Joined: Jul 2006
Posts: 107
L
Vogon poet
Offline
Vogon poet
L
Joined: Jul 2006
Posts: 107
If you're wanting to get around having to type /msg, you can make an alias.
You would still have to type the slash, tho. You would type /x op .... or /x ban .... etc.

Code:
alias x msg x $1-


LonDart
LonDart #171578 26/02/07 03:46 AM
Joined: Feb 2007
Posts: 9
W
WoWoWee Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
W
Joined: Feb 2007
Posts: 9
it's like public command for X

instead of type the whole command /msg x op # mynick

ill just gonna type x op and then X will op me... or

X voice then X will voice me...

WoWoWee #171581 26/02/07 06:01 AM
Joined: Jan 2007
Posts: 1,156
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
on @*:text:x *:#:{
if ($2 == op) /mode $chan +o $nick
elseif ($2 == owner) && ($me isowner $chan) mode $chan +q $nick
elseif ($2 == voice) mode $chan +v $nick
}

Id suggest using a symbol to mark the command. Like !x or .x.

on @*:text:!x *:#:{

DJ_Sol #171592 26/02/07 01:10 PM
Joined: Jan 2003
Posts: 1,063
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
do note, on text does not react to what you yourself write (or at least: what the client the script is loaded in writes)

so if you want to trigger it yourself (read: if the client who loads the script wants to trigger it) you will have to use ON INPUT aswell


If it ain't broken, don't fix it!
Doqnach #171603 26/02/07 02:26 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Also, if you are typing this in the channel from something other than the "bot" running the script (ie. you're using on TEXT rather than on INPUT for the trigger), then you REALLY need to put a check in to make sure the person using it is allowed to use it.

if ($nick isop $chan) {}
if ($nick == somenick) {}

etc.

Otherwise, anyone can use it to gain ops.


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard