mIRC Home    About    Download    Register    News    Help

Print Thread
#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

Joined: May 2003
Posts: 2,265
P
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
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?

Joined: Dec 2002
Posts: 417
O
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....
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.

Joined: May 2003
Posts: 2,265
P
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
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

Joined: Aug 2003
Posts: 1,831
I
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.
Joined: May 2003
Posts: 2,265
P
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
Joined: Dec 2002
Posts: 417
O
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....
Joined: Feb 2003
Posts: 810
C
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

Link Copied to Clipboard