mIRC Home    About    Download    Register    News    Help

Print Thread
#55172 15/10/03 11:42 PM
Joined: Sep 2003
Posts: 122
Gar Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: Sep 2003
Posts: 122
okay seeing as mother got on the computer and I wasn't able to reply to other thread, it got pushed further down the list. Is there a way to keep updated topics to the top?

okay I am working with this script:

on *:ACTION:*:#:{
if ($4 == flamethrower) && ($6 == barbeques) && ($7 == Gar) { 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 ($4 == howitzers) && ($6 == Paladin) && ($7 == Gar) { msg # -=[counter coming soon]=- }
elseif ($4 == smashes) && ($6 == revenge) && ($7 == Gar) { describe # smiles at the thought of the look on Bahran's face when he notices the insane asylum is located on a now deserted island surronded by shark infested waters, offering no form of escape. }
}


Now the first one works, the barbeque one when my friend usies this script:

/flame /me takes out a flamethrower and barbeques $1- then takes a piece of their crispy arm and chews on it...

Now onto the one I am having problems with. If the same person does this script:

/missile /me annihilates $1- with a barrage of missiles from a few Paladin 155MM Self-propelled howitzers.

it is suppose to work. But it wont. But if he was to type:

/me one two three howitzers five Paladin Gar

it works. Now why is that?

#55173 15/10/03 11:46 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
It doesn't work becuase youre $Ns are wrong.

elseif ($14 == howitzers) && ($11 == Paladin) && ($2 == Gar)

#55174 15/10/03 11:48 PM
Joined: Sep 2003
Posts: 122
Gar Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: Sep 2003
Posts: 122
how do I know what $N's to use? Do I need to use a diferent one each time?

#55175 15/10/03 11:50 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
$1 is filled with the first word of the message, $2 with the second, $3 with the third, etc.

It depends on which word you want to check which $N you need to use.

#55176 15/10/03 11:54 PM
Joined: Sep 2003
Posts: 122
Gar Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: Sep 2003
Posts: 122
ah I see. thanks.

#55177 15/10/03 11:56 PM
Joined: Sep 2003
Posts: 122
Gar Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: Sep 2003
Posts: 122
okay one more question

Is it possible to do something like this:

If someone does this:

/me poles Gar

I could respond with /me poles [who ever poled me]

#55178 15/10/03 11:57 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
if ( $1 == poles ) && ( $2 == Gar ) {
describe # poles $nick
}

#55179 16/10/03 12:01 AM
Joined: Sep 2003
Posts: 122
Gar Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: Sep 2003
Posts: 122
I was thinking that, but for some reason was thinking $nick meant my nick, not thiers

#55180 16/10/03 12:18 AM
Joined: Sep 2003
Posts: 122
Gar Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: Sep 2003
Posts: 122
so would this work?

on*:ACTION:*:#:{
if ($1 == poles) && ($2 == $me) { describe # poles $nick }
}

#55181 16/10/03 12:28 AM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Should do if you add a space between on and the first *.

#55182 16/10/03 12:29 AM
Joined: Sep 2003
Posts: 122
Gar Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: Sep 2003
Posts: 122
yep it does, figured that one out after I posted message

#55183 16/10/03 01:03 AM
Joined: Sep 2003
Posts: 122
Gar Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: Sep 2003
Posts: 122
okay so why doesn't this one work?

on *:ACTION:*:#:{
if ($4 == flamethrower) && ($6 == barbeques) && ($7 == Gar) { 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 ($14 == howitzers) && ($11 == Paladin) && ($2 == Gar) { msg # -=[counter coming soon]=- }
elseif ($4 == smashes) && ($6 == revenge) && ($7 == Gar) { describe # smiles at the thought of the look on Bahran's face when he notices the insane asylum is located on a now deserted island surronded by shark infested waters, offering no form of escape. }
}

if it is responding to:
* Bahran takes out a flamethrower and barbeques Gar then takes a piece of their crispy arm and chews on it...
* Bahran annihilates Gar with a barrage of missiles from a few Paladin 155MM Self-propelled howitzers.

It works for the flamethrower one, but not for the missiles one

#55184 16/10/03 01:19 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
$14 is howitzers. (Note the period)

#55185 16/10/03 01:31 AM
Joined: Sep 2003
Posts: 122
Gar Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: Sep 2003
Posts: 122
thankyou!!!!

/me hits himself over the head with a sledge hammer.

#55186 16/10/03 01:45 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Whoa it wasn't that big a mistake. laugh

#55187 16/10/03 08:19 AM
Joined: May 2003
Posts: 215
Fjord artisan
Offline
Fjord artisan
Joined: May 2003
Posts: 215
Someone has a violence fetish :tongue:


- Jason

Link Copied to Clipboard