mIRC Home    About    Download    Register    News    Help

Print Thread
#251718 01/03/15 11:10 AM
Joined: Mar 2015
Posts: 1
E
Mostly harmless
OP Offline
Mostly harmless
E
Joined: Mar 2015
Posts: 1
I've been searching for some code that does the following.

EmeraldStar82: !command user1
Bot: user1 was targeted!

I'm new to programming so I don't know much smirk

Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
$2 will refer to the 2nd word specified in an on text event.
Basic syntax:
Code:
on *:text:!command &:#: {
msg # $2 was targeted!
}


Useful reads for starting mSL scripting:
/help on text
/help if then else
/help variables


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net

Link Copied to Clipboard