mIRC Home    About    Download    Register    News    Help

Print Thread
Slap Script #155598 08/08/06 03:48 AM
Joined: Aug 2006
Posts: 4
C
ColonelApollo Offline OP
Self-satisified door
OP Offline
Self-satisified door
C
Joined: Aug 2006
Posts: 4
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.

Last edited by ColonelApollo; 08/08/06 03:50 AM.
Re: Slap Script #155599 08/08/06 04:05 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
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

Re: Slap Script #155600 08/08/06 05:28 AM
Joined: Aug 2006
Posts: 4
C
ColonelApollo Offline OP
Self-satisified door
OP Offline
Self-satisified door
C
Joined: Aug 2006
Posts: 4
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.

Last edited by ColonelApollo; 08/08/06 05:30 AM.
Re: Slap Script #155601 08/08/06 05:43 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
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.

Re: Slap Script #155602 08/08/06 06:05 AM
Joined: Aug 2006
Posts: 4
C
ColonelApollo Offline OP
Self-satisified door
OP Offline
Self-satisified door
C
Joined: Aug 2006
Posts: 4
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

Re: Slap Script #155603 08/08/06 09:49 AM
Joined: Aug 2006
Posts: 12
G
glue Offline
Pikka bird
Offline
Pikka bird
G
Joined: Aug 2006
Posts: 12
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