mIRC Home    About    Download    Register    News    Help

Print Thread
may I know how to do such script work? #227766 21/11/10 01:36 PM
Joined: Nov 2010
Posts: 6
L
LeoWong Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
L
Joined: Nov 2010
Posts: 6
Can i know How can i do a script in mIRC where people slap me,I will slap back automatically + kick him/her

Re: may I know how to do such script work? [Re: LeoWong] #227768 21/11/10 02:30 PM
Joined: Oct 2004
Posts: 8,327
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,327
There are many slap back scripts available and you probably can find them easily with Google. But here's just a basic example of one.

Code:
on *:text:*:#: {
  if (*slaps $me $+ * iswm $1-) {
    describe $chan slaps $nick back.
    if ($me isop $chan) { kick $chan $nick }
  }
}


Be aware that any kind of response script like this can result in both you and the other person getting flooded off the network if both of you have a similar response script. The kick may help, but not necessarily. These kinds of scripts are often more trouble than the "fun" aspect that so many people associate with them.


Invision Support
#Invision on irc.irchighway.net
Re: may I know how to do such script work? [Re: Riamus2] #227769 21/11/10 03:28 PM
Joined: Nov 2010
Posts: 6
L
LeoWong Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
L
Joined: Nov 2010
Posts: 6
Just wonder where i put the code in?

Re: may I know how to do such script work? [Re: LeoWong] #227775 21/11/10 10:25 PM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
In your remotes (Alt + R)

Re: may I know how to do such script work? [Re: Riamus2] #227814 23/11/10 06:21 AM
Joined: Nov 2010
Posts: 6
L
LeoWong Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
L
Joined: Nov 2010
Posts: 6
I done this but it does not seem to be working:(

Re: may I know how to do such script work? [Re: LeoWong] #227815 23/11/10 06:54 AM
Joined: Jun 2007
Posts: 933
5
5618 Offline
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
It's an on ACTION event, not an on TEXT event. Try this code:
Code:
on *:ACTION:$($+(*,slaps $me,*)):#:{
  describe $chan slaps $nick back.
  if ($me isop $chan) kick $chan $nick
}



Re: may I know how to do such script work? [Re: 5618] #227819 23/11/10 11:10 AM
Joined: Oct 2004
Posts: 8,327
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,327
Oops. Good catch. Not sure how I messed that up. smirk


Invision Support
#Invision on irc.irchighway.net