mIRC Homepage
Posted By: fast68 multiple on text events - 16/11/06 03:54 PM
ok i forgot how to write an on text line in remotes box for when you want to have more than a couple on text lines, because more than two dont work on mine

i forgot how to separate them by using these: { }

just really basic nothing special on text lines, here is one of mine i am using for example:

on 1:text:*in a row!!*:#trivia:/msg $chan 3w7d2!

there is a way to write several in one line so they all will work and i forgot how it went

and it was really basic too

thanks for anything
Posted By: xDaeMoN Re: multiple on text events - 16/11/06 04:40 PM
Code:
 on 1:text:*in a row!!*:#trivia: { msg $chan 3w7d2! | msg $chan this is line 2 | msg $chan this is line 3 } 


^^ like this
Posted By: billythekid Re: multiple on text events - 16/11/06 05:14 PM
Code:
on 1:text:*in a row!!*:#trivia:{ 
  if $me !isin $1- {
    msg $chan 3w7d2! 
    msg $chan this is line 2 
    msg $chan this is line 3 
  } 
}

instead of pipes, I think this looks neater.

btk
Posted By: fast68 Re: multiple on text events - 16/11/06 06:27 PM
what about
several on text events for a given $chan

but each on text event for a different trigger word and chan msg


im having a hard time describing what i mean exactly
hmmm

its really really close to the same as the three line one you guys are showing me above

except each separation | would separate a different trigger word and msg event

each different trigger word would be in a set of { } along with the msg chan txt

so i can have multiple on text events in my remotes box

because more than two separate on text lines in the remote box wont work

at least not in my mirc anyways

its a real simple one but i just forgot how, i have a hrd time remembering the minor details of writing it frown


thanks! laugh
Posted By: xDaeMoN Re: multiple on text events - 16/11/06 07:35 PM
I agree, but I was just showing him how you would do it in one 1 line, per his post wink

Quote:
there is a way to write several in one line so they all will work and i forgot how it went
Posted By: billythekid Re: multiple on text events - 16/11/06 08:06 PM
oh yeah, lol, had a mis-reading of that(I took, "line" to be "event")

/me smacks himself with the stupid club

btk
Posted By: billythekid Re: multiple on text events - 16/11/06 08:14 PM
Code:
on 1:text:*:#:{
  if (*some text* isin $1-) {
    do this thing 
    then this thing 
  }
  elseif (*other text* isin $1-) { 
    do something else 
  }
  elseif (billythekid isin $1-) { 
    echo boing 
  }
}
© mIRC Discussion Forums