Rude Slap

By napa182 on Aug 02, 2010

!Updated! with a diff site cuz the old one no longer works.

Well after a few people asked me for this snippet, I decided just to post it here so anyone can get it.

copy/paste this in a new remote.
to use right click a nick in the nicklist an click Rude Slap.

[size=16]Warning DO NOT use this in channels where they don't allow foul language, or you may be banned. 18+ channels would be the best bet to use it in.[/size]

that being said don't come crying to me if you get banned...

[size=18]As alway you may rip strip, and bust this snippet any way you see fit...[/size]

Ex:

  • napa182 slaps SlickOne around abit with a stillborn troll!
  • napa182 slaps Death around abit with a chlamydia festering rump ranger!

  • napa182 slaps Bertrum around abit with a brain damaged twat!

  • napa182 slaps Rev_john_straub around abit with a anal probing douche bag!

Enjoy...

on $*:text:/^!slap\s(\S+)$/iS:#:if ($regml(1) ison #) rude_slap # $v1 
alias -l rude_slap {
  if (!$($+(%,f,$1),2)) { inc -u5 $+(%,f,$1)
    if ($sock($+(ins,$1))) sockclose $+(ins,$1)
    sockopen $+(ins,$1) insultgenerator.net 80
    sockmark $+(ins,$1) describe $1 slaps $2 around abit with a
  }
}
menu nicklist {
  .Rude Slap $+([,$$1,]):rude_slap # $$1
} 
on *:load:{
  echo -a 08!!04WARNING08 You Have Just Loaded Napa182's Rude Slap Snippet 04WARNING08!! 
  echo -a 08!!04WARNING08 This snippet will say curse04/08foul words 04WARNING08!!
  echo 12 -a An Irc.EzzyChat.Com Prodouction. 
}
on *:sockopen:ins*: {
  sockwrite -n $sockname GET / HTTP/1.1
  sockwrite -n $sockname Host: $+($sock($sockname).addr,$str($crlf,2))
}
on *:sockread:ins*: {
  var %ins | sockread %ins
  if ($regex(%ins,/you (.+?)<\/h1>/)) { 
    $sock($sockname).mark $regml(1) 
    sockclose $sockname
  }
}

Comments

Sign in to comment.
Jethro   -  Jan 10, 2011

nopic01, if it ain't broke, don't mess with it. lol

Why don't you show napa what you've done so he can spot the issue for you?

 Respond  
napa182   -  Jan 10, 2011

nopic01 it is something on ur side, cuz it is working just fine..

<~napa182> !slap Death

  • &Sick0 slaps Death around abit with a throwback
    <~napa182> !slap Death
  • &Sick0 slaps Death around abit with a pussy hole
    <~napa182> !slap Death
  • &Sick0 slaps Death around abit with a fanny
    <~napa182> !slap Death
  • &Sick0 slaps Death around abit with a putrid knicker-cheese
 Respond  
nopic01   -  Jan 10, 2011

i was playing with it, because with all the scripts i have ins could have been used, so i renamed socket, also tried with ins, got the same thing

 Respond  
napa182   -  Jan 05, 2011

nopic01 Said

  • /sockopen: 'lins' socket in use (line 6, script1.mrc)

um you must have changed something cuz the socket's name is ins not lins
also it is working just fine.

 Respond  
nopic01   -  Jan 05, 2011

i go to slap and get nothing, i try again, i get

  • /sockopen: 'lins' socket in use (line 6, script1.mrc)
 Respond  
Cheiron   -  Sep 18, 2010

nicely done napa and thanks for the update

 Respond  
b0sse   -  Sep 16, 2010

too bad the old site went down, these insults wasnt as funny as the other ones :/

 Respond  
napa182   -  Sep 16, 2010

Ok Updated with a diff site. It should work now...

 Respond  
napa182   -  Sep 16, 2010

it looks like the site went down. That is why it has stopped working.

 Respond  
b0sse   -  Sep 16, 2010

Hmm, for some reason this suddenly stopped working for me again :/
Worked fine with the !slap trigger you made me up until now, but now nothing happens when I go !slap

 Respond  
Raicho Ichisada   -  Aug 19, 2010

lol XD

 Respond  
napa182   -  Aug 08, 2010

Yeah im not to clear either on "show an example of how to show the whole text" either.
Do you mean the whole text from the site? or....

I did make this snippet as a insult one that shows the whole line from the site. I think i posted as a comment on Insult Script (Random Insult Generator) by ES

the text comes out as
ex:

@insult Death <&Sick0> Take a bath Death, you anal invading retard!
 Respond  
Jethro   -  Aug 08, 2010

redline187, I'm not clear on what you mean by showing the whole text. if you mean that you don't want to use the default slap message but have the script output the default message from the website, you need to modify this line:

sockmark ins describe # slaps $$1 around abit with a
To this:

sockmark ins describe # $$1 $+ ,

If you want it as a message instead of an action, use this one:

sockmark ins msg # $$1 $+ ,

Then change this bit in the sockread event:> if ($regex(%ins,/.+you(.+)<\/span>/)) {
$sock(ins).mark $regml(1)
sockclose ins
}To this:

  if ($regex(%ins,/b">(.+)<\/span>/)) {
    $sock(ins).mark $regsubex($replace($regml(1),$&
      </span><br>,$+($chr(44),$chr(32))),/(.)/,$lower(\1))
    sockclose ins
  }
 Respond  
redline187   -  Aug 08, 2010

great work nice snippet can someone show an example of how to show the whole text thank you

 Respond  
napa182   -  Aug 07, 2010

sounds odd.. seems to work fine on Google chrome.

 Respond  
Jethro   -  Aug 07, 2010

That website www.beleaguer.com has a bug of some sort or the browser itself is to blame. When using firefox browser and refreshing it, you get a nonstop refresh...lol This only happens to firefox 3.6.8 as far as I know.

 Respond  
b0sse   -  Aug 06, 2010

Thanks napa, works great ^^

 Respond  
napa182   -  Aug 05, 2010

lol

 Respond  
Jethro   -  Aug 05, 2010

napa182, rude_slap alias for a single event? :/

Edit - My bad. I missed seeing the menus. :p

 Respond  
napa182   -  Aug 05, 2010

If you want both the menu and a trigger it would be better to replace

menu nicklist {
  .Rude Slap $+([,$$1,]):{
    if ($sock(ins)) sockclose ins
    sockopen ins www.beleaguer.com 80
    sockmark ins describe # slaps $$1 around abit with a
  }
}

with

on $*:text:/^!slap\s(\S+)$/iS:#:if ($regml(1) ison #) rude_slap # $v1
alias -l rude_slap {
  if (!%f) {
    inc -u5 %f
    if ($sock(ins)) sockclose ins
    sockopen ins www.beleaguer.com 80
    sockmark ins describe $1 slaps $2 around abit with a
  }
}
menu nicklist {
  .Rude Slap $+([,$$1,]):rude_slap # $$1
}
 Respond  
Aucun50   -  Aug 05, 2010

Add this to the code b0sse.

on *:text:!slap*:#: { 
  if ($2 ison $chan) {
    if ($sock(ins)) sockclose ins
    sockopen ins www.beleaguer.com 80
    sockmark ins describe # slaps $2 around abit with a
  }
}
 Respond  
b0sse   -  Aug 05, 2010

Guys, would it be possible to make this into a public script?
So it listens to a trigger like !slap or .slap ?

So that everyone in channel can use and abuse it ^^
haha

 Respond  
Jethro   -  Aug 04, 2010

Aucun50, using regex has its advantages. Not every souce code will have something for you to "tokenize" with. And that's when the regex comes into play. You should use tokens and regex accordingly.

 Respond  
Aucun50   -  Aug 04, 2010

The lastest version is 6.35 or 7.1 for stable versions.

 Respond  
b0sse   -  Aug 04, 2010

Alright, first time I tried it, I was using my SysReset 2.53 client which uses mIRC v6.03, and thats when it didnt work.

Now tried it in my other SysReset 2.55 with mIRC v6.21 instead, and it worked fine :D

 Respond  
b0sse   -  Aug 04, 2010

Hmm, no I don't think my version of mIRC is old, dunno what the latest version is though, but mine is v6.21 with the SysReset 2.55 client.

 Respond  
Aucun50   -  Aug 04, 2010

I always liked using tokens in sockets like that Jethro_, regex doesn't make sense to me most the time :)

 Respond  
Jethro   -  Aug 04, 2010

b0sse, if regex, for any reason, doesn't work for you. There is an easy fix:

Change these two lines of code:> if ($regex(%ins,/.+you(.+)<\/span>/)) {
$sock(ins).mark $regml(1) To these:

  if ($remove($token(%ins,6,60),br>you)) {
    $sock(ins).mark $ifmatch

You can use $v1 in place of the $ifmatch, but I figure you might be running an old version of mIRC, so I choose $ifmatch just in case.

If you use $gettok or $token along with the $v1, it actually shortens the script size further in about 4 to 7 bytes (though it's only a little) than using regex. :/

Anyway, this is a very entertaining, funny and useful snippet every one will have a laugh of. I rated an 8 along with my likes.

 Respond  
napa182   -  Aug 04, 2010

b0sse the snippet works fine for me and alot of others.
b0sse what version of mIRC are you using? I do know that older versions of mIRC have issues
with regex.

 Respond  
b0sse   -  Aug 04, 2010

Can't get it to work, when I right click nick and press Rude Slap [nick] nothing happens.

 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.