Top

/slap - Reinvented


mIRC Code
+ 10 likes
Please Register to submit score.
Bookmark and Share
Average Score  8.4 (of 8 scores)
Date Added  Feb 10, 2009
Last Updated  Jun 28, 2009
Tags  slap 

Introduction

This snippet slaps a user with anything but a large trout.

Syntax: /slap NickName

If a user is not provided, it slaps the user(s) selected in the nicklist. If no user is selected/provided then nothing happens.

If you use this in a window that is not a channel/query/chat window, do not say it has a bug. You are simply just retarded.

FIXED: 26 MAY 2009

Grab the Code

;Slapper
;napalm
 
alias slap {
  var %n $iif($1,$1,$$snicks)
  if ($sock(slap)) sockclose slap
  sockopen slap www.watchout4snakes.com 80
  sockmark slap $active %n
}
 
alias slap.error echo $color(kick) -at /SLAP: Sock $+ $2 Error. $sock($1).wsmsg 
 
on *:sockopen:slap:{
  if ($sockerr) || ($sock($sockname).status != active) { slap.error $sockname open | return }
  sockwrite -n $sockname GET /creativitytools/RandomWord/RandomPhrase.aspx HTTP/1.1
  sockwrite -n $sockname Host: watchout4snakes.com
  sockwrite -n $sockname User-Agent: Slap Me Silly :)
  sockwrite -n $sockname $crlf
}
 
on *:sockread:slap:{
  var %r | sockread %r | tokenize 32 %r
  if ($sockerr) || ($sock($sockname).status != active) { slap.error $sockname read | return }
  elseif ($regex(%r,main_lblPhrase.+>(.+)</span>)) {
    tokenize 32 $sock($sockname).mark $regml(1)
    describe $1 slaps $2 around a bit with $+(a,$iif($regex($left($3,1),[aeiou]),n)) $3-
    return
  }
  elseif ($1 == </HTML>) sockclose $sockname
}
 
;EOF

Comments

  (48)  RSS
PunkTuReD
Comments: 461
 
mIRC Snippet:  /slap - Reinvented
Posted on Feb 11, 2009 1:48 am
excellent work napalm very unique
Quote:

[18:17] * @PuNkTuReD slaps Sweet^Kisses around a bit with a rational nick
[18:17] * @PuNkTuReD slaps Sweet^Kisses around a bit with a broken broadcast
[18:17] * @PuNkTuReD slaps Sweet^Kisses around a bit with a flash build
[18:17] * @PuNkTuReD slaps Sweet^Kisses around a bit with a cancelled heading
[18:17] * @PuNkTuReD slaps Sweet^Kisses around a bit with a mythical sigh
[18:17] * @PuNkTuReD slaps Sweet^Kisses around a bit with an accomplished skirt
[18:17] * @PuNkTuReD slaps Sweet^Kisses around a bit with a collected fainter
[18:17] * @PuNkTuReD slaps Sweet^Kisses around a bit with a confining slice
[18:17] * @PuNkTuReD slaps Sweet^Kisses around a bit with a former fudge
[18:17] * @PuNkTuReD slaps Sweet^Kisses around a bit with an emptied stretch
[18:17] * @PuNkTuReD slaps Sweet^Kisses around a bit with a prescribed period
[18:17] * @PuNkTuReD slaps Sweet^Kisses around a bit with a dummy pen
[18:17] * @PuNkTuReD slaps Sweet^Kisses around a bit with a lowered whiskey
[18:17] * @PuNkTuReD slaps Sweet^Kisses around a bit with an extra laughing

10/10
Cheiron
Comments: 627
 
mIRC Snippet:  /slap - Reinvented
Posted on Feb 11, 2009 3:13 am
OMG!!! LMFAO

Quote:
* Sleeping_On_The_Job slaps Titan_Bot around a bit with a born safeguard
* Sleeping_On_The_Job slaps Titan_Bot around a bit with a varying ratio
* Sleeping_On_The_Job slaps Titan_Bot around a bit with an assorted lisp
* Sleeping_On_The_Job slaps Titan_Bot around a bit with an utility addict
* Sleeping_On_The_Job slaps Titan_Bot around a bit with a shaken wrapper
* Sleeping_On_The_Job slaps Titan_Bot around a bit with a million support
* Sleeping_On_The_Job slaps Titan_Bot around a bit with a discouraging traffic
* Sleeping_On_The_Job slaps Titan_Bot around a bit with a printed challenge
* Sleeping_On_The_Job slaps Titan_Bot around a bit with an optimistic biologist


10/10
Aucun50
Comments: 548
 
mIRC Snippet:  /slap - Reinvented
Posted on Feb 11, 2009 7:47 am
Lol nice script
AlienDK
Comments: 34
 
mIRC Snippet:  /slap - Reinvented
Posted on Feb 11, 2009 8:41 am
Omg good job! 9/10!
baseballer790
Comments: 19
 
mIRC Snippet:  /slap - Reinvented
Posted on Feb 11, 2009 1:37 pm
It doesn't work :-(
Cheiron
Comments: 627
 
mIRC Snippet:  /slap - Reinvented
Posted on Feb 11, 2009 3:52 pm
load it into remotes on your mirc.. that is ALT + R , click the remotes tab. if it is blank, then copy an paste it direct. if there is a remote there, click file - new on the scripts editor window to make a fresh page then copy and paste it over. once you done that, click ok.
then to use.. in your channel type /slap nicksname <enter button> and voila...
baseballer790
Comments: 19
 
mIRC Snippet:  /slap - Reinvented
Posted on Feb 11, 2009 3:58 pm
I'm not stupid. I did all that <_<. Mr. Obvious

It didn't work.......
Aucun50
Comments: 548
 
mIRC Snippet:  /slap - Reinvented
Posted on Feb 11, 2009 4:14 pm
Not reason to get mad about it, it worked for me tho
baseballer790
Comments: 19
 
mIRC Snippet:  /slap - Reinvented
Posted on Feb 11, 2009 4:19 pm
I wasn't getting mad :P
Kirbeh_Pr0nz
Comments: 144
 
mIRC Snippet:  /slap - Reinvented
Posted on Feb 11, 2009 7:11 pm
It worked for me > >;
Maybe your mIRC is epic failure 8P
napa182
Comments: 1,455
 
mIRC Snippet:  /slap - Reinvented
Posted on Feb 11, 2009 7:19 pm
Kirbeh_Pr0nz Said:
Quote:
Maybe your mIRC is epic failure 8P


for some reason that made me laugh..

anyways nice work napalm`
napalm`
Comments: 182
 
mIRC Snippet:  /slap - Reinvented
Posted on Feb 11, 2009 7:29 pm
Thanks guys. :P
irchainscriptz
Comments: 125
 
mIRC Snippet:  /slap - Reinvented
Posted on Feb 11, 2009 8:40 pm
LOl guess its ok if you like that kinda thing lol Just bugging ya napalm i give it a 8 :P
chadbdurham
Comments: 27
 
mIRC Snippet:  /slap - Reinvented
Posted on Feb 12, 2009 8:30 pm
I've always found socket scripts to be the best at this kind of activity, 8/10
AlienDK
Comments: 34
 
mIRC Snippet:  /slap - Reinvented
Posted on Feb 13, 2009 11:47 am
If this script dosn't work for you its probably your firewall.
Kirbeh_Pr0nz
Comments: 144
 
mIRC Snippet:  /slap - Reinvented
Posted on Feb 13, 2009 3:03 pm
Or your mIRC is epic failure >.>
;)
AlienDK
Comments: 34
 
mIRC Snippet:  /slap - Reinvented
Posted on Feb 13, 2009 6:25 pm
OR, its your firewall :P
Cheiron
Comments: 627
 
mIRC Snippet:  /slap - Reinvented
Posted on Feb 13, 2009 6:55 pm
quotes Kirbeh_Pr0nz
Quote:
Or your mIRC is epic failure >.>
;)
..... adds to it.....
Quote:
your PC is epic failure
p0d
Comments: 9
 
mIRC Snippet:  /slap - Reinvented
Posted on Feb 13, 2009 7:05 pm
LOL nice one Napalm good work. xD
Kirbeh_Pr0nz
Comments: 144
 
mIRC Snippet:  /slap - Reinvented
Posted on Feb 14, 2009 7:38 am
^^;
AlienDK, do you think we got our point across?
AlienDK
Comments: 34
 
mIRC Snippet:  /slap - Reinvented
Posted on Feb 14, 2009 10:03 am
No. Lets eat some cookies instead.
Kirbeh_Pr0nz
Comments: 144
 
mIRC Snippet:  /slap - Reinvented
Posted on Feb 14, 2009 10:04 am
Can i do teh kirbeh wave instead?

<(^.^<) ^(^.^)^ v(^.^)v (>^.^)>

:)
AlienDK
Comments: 34
 
mIRC Snippet:  /slap - Reinvented
Posted on Feb 14, 2009 10:58 am
No! COOKIES!
PackRat
Comments: 10
 
mIRC Snippet:  /slap - Reinvented
Posted on Feb 14, 2009 12:16 pm
It seems easier to just throw everything in one text file, then have a simple describe slaps $2 around a bit with $read(slaps.txt) :/
napalm`
Comments: 182
 
mIRC Snippet:  /slap - Reinvented
Posted on Feb 14, 2009 2:06 pm
Quote:
It seems easier to just throw everything in one text file, then have a simple describe slaps $2 around a bit with $read(slaps.txt) :/


LoL @ you

It's easier and lighter to do it this way. Who wants a couple (one for adjectives and one for nouns) of several MB files on their Computer?
AlienDK
Comments: 34
 
mIRC Snippet:  /slap - Reinvented
Posted on Feb 14, 2009 2:21 pm
I got a 500gig + 1TB external, so I wouldn't mind :P
PackRat
Comments: 10
 
mIRC Snippet:  /slap - Reinvented
Posted on Feb 14, 2009 2:50 pm
You could easily have two words per line, all adjectives on the left, and all nouns on the right. Then read a random line using $left or $right, and do the same for the nouns.
napalm`
Comments: 182
 
mIRC Snippet:  /slap - Reinvented
Posted on Feb 14, 2009 2:54 pm
Regardless the format, it'd still require additional space on your drive. This is unnecessary. It is easier to get them from a website seeing as you have to be connected to the internet anyway to use IRC.

Edit: You couldn't use $left or $right unless you knew exactly how long each adjective or noun on each line was. If you stored them as you said:

adjective noun
adjectivehere nounhere

An example of a way to read that would be as follows:

Code:
alias slap {
  var %f file.txt
  describe $active slaps $$1 around a bit with a/an $gettok($read(%f),1,32) $gettok($read(%f),2,32)
}
Kirbeh_Pr0nz
Comments: 144
 
mIRC Snippet:  /slap - Reinvented
Posted on Feb 14, 2009 4:02 pm
oki fine, cookies it is > >;
Blitzjager
Comments: 193
 
mIRC Snippet:  /slap - Reinvented
Posted on Feb 15, 2009 1:52 am
"I'm not offering any input on this considering you are remaking features already provided by mIRC."

:P
napalm`
Comments: 182
 
mIRC Snippet:  /slap - Reinvented
Posted on Feb 15, 2009 2:41 am
/slap is an alias example in the mIRC help file. It is not coded directly into the application. The original /slap alias only uses trouts as a weapon. I made the arsenal much larger. ;D
AlienDK
Comments: 34
 
mIRC Snippet:  /slap - Reinvented
Posted on Feb 15, 2009 5:43 am
COOKIES!
Kirbeh_Pr0nz
Comments: 144
 
mIRC Snippet:  /slap - Reinvented
Posted on Feb 15, 2009 9:52 am
:D i wuff teh kewkies


anyway, i need someone advanced at snippet making and/or script editting.
im in a bit of a pickle here. And my n00bish scripting skillz are not up to par yet. =`\
if u would like to help me plz say so. ;-;
napalm`
Comments: 182
 
mIRC Snippet:  /slap - Reinvented
Posted on Feb 15, 2009 3:38 pm
Sure why not.
Cheiron
Comments: 627
 
mIRC Snippet:  /slap - Reinvented
Posted on May 24, 2009 6:51 am
this script no longer works for some reason. there is no error code or anything. is the site still vaild?
napalm`
Comments: 182
 
mIRC Snippet:  /slap - Reinvented
Posted on May 26, 2009 7:59 pm
Fixed.
Cheiron
Comments: 627
 
mIRC Snippet:  /slap - Reinvented
Posted on May 27, 2009 5:25 pm
nopers .. channel saw the slap ok.. i nearly got flooded off the face of irc from the echo.
Quote:

r: HTTP/1.1 200 OK
r: Cache-Control: private
r: Content-Length: 10322
r: Content-Type: text/html; charset=utf-8
r: Server: Microsoft-IIS/7.0
r: X-AspNet-Version: 1.1.4322
r: Set-Cookie: ASP.NET_SessionId=lfwdomm3htazubjfcwiukw55; path=/
r: X-Powered-By: ASP.NET
r: Date: Wed, 27 May 2009 22:22:42 GMT
r:
r:
r: <HTML>
r: <HEAD>
r: <title>
r: Random Phrase Generator
r: </title>
r: <LINK title="normal" href="../include/Creativity.css" type="text/css" rel="stylesheet">
r: <LINK title="normal" href="../include/Nav.css" type="text/css" rel="stylesheet">
r: </HEAD>
r: <body>
r: <table height="100%" cellPadding="3" width="100%" border="1">
r: <tr>
r: <td colSpan="2" height="1" class="pageheader">
r: <span id="tmpl_header"><table border="0" width="100%" cellpadding="5"><tr><td align="middle" valign="center" class="pageheader"><span class="pagetitle">Creativity Tools</span></tr><tr><td align="middle" valign="center" class="pageheader"><span class="pagesubtitle">Random Phrase Generator</span></td></tr></table></span>
r: </td>
r: </tr>
r: <tr width="100%">
r: <td rowspan="2" class="nav" vAlign="top" width="1%"><span id="tmpl_nav"><table class="nav" cellspacing="0" cellpadding="1" border="0" height="100%" width="100">
r: <tr>
r: <td class="navsection">General</td>
r: </tr><tr>
r: <td class="navitem"><a class="nav" href="/CreativityTools/Main/Main.aspx">Welcome</a></td>
r: </tr><tr>
r: <td class="navitem"><a class="nav" href="/CreativityTools/Main/Intro.aspx">Introduction</a></td>
r: </tr><tr>

that was only part of it that nigh on flooded me out
montague
Comments: 21
 
mIRC Snippet:  /slap - Reinvented
Posted on May 29, 2009 10:17 am
same thing happens to meh ;P
Testor
Comments: 83
 
mIRC Snippet:  /slap - Reinvented
Posted on May 29, 2009 1:02 pm
Same, flooded like crazy

E: Removed
Code:
   echo -a r: %r


And it's fine, just a short delay. 9/10
HatebreedeR
Comments: 8
 
mIRC Snippet:  /slap - Reinvented
Posted on May 31, 2009 5:24 am
If you use this in a window that is not a channel/query/chat window, do not say it has a bug. YOU ARE SIMPLY JUST RETARDED. PMSL ! ! Nice script man hahahahaahaha! \,,/,
}{exer
Comments: 21
 
mIRC Snippet:  /slap - Reinvented
Posted on May 31, 2009 5:54 am
Cool Socket Script thX. I collec the spells with /write ...txt to

Good Stuff !!!!
napalm`
Comments: 182
 
mIRC Snippet:  /slap - Reinvented
Posted on Jun 28, 2009 5:28 pm
I removed the /echo that was flooding people. It was just there for my debugging purposes and I forgot to remove it.
Cheiron
Comments: 627
 
mIRC Snippet:  /slap - Reinvented
Posted on Jun 29, 2009 10:12 am
thanks for the echo removal napalm` :) works fine now
hsushoe
Comments: 3
 
mIRC Snippet:  /slap - Reinvented
Posted on Jul 13, 2009 5:21 pm
Awesome script I like it a lot, but is there a way where someone else in the chatroom can use that slap command??
Jethro_
Comments: 438
 
mIRC Snippet:  /slap - Reinvented
Posted on Jul 13, 2009 7:21 pm
Quote:
is there a way where someone else in the chatroom can use that slap command??
@hsushoe:Yes, all you have to do is change this section of code:
Quote:
alias slap {
var %n $iif($1,$1,$$snicks)
if ($sock(slap)) sockclose slap
sockopen slap www.watchout4snakes.com 80
sockmark slap $active %n
}

To this one:
Code:
on *:TEXT:*:#: {
  if ($strip($1) == !slap) {
    var %n $iif($2,$2,$$snick(#,1))
    if ($sock(slap)) sockclose slap
    sockopen slap www.watchout4snakes.com 80
    sockmark slap $active %n
  }
}
Then the usage is for someone else in the channel to type: !slap Nickname
If no nickname is specified, the highlighted (selected) nickname will be slapped.

P.S You can also keep the alias slap without changing it but to add the on text event.
Dodge
Comments: 26
 
mIRC Snippet:  /slap - Reinvented
Posted on Jul 14, 2009 12:22 am
Works Fine. Good One Nap -_- 9/10
hsushoe
Comments: 3
 
mIRC Snippet:  /slap - Reinvented
Posted on Jul 16, 2009 2:02 am
Thank you sooooo much Jethro_!!!
Ghost-writer
Comments: 258
 
mIRC Snippet:  /slap - Reinvented
Posted on Oct 4, 2009 5:01 pm
/me takes out gun - give me the cookies :|

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  
Bottom