mIRC Homepage
Posted By: ColonelApollo Slap Script - 08/08/06 03:48 AM
Yea I can guess you guys get this all the time but yea I barely understand scripts so here I go.

Can anyone help me with a script that would slap someone when they enter a room? obviously an mIRC script.
Posted By: RusselB Re: Slap Script - 08/08/06 04:05 AM
Use this at your own risk
Code:
 on !*:join:#:{
describe # slaps $nick
}
 

I didn't think you'd want to slap yourself, but if you don't mind that happening, remove the ! from the ON JOIN event
Posted By: ColonelApollo Re: Slap Script - 08/08/06 05:28 AM
Thanks for that, I just have one more question is there a slap back script, I tried altering that one but it didn't work.

Also I didn't slap myself on entry even without altering it.
Posted By: RusselB Re: Slap Script - 08/08/06 05:43 AM
Slapback:
Code:
 on *:action:*slap*:#:{
if $me isin $1- {
describe # slaps $nick back
}
}
 


Warning..multiple users of scripts like this can cause one or more users to flood off of the server.

It's a good thing that you didn't slap yourself on entry without altering it.
I'm sorry if I wasn't clear. I meant that if you wanted to slap yourself on entry, then you would have to alter it.
Posted By: ColonelApollo Re: Slap Script - 08/08/06 06:05 AM
Thank you for both the scripts, the second one I am going to keep off most of the time though for obvious reason. But thanks alot laugh
Posted By: glue Re: Slap Script - 08/08/06 09:49 AM
just put a timer on it like
Code:
  if ($me isin $1-) && (!%fld.action.block) {
    set -u20 %fld.action.block x
    var %x = 1
    while  (%x <= $lines(actionattack.dat)) {
      if ($read(dats/actionattack.dat,%x) isin $1-) {
        .describe # blocks the slap and slaps $nick back
        inc %x
      }
      inc %x
    }
  }


the actionattack.dat files is just a text file with words that are considered an attack
like
slap
kick
punch
etc
© mIRC Discussion Forums