mIRC Home    About    Download    Register    News    Help

Print Thread
#233706 06/09/11 01:50 AM
Joined: Sep 2011
Posts: 4
D
Self-satisified door
OP Offline
Self-satisified door
D
Joined: Sep 2011
Posts: 4
So, I have this script here...

on *:TEXT:*slaps D-55 around a bit with a large*:#:{ if ($10 == fishbot) { /inc -q %slapbot 1 | /msg $chan I take the batteries out of your fishbot and add them to my collection. Now I have %slapbot batteries! } }



Just two lines. So of course, I had to screw it up. It does absolutely nothing. When someone slaps you on the channel, it's supposed to react to me being slapped.

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
What are you expecting $10 to be? $10 would be the tenth "word" in the text. That doesn't sound like something you'd see in a normal slap text.

Also, most "slaps" are actions, not texts. If that's the case for you, then use on ACTION instead of on TEXT.


Invision Support
#Invision on irc.irchighway.net
Riamus2 #233708 06/09/11 02:15 AM
Joined: Sep 2011
Posts: 4
D
Self-satisified door
OP Offline
Self-satisified door
D
Joined: Sep 2011
Posts: 4
So that's what it'd be? K, I'll try it.

ok... so my new failed script is
*snip'd*

thanks, me and my friend got it working.

Last edited by Different55; 06/09/11 02:27 AM.

Link Copied to Clipboard