mIRC Home    About    Download    Register    News    Help

Print Thread
Lost in Auto Relply script #52288 02/10/03 07:59 PM
Joined: Sep 2003
Posts: 122
Gar Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: Sep 2003
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

Re: Lost in Auto Relply script #52289 02/10/03 08:09 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
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
Re: Lost in Auto Relply script #52290 02/10/03 08:12 PM
Joined: Sep 2003
Posts: 122
Gar Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: Sep 2003
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?

Re: Lost in Auto Relply script #52291 02/10/03 08:13 PM
Joined: Dec 2002
Posts: 417
O
Othello Offline
Fjord artisan
Offline
Fjord artisan
O
Joined: Dec 2002
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....
Re: Lost in Auto Relply script #52292 02/10/03 08:15 PM
Joined: Sep 2003
Posts: 122
Gar Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: Sep 2003
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.

Re: Lost in Auto Relply script #52293 02/10/03 08:16 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
the timer makes it wait 15 seconds before the command.


new username: tidy_trax
Re: Lost in Auto Relply script #52294 02/10/03 08:23 PM
Joined: Sep 2003
Posts: 122
Gar Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: Sep 2003
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

Re: Lost in Auto Relply script #52295 02/10/03 08:24 PM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
if burns * flame*thrower* iswm $1- { commands }

Last edited by Iori; 02/10/03 08:33 PM.
Re: Lost in Auto Relply script #52296 02/10/03 08:25 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
Code:
on *:ACTION:*:#:{
if (*blah* iswm $1- || *blah2* iswm $1- || *etc* iswm $1-) {
describe # your reply.
}
}


new username: tidy_trax
Re: Lost in Auto Relply script #52297 02/10/03 08:28 PM
Joined: Dec 2002
Posts: 417
O
Othello Offline
Fjord artisan
Offline
Fjord artisan
O
Joined: Dec 2002
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....
Re: Lost in Auto Relply script #52298 03/10/03 11:58 AM
Joined: Feb 2003
Posts: 810
C
cold Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
/me uses the active window, not the channel where the event occurred.. use describe # instead.


* cold edits his posts 24/7