mIRC Homepage
Posted By: LeoWong may I know how to do such script work? - 21/11/10 01:36 PM
Can i know How can i do a script in mIRC where people slap me,I will slap back automatically + kick him/her
Posted By: Riamus2 Re: may I know how to do such script work? - 21/11/10 02:30 PM
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.
Posted By: LeoWong Re: may I know how to do such script work? - 21/11/10 03:28 PM
Just wonder where i put the code in?
Posted By: RusselB Re: may I know how to do such script work? - 21/11/10 10:25 PM
In your remotes (Alt + R)
Posted By: LeoWong Re: may I know how to do such script work? - 23/11/10 06:21 AM
I done this but it does not seem to be working:(
Posted By: 5618 Re: may I know how to do such script work? - 23/11/10 06:54 AM
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
}


Posted By: Riamus2 Re: may I know how to do such script work? - 23/11/10 11:10 AM
Oops. Good catch. Not sure how I messed that up. smirk
© mIRC Discussion Forums