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,]) }
}
}
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.
**** 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) }
}
}