mIRC Home    About    Download    Register    News    Help

Print Thread
#243420 18/11/13 12:21 AM
N
Navi
Navi
N
How would I get to do a simple response like if I input a script that just responded to a answer like

on *:TEXT:Hey Navi?:#: { msg $chan Yeah, need something? }

How would I do a respone for only that command if I did something like a if else statment

I.E

on *:TEXT:Hey Navi?:#: { msg $chan Yeah, need something? }
If *:TEXT:Yes then
{ msg $chan Well what is it? } else
{ msg $chan ok }

Just wondering, thanks
~Navi

Joined: Mar 2004
Posts: 342
H
Fjord artisan
Offline
Fjord artisan
H
Joined: Mar 2004
Posts: 342
first if you want it to substitute when YOU enter data (not others) is is ON INPUT, not on text.

here is an example that would work in any channel.
Note that at the point of on input processing $1- is
the full line you entered. So you can test if a specific word is in that string with this:

on 1:INPUT:#: {
if (ROFL isin $1- ) /say Rolling on Floor Laughing!
}

Hope this helps.


Link Copied to Clipboard