mIRC Homepage
Posted By: EmeraldStar82 [Twitch] Targeting a user. - 01/03/15 11:10 AM
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
Posted By: Nillen Re: [Twitch] Targeting a user. - 01/03/15 11:12 AM
$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
© mIRC Discussion Forums