mIRC Home    About    Download    Register    News    Help

Print Thread
#137539 13/12/05 08:24 PM
Joined: Feb 2005
Posts: 344
B
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Feb 2005
Posts: 344
hi,
I need some help with this.
The thing is this:

if botmasters query the bot and ask for help using the command .help it reads a peace of the txt file.
then when botmaster type .help game it plays the part of the game from the txt file
but when botmasters type .help game trivia it plays the game AND the trivia part.
That makes sense because $2 = game and $3 = trivia.
Because $2 and $3 is given in the command it plays both parts
But i want only the trivia part to play.
how do i do that still using the .help game trivia command?
here's the code
Code:
 on 1600:text:*help*:?:{
  if ($1 == %c $+ help) {
   if ($2 == game) { /play -tgame $nick txt\EigenaarHelp.txt 250 }
   if ($3 == trivia) { /play -ttrivia $nick txt\EigenaarHelp.txt 250 }
  else { /play -twelkom $nick txt\EigenaarHelp.txt 250 }
  else { /msg $nick onbekend commando }
}
}
 

Last edited by Bullseye; 13/12/05 08:51 PM.
#137540 13/12/05 08:41 PM
Joined: Mar 2005
Posts: 212
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Mar 2005
Posts: 212
can i see the code?

#137541 13/12/05 09:02 PM
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
Try this:
Code:
on 1600:text:$(%c $+ help*):?:{
  if ($2 == game) { 
    if ($3 == trivia) play -ttrivia $nick txt\EigenaarHelp.txt 250
    else play -tgame $nick txt\EigenaarHelp.txt 250
  }
  else { /msg $nick onbekend commando }
}


-genius_at_work

#137542 14/12/05 07:09 AM
Joined: Feb 2005
Posts: 344
B
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Feb 2005
Posts: 344
Thank you genius smile


Link Copied to Clipboard