mIRC Home    About    Download    Register    News    Help

Print Thread
#134583 02/11/05 10:36 PM
Joined: Sep 2005
Posts: 53
C
Babel fish
OP Offline
Babel fish
C
Joined: Sep 2005
Posts: 53
I need to put somone on the user list when they sai a certain word. So lets say...:
Code:
on *:Text:!4!:#: {
  set %user4 $nick
  /msg $chan 1P14lease 1g14ive 1t14he 1n14ame 1o14f 1t14he 1p14articipants 1i14n 1o14rder 1o14f 1t14he 1m14atches.
}

So you can do something like
Code:
on A:Text:! *:#: {
  set %2 $2 
  set %3 $3
  set %4 $4
  set %5 $5
  /msg $chan 1Our First Contestant Is14 $2  
  /msg $chan 1Our Second Contestant Is14 $3  
  /msg $chan 1Our Third Contestant Is14 $4 
  /msg $chan Our Fourth Contestant Is14 $5 
  /msg $chan 1First Match14 %2 1VS.14 %3
  /msg $chan 1Press 3!1 1or 3!2 1to tell me which person wins.
}

Code:
User:
A:%user4

Something like that... can anyone tell me how i can add the $nick to the user list automatcially? This way doesnt work.

#134584 03/11/05 04:00 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Change
Code:
set %user4 $nick  
to
Code:
 .auser A $nick 


I'm not positive, but I don't think you can use just numbers for a variable name. Instead of using
Code:
 set %2 $2 
use
Code:
 set %player1 $2 
That'll make it easier for you to know & remember what the variables are for any future updates and/or changes you might want to make.

#134585 03/11/05 04:27 AM
Joined: Sep 2005
Posts: 53
C
Babel fish
OP Offline
Babel fish
C
Joined: Sep 2005
Posts: 53
Thanks! It works.. how would you unset that though?

#134586 03/11/05 06:34 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Use /ruser <level> nick

/help Remote Commands


Link Copied to Clipboard