Top

Cyborg Name Generator


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  4.7 (of 7 scores)
Date Added  Aug 05, 2008
Last Updated  Aug 06, 2008
Tags  acronym  cyborg  name  robotic 

Introduction

Finds the "cyborg" name for a given nick.
Type /cyborg <nick/name> in any window. It'll message the name to the channel, or echo if you type it in status.
Example /cyborg Jagfire returns J.A.G.F.I.R.E.: Journeying Android Generated for Forbidden Infiltration and Rational Exploration


Grab the Code

alias cyborg {
  if ($remove($len($1),$chr(32)) isnum 2-10) {
    set %supchan $active
    set %cy.name $remove($1,!,@,#,$,%,^,&,*,-,+,_,=,[,],;,:,',",<,>,.,,/,|)
    sockopen cy cyborg.namedecoder.com 80
 
  }
  else echo -at Use /cyborg <name> (must be between 2-10 letters)
}
on *:sockread:cy:{
  if ($sockerr) {
    echo -a Error.
    halt
  }
  else {
    var %'
    sockread %'
    if (*<p class="mediumheader">*.*.*</p>* iswm %') {
      if (%supchan ischan) { msg %supchan $z(%') | unset %supchan }
      else echo -a $z(%') 
      sockclose cy
      unset %cy.name
      halt
    }
  }
}
alias -l z {
  var %x, %i = $regsub($1-,/(^[^<]*>|<[^>]*>|<[^>]*$)/g,$null,%x), %x = $remove(%x,&nbsp;,$chr(9))
  return %x
}
on *:sockopen:cy:{
  sockwrite -n $sockname GET /index.php?acronym= $+ %cy.name $+ &design=edox&design_click-edox.x=41&design_click-edox.y=78 HTTP/1.1
  sockwrite -n $sockname Host: cyborg.namedecoder.com $+ $crlf $+ $crlf
}

Comments

  (13)  RSS
Eugenio
Comments: 1,193
 
mIRC Snippet:  Cyborg Name Generator
Posted on Aug 5, 2008 6:39 pm
Missing a Bracket at the end.
Very funny tho, I liked it.
/me rates 6
napa182
Comments: 1,454
 
mIRC Snippet:  Cyborg Name Generator
Posted on Aug 5, 2008 6:54 pm
it's funny for about a 10 seconds then loses it appeal.
other then that and the missing bracket it's usesless but nice work.
EL
Comments: 1,125
 
mIRC Snippet:  Cyborg Name Generator
Posted on Aug 5, 2008 7:34 pm
/me yawns ,Agreed.`-.-ยด
Jagfire
Comments: 6
 
mIRC Snippet:  Cyborg Name Generator
Posted on Aug 5, 2008 9:33 pm
Fixed the bracket.. it was a pasting problem. Napa, funny for about 10 seconds then loses its appeal? You want me to make a picture window of some clowns dancing or something? It's a simple mIRC snippet, get over it. Apologies if it doesn't provide hours upon hours of endless entertainment.
napa182
Comments: 1,454
 
mIRC Snippet:  Cyborg Name Generator
Posted on Aug 5, 2008 9:48 pm
no it's just useless thats all and for you to get all butt hurt maybe you should be the one getting over it
Jagfire
Comments: 6
 
mIRC Snippet:  Cyborg Name Generator
Posted on Aug 5, 2008 9:50 pm
Of course it's useless. But don't worry, I'm still working on a snippet that wires money directly into your bank account. Also coming soon, /washdishes
napa182
Comments: 1,454
 
mIRC Snippet:  Cyborg Name Generator
Posted on Aug 5, 2008 10:00 pm
it would be better if it would wire other peoples money into ur account =P.. jk sounds good

well i cant wait for my mIRC to be able to wash my dishes ;x
Eugenio
Comments: 1,193
 
mIRC Snippet:  Cyborg Name Generator
Posted on Aug 5, 2008 10:09 pm
rofl Napa that other comment about hes "butt" wernt needed, I agree with you but cmon it is funny ffs. even if for only 10 mins.

Jagfire I'll hapily test that wire money into bank account code before you release it.
Jagfire
Comments: 6
 
mIRC Snippet:  Cyborg Name Generator
Posted on Aug 5, 2008 10:16 pm
I was joking about the bank account thing. No way is that happening, lol
napa182
Comments: 1,454
 
mIRC Snippet:  Cyborg Name Generator
Posted on Aug 5, 2008 11:41 pm
on ur first if line you could just do this
Code:
if ($len($1) isnum 2-10 && !$2) {

instead of doing
Code:
if ($1) && (!$2) && ($len($1) > 1) && ($len($1) < 11) {


aslo why do
Code:
%' = $remove(%',$chr(9))

when you can add that into the html strip
Code:
alias -l z {
  var %x, %i = $regsub($1-,/(^[^<]*>|<[^>]*>|<[^>]*$)/g,$null,%x), %x = $remove(%x,&nbsp;,$chr(9))
  return %x
}

and you can remove the halts as well and instead of having 2 lines to unset vars why not just do ur var's like %cy.chan and %cy.name then you can unset them like
Code:
 unset %cy.*

and these lines
Code:

if (%supchan  ischan) { msg %supchan  $z(%') | unset %supchan }
      else echo -a $z(%')

can be like this with the vars i told you to set
Code:
$iif(%cy.chan ischan,msg %cy.chan $z(%'),echo -a $z(%'))

just a few things to think about...
Jagfire
Comments: 6
 
mIRC Snippet:  Cyborg Name Generator
Posted on Aug 6, 2008 12:53 am
I tacked on the last $len check of < 11 at the end just before submitting this, so I didn't make the most efficient way possible. Also, I don't bother with a wildcard when unsetting variables unless there are more than 2. Just a rule of thumb I go by. Most of my snippets have more than 2, but this one doesn't. I will probably clean up the code a little bit soon, but besides that everything works fine.
napa182
Comments: 1,454
 
mIRC Snippet:  Cyborg Name Generator
Posted on Aug 6, 2008 1:00 am
well then why not do
Code:
unset %cy.name %supchan

if you dont want to do a wildcard
Master-Of-Death
Comments: 40
 
mIRC Snippet:  Cyborg Name Generator
Posted on Nov 18, 2009 1:25 am
mega mega mega mega mega mega FAIL!

your alias does not work or in fact trigger your sockets, i tested it many times also

Commenting Options

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

  
Bottom