mIRC Homepage
Posted By: Bullseye some help - 13/12/05 08:24 PM
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 }
}
}
 
Posted By: NeUtRoN_StaR Re: some help - 13/12/05 08:41 PM
can i see the code?
Posted By: genius_at_work Re: some help - 13/12/05 09:02 PM
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
Posted By: Bullseye Re: some help - 14/12/05 07:09 AM
Thank you genius smile
© mIRC Discussion Forums