mIRC Home    About    Download    Register    News    Help

Print Thread
#234242 13/10/11 04:31 PM
Joined: Nov 2009
Posts: 17
A
AD1C Offline OP
Pikka bird
OP Offline
Pikka bird
A
Joined: Nov 2009
Posts: 17
First, thanks everyone for the help so far. I'm getting much more comfortable with this.

In the script I inherited, I see a mixture of "msg ...." and "/msg ....". Is one form preferred over the other, and if so, why? Here are some examples:

  if ($did == 11) { /msg #marac !last5 }

  if (%needreply != $null) { msg #MARAC ,2SPECIAL NEED [ $+ %readline $+ ]: %needreply }


Jim Reisert
http://www.ad1c.us/
AD1C #234243 13/10/11 04:41 PM
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031
The command prefix (slash /) is not necessary inside of a script, but it works the same either way.

RoCk #234247 13/10/11 04:58 PM
Joined: Nov 2009
Posts: 17
A
AD1C Offline OP
Pikka bird
OP Offline
Pikka bird
A
Joined: Nov 2009
Posts: 17
Thanks!


Jim Reisert
http://www.ad1c.us/
AD1C #234248 13/10/11 05:04 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Because /'s are required on the command line (in the edit box), new scripters sometimes are not aware that /'s are not required in a script. You can remove them to clean up the script if you like, or leave them and they won't hurt anything.


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard