mIRC Home    About    Download    Register    News    Help

Print Thread
#243420 18/11/13 12:21 AM
Joined: Nov 2013
Posts: 1
N
Navi Offline OP
Mostly harmless
OP Offline
Mostly harmless
N
Joined: Nov 2013
Posts: 1
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: 526
Fjord artisan
Offline
Fjord artisan
Joined: Mar 2004
Posts: 526
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.


Help others! It makes the world a better place, Makes you feel good, and makes you Healthy!

Link Copied to Clipboard