mIRC Home    About    Download    Register    News    Help

Print Thread
#52288 02/10/03 07:59 PM
Joined: Sep 2003
Posts: 120
G
Gar Offline OP
Vogon poet
OP Offline
Vogon poet
G
Joined: Sep 2003
Posts: 120
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

P
pheonix
pheonix
P
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 # .....
  }
}

Joined: Sep 2003
Posts: 120
G
Gar Offline OP
Vogon poet
OP Offline
Vogon poet
G
Joined: Sep 2003
Posts: 120
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: 416
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Dec 2002
Posts: 416
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
}
}

Joined: Sep 2003
Posts: 120
G
Gar Offline OP
Vogon poet
OP Offline
Vogon poet
G
Joined: Sep 2003
Posts: 120
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.

P
pheonix
pheonix
P
the timer makes it wait 15 seconds before the command.

Joined: Sep 2003
Posts: 120
G
Gar Offline OP
Vogon poet
OP Offline
Vogon poet
G
Joined: Sep 2003
Posts: 120
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

I
Iori
Iori
I
if burns * flame*thrower* iswm $1- { commands }

Last edited by Iori; 02/10/03 08:33 PM.
P
pheonix
pheonix
P
Code:
on *:ACTION:*:#:{
if (*blah* iswm $1- || *blah2* iswm $1- || *etc* iswm $1-) {
describe # your reply.
}
}

Joined: Dec 2002
Posts: 416
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Dec 2002
Posts: 416
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

Joined: Feb 2003
Posts: 806
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 806
/me uses the active window, not the channel where the event occurred.. use describe # instead.


Link Copied to Clipboard