mIRC Home    About    Download    Register    News    Help

Topic Options
#52288 - 02/10/03 08:59 PM Lost in Auto Relply script
Gar Offline
Vogon poet

Registered: 11/09/03
Posts: 122
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
_________________________
My Website

Top
#52289 - 02/10/03 09:09 PM Re: Lost in Auto Relply script
pheonix Offline
Hoopy frood

Registered: 06/05/03
Posts: 2265
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 # .....
  }
}
_________________________
new username: tidy_trax

Top
#52290 - 02/10/03 09:12 PM Re: Lost in Auto Relply script
Gar Offline
Vogon poet

Registered: 11/09/03
Posts: 122
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?
_________________________
My Website

Top
#52291 - 02/10/03 09:13 PM Re: Lost in Auto Relply script
Othello Offline
Fjord artisan

Registered: 09/12/02
Posts: 417
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
}
}
_________________________


Intelligence: It's better to ask a stupid question, then to prove it by not asking....

Top
#52292 - 02/10/03 09:15 PM Re: Lost in Auto Relply script
Gar Offline
Vogon poet

Registered: 11/09/03
Posts: 122
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.
_________________________
My Website

Top
#52293 - 02/10/03 09:16 PM Re: Lost in Auto Relply script
pheonix Offline
Hoopy frood

Registered: 06/05/03
Posts: 2265
the timer makes it wait 15 seconds before the command.
_________________________
new username: tidy_trax

Top
#52294 - 02/10/03 09:23 PM Re: Lost in Auto Relply script
Gar Offline
Vogon poet

Registered: 11/09/03
Posts: 122
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
_________________________
My Website

Top
#52295 - 02/10/03 09:24 PM Re: Lost in Auto Relply script
Iori Offline
Hoopy frood

Registered: 30/08/03
Posts: 1831
if burns * flame*thrower* iswm $1- { commands }


Edited by Iori (02/10/03 09:33 PM)

Top
#52296 - 02/10/03 09:25 PM Re: Lost in Auto Relply script
pheonix Offline
Hoopy frood

Registered: 06/05/03
Posts: 2265
Code:
on *:ACTION:*:#:{
if (*blah* iswm $1- || *blah2* iswm $1- || *etc* iswm $1-) {
describe # your reply.
}
}
_________________________
new username: tidy_trax

Top
#52297 - 02/10/03 09:28 PM Re: Lost in Auto Relply script
Othello Offline
Fjord artisan

Registered: 09/12/02
Posts: 417
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
_________________________


Intelligence: It's better to ask a stupid question, then to prove it by not asking....

Top
#52298 - 03/10/03 12:58 PM Re: Lost in Auto Relply script
cold Offline
Hoopy frood

Registered: 25/02/03
Posts: 810
Loc: Brazil
/me uses the active window, not the channel where the event occurred.. use describe # instead.
_________________________
* cold edits his posts 24/7

Top