mIRC Homepage
Posted By: Gar Lost in Auto Relply script - 02/10/03 07:59 PM
I posted a question a while back and got an enswer, but I seem I can't get it to work.

Question:

If say a person called Bahran types this:

/me burns Gar to a crisp with a flame thrower and munches on his crispy arm.

how can I make it reply automatically with me saying:

/me sprinkles the hotest mixture of ingredents known to mankind on his arm before Bahran gets a chance to grab it and sits back to watch the show.

Also what would I change to make it reply to another saying, like:

/me slaps Gar around with a large trout
Posted By: pheonix Re: Lost in Auto Relply script - 02/10/03 08:09 PM
Code:
on *:ACTION:*:#:{
  if ($1- == burns $me to a crisp with a flame thrower and munches on his crispy arm.) {
    describe # sprinkles the hotest mixture of ingredents known to mankind on his arm before $nick gets a chance to grab it and sits back to watch the show. 
  }
  elseif ($1- == slaps $me around with a large trout) {
    describe # .....
  }
}
Posted By: Gar Re: Lost in Auto Relply script - 02/10/03 08:12 PM
is there a way of shortening that? Like if it finds the words burn, flame and thrower in the same action it will reply? Or do I need the entire thing?

Also they sometimes call me Gar, gar or Gararion, would this still work if they called my be a name other then Gar?
Posted By: Othello Re: Lost in Auto Relply script - 02/10/03 08:13 PM
Give this a try edit the triggers for the necessary responce


ON *:TEXT:*:*: {
if ( burns isin $1- ) || ( $me isin $1- ) {
/me sprinkles the hotest mixture of ingredents known to mankind on his arm before Bahran gets a chance to grab it and sits back to watch the show.
timer 1 15 /me slaps Gar around with a large trout
}
}
Posted By: Gar Re: Lost in Auto Relply script - 02/10/03 08:15 PM
What does the timer part in that script do?

I don't usually use a script unless I know what each part does, so I can play around with it.
Posted By: pheonix Re: Lost in Auto Relply script - 02/10/03 08:16 PM
the timer makes it wait 15 seconds before the command.
Posted By: Gar Re: Lost in Auto Relply script - 02/10/03 08:23 PM
so what would I change if I have a list of about ten different things I want it to reply to?

If you didn't get it yet, me and this other guy are having a counter war smile
Posted By: Iori Re: Lost in Auto Relply script - 02/10/03 08:24 PM
if burns * flame*thrower* iswm $1- { commands }
Posted By: pheonix Re: Lost in Auto Relply script - 02/10/03 08:25 PM
Code:
on *:ACTION:*:#:{
if (*blah* iswm $1- || *blah2* iswm $1- || *etc* iswm $1-) {
describe # your reply.
}
}
Posted By: Othello Re: Lost in Auto Relply script - 02/10/03 08:28 PM
basicly after the first nick burns you
the script woudl give you your first reply
then wait 15 seconds befor giving the 2nd reply

so why do a single slap when you can do a double slap
on the same nick
now if you really wanted to have soem fun you could try this

ON *:TEXT:*:*: {
if (( burns isin $1- ) || ( $me isin $1- )) { //me $read(slap.txt) }
}


then you can enter in any kind of responce and as many responces into a SLAP.TXT as long as they are one liners and
the script woudl random read a new line each time the other person use there same old line but you would have to creat a text called Slap.txt and put it in your mirc folder for the script to read it
Posted By: cold Re: Lost in Auto Relply script - 03/10/03 11:58 AM
/me uses the active window, not the channel where the event occurred.. use describe # instead.
© mIRC Discussion Forums