Slap Dodge

By King2SIK on Sep 12, 2011

This script is probally every where but I havent seen it on here. I lay the ground for this script and Aranos (on OGN sever) helped me do the rest. I got the idea from Kron also on OGN sever. He wouldnt tell me the script so I decided to try to make it for myself.

Bassicly its a slap dodge script.

EG:

[21:31] * @**** slaps King2SIK around a bit with a large trout
[21:31] * @King2SIK dodges! [Slaps Dodged: 110]

(Name removed as I didnt ask for permission to add him on here)

So as you can see above its a bit boring but Im new to mIRC. So it bassicly says when some one slaps you "dodges!" and also has a counter.

The only problem with it is it only works if some one actually slaps you (like on mIRC when you right click the nick and click Slap). But you can always edit it! Another good thing about it is it works in query (thanks to Aranos).

It definetly works with my custom slaps (which I may load onto here) using the "/slap" command to set it off.

Another thing to mention is the second line of the script. It stops the script working in the chans you dont want them to work in. Use a coma to seperate the chans you want it disabled on.

Hope you have a nice time with this and please give me any advice bad or good!

King2SIK

on *:action:*slap*:#: {
  var %slap-excludes = #help,#suppport
  if (!$istok(%slap-excludes,$chan,44)) {
    if ($me isin $1-) {
      inc %anti
    describe $chan dodges! $+([Slaps Dodged:,%anti,]) }
  }
}

Comments

Sign in to comment.
Jethro   -  Sep 17, 2011

napa182 did make such script before. It's very easy to alter it to be a random dodge slap script...even though I don't see the point really.

 Respond  
Epic   -  Sep 17, 2011

i was wating for napa to put up a socket slap doge funny script :(

 Respond  
King2SIK   -  Sep 13, 2011

Lol rate this 10 because I gave you the pleasure of reading the argument!!

 Respond  
Jethro   -  Sep 13, 2011

This time dani worked me up and pushed all my buttons. However, I haven't pushed his red clown button in his avatar yet.

 Respond  
napa182   -  Sep 13, 2011

lol @ you two getting all worked up over a slap snippet... funny read tho..

 Respond  
Jethro   -  Sep 12, 2011

King2Slk, Dani_l11 was in a state of ignorance he forgot to remove an extra ( , enclosed the $me isin $1-, which causes the error. Sometimes a person gets so stuck up and conceited he or she forgets where they come from, when they start out as a newbie.

 Respond  
Sorasyn   -  Sep 12, 2011

Oh now where did I put that unsubscribe button again... O-O

 Respond  
Dani_l11   -  Sep 12, 2011

goodnight

 Respond  
Jethro   -  Sep 12, 2011

Dnai, you're making no sense out of yourself for telling me I'm senseless.

 Respond  
Dani_l11   -  Sep 12, 2011

no sense

 Respond  
Jethro   -  Sep 12, 2011

Dnai, that is not enough for me as a reputable answer, 'cause of the ischan operator I used.

 Respond  
Jethro   -  Sep 12, 2011

The so-called "controversy" all started when you use * instead of #

The * makes your script listen to both PM and channel. What Scakk did was alter your script to listen to $chan only.

I didn't test mine, but upon a brief testing I conducted, it seems to have worked. $chan returns $null in PM. Your originally used $active, and that'll trigger in every mIRC window, so say if you're looking at the status, you'll get the script sending you the output there.

 Respond  
King2SIK   -  Sep 12, 2011

...and Im the n00b!

 Respond  
Dani_l11   -  Sep 12, 2011

Jehtro, var %active = $iif($active ischan,$v1,$nick) | inc %anti
You're making the same mistake as king, using $active instead of $chan

 Respond  
King2SIK   -  Sep 12, 2011

Hahahaha yes it did!

 Respond  
Frenetic   -  Sep 12, 2011

Mine: 110% worked.

 Respond  
King2SIK   -  Sep 12, 2011

Ok so heres the score

Jethro's: Kinda failed!
Dani's: * /if: invalid format (line 4, script5)
Scakk's: 100% worked

Thanks for helping guys!

 Respond  
Scakk   -  Sep 12, 2011

A simple way to do it

on *:action:*slap*:#: {
  var %slap-excludes = #help,#suppport
  if (!$istok(%slap-excludes,$chan,44)) {
    if ($me isin $1-) {
      inc %anti
    describe $chan dodges! $+([Slaps Dodged:,%anti,]) }
  }
}
 Respond  
Jethro   -  Sep 12, 2011

Explain it to me then. Don't just throw your drivel at me. Don't be another example of ignorant hotshot shuffling people with what is correct and incorrect in the history making.

 Respond  
Dani_l11   -  Sep 12, 2011

Your code is incorrect.

 Respond  
Jethro   -  Sep 12, 2011

dani, you should stop acting like a twat. This is a supportive, social networking oriented forum. Don't be spoiling it.

 Respond  
King2SIK   -  Sep 12, 2011

Still not working

 Respond  
Dani_l11   -  Sep 12, 2011

**** yea jethro made a worthless code!

Code:
on *:action:*:*:{
  .ignore -cpu3 $nick 2
  var %slap-excludes = #help,#suppport
  var %active = $iif($active ischan,$v1,$nick) | inc %anti
  if (!$istok(%slap-excludes,%active,44)) && ($count($strip($1-),slap,$me)) {
    describe %active dodges! $chr(91) $+ Slaps Dodged: %anti $+ $chr(93)
  }
}

Can't edit anymore, its too late.

Also; correct one without identifieres to make it look more complicated and me more intelligent is

on *:action:*slap*:*: {
  var %slap-excludes = #help,#suppport
  if (!$istok(%slap-excludes,#,44)) {
    if (($me isin $1-) {
      inc %anti
    describe $iif(#,#,$nick) dodges! $chr(91) $+ Slaps Dodged: %anti $+ $chr(93)    }
  }
}
 Respond  
Jethro   -  Sep 12, 2011
on *:action:*:*:{
  .ignore -cpu3 $nick 2
  var %slap-excludes = #help,#suppport
  var %active = $iif($active ischan,$v1,$nick) | inc %anti
  if (!$istok(%slap-excludes,%active,44)) && ($count($strip($1-),slap,$me)) {
    describe %active dodges! $chr(91) $+ Slaps Dodged: %anti $+ $chr(93) 
  }
}
 Respond  
King2SIK   -  Sep 12, 2011

@Frenetic

Birthday in 6 days will it make any difference?

 Respond  
King2SIK   -  Sep 12, 2011

Sorry about my nooby-ness, could you please copy the script and edit it there so I can just copy it? Its just I dont know where you are telling me to put things lol.

 Respond  
Frenetic   -  Sep 12, 2011

You have to be 13 or older to join this site, just an FYI.

 Respond  
Dani_l11   -  Sep 12, 2011

$active with $iif(#,#,$nick)

 Respond  
King2SIK   -  Sep 12, 2011

I get you now, Ive seen this problem. What do I change?

 Respond  
Dani_l11   -  Sep 12, 2011

Still not correct Sunny. Since it is an :*: event, it can be triggered everywhere. Also in PM. That's why you need the $iif

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.