mIRC Home    About    Download    Register    News    Help

Print Thread
#17642 31/03/03 10:25 PM
Joined: Mar 2003
Posts: 1
A
Alpha Offline OP
Mostly harmless
OP Offline
Mostly harmless
A
Joined: Mar 2003
Posts: 1
Hello all!


Just getting into this, and while trying to make a very simple script, ran into a few problems.

on 1:text:Alpha*:#: //msg # Yes?



I am trying to replace Alpha with something (for instance CurrentNick), wo whatever My nick my be, it still works.

Anyone willing to help me out?

thanks


~me

#17643 31/03/03 10:43 PM
Joined: Dec 2002
Posts: 1,237
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,237
you mean like this:


on *1:TEXT:*Alpha*:#yourchannel:/msg $chan You Rang $nick ?

#17644 01/04/03 12:51 AM
Joined: Dec 2002
Posts: 417
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Dec 2002
Posts: 417
Try this

Code:

on 1:text:$me:#: //msg # Yes?

  




Intelligence: It's better to ask a stupid question, then to prove it by not asking....
#17645 01/04/03 08:58 AM
Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
on *:text:$(* $me *):*: msg $chan yes?

you don't need to use / or //'s in scripting, those are only for typing commands to editbox

/help $(...)
/help $me



Code:
//if ( khaled isgod ) echo yes | else echo no
#17646 01/04/03 10:05 AM
Joined: Dec 2002
Posts: 699
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
Code:
on *:text:$($+(*,$me,*)):#: msg $chan yes?

* $me * won't trigger for msgs starting or ending with (yournick)
Using * in the the target field will trigger for PMs and error when it tries to "/msg yes?"


Link Copied to Clipboard