mIRC Home    About    Download    Register    News    Help

Print Thread
#232192 23/05/11 07:39 PM
J
JH1354
JH1354
J
I want to add a script to my remote that will voice someone. Lets say there name is Lady and the channel is #bigdog.


thanks
P.S:I am an op so I can do this also I no about chanserv but want to no how its done in my remote script.

Joined: Sep 2005
Posts: 2,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
Code:
//avoice -w Lady #bigdog | avoice on

J
JH1354
JH1354
J
thanks

Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
Keep in mind that although you can do it with a script, you must be online in order to voice the person if you use a script. If you have Chanserv available and you set it up, then the person will be voiced even if you are offline.

Of course, if you're voicing everyone, then Chanserv isn't much help. smile

J
JH1354
JH1354
J
thanks

J
JH1354
JH1354
J
This didnt work....
//avoice -w [TriViAs] #masterwarez | avoice on

K
KageNoOni
KageNoOni
K
That could be the brackets, they are used for controlling the order items are evaluated. The brackets likely disappear, adding TriViAs instead of [TriViAs]. There are 2 solutions.

Option 1, 2 seperate commands with only 1 forward slash '/':
/avoice -w [TriViAs] #masterwarez
/avoice on

Option 2, 1 command with both forward slashes, but using $eval:
//avoice -w $eval([TriViAs],0) #masterwarez | avoice on

Joined: Jul 2006
Posts: 4,020
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,020
[] brackets are only interpreted as evaluation bracket if they are spaces seperated.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Jan 2003
Posts: 2,125
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,125
Also note that this is a command you should type (once) in a mirc editbox, not put it in remotes.


Link Copied to Clipboard