Kirby

Kirby

Joined
Aug 23, 2008
Occupation
Retired #FunBots Administrator & MSL Scripter
Location
Florida
Website
Interests
Cross Country, Soccer, Track & Field

Activity Stream

Kirby commented on a Page, Kirby's Urban Dictionary Searcher (v.9)  -  Feb 10, 2010

I will get back to this as soon as possible.

 Respond  
Kirby commented on a Page, Video Poker  -  Feb 10, 2010

Thank you. It seems like some of the websites that I had used for sockets have changed their layout/source, so a lot of them are broken. I've received many complaints about this, so I have to remake many of them, one by one.

Seems like you've made a much better Youtube downloader than I did.

 Respond  
Kirby commented on a Page, Video Poker  -  Feb 10, 2010

beast

 Respond  
Kirby commented on a Page, Google Translator - Auto Text-Translator v3  -  Feb 10, 2010

Please be patient, I will get to this as soon as I can. Evidently, the script is not working because of socket error; this script was posted a very long time ago, and Google Translator seems to have changed their website format, and I need to adjust to that. At the moment, please do not rate this script, or say that it does not work. Thanks.

 Respond  
Kirby commented on a Page, YouTube URL "Detector" (v.8)  -  Feb 10, 2010

Please check to see if you have scripts that may conflict with this one, or if you have the latest version of mIRC. I am certain that this version will work for any video with id's with 11 characters and for any region. Please double-check.

 Respond  
Kirby commented on a Page, YouTube URL "Detector" (v.8)  -  Feb 09, 2010

Fixed.

 Respond  
Kirby commented on a Page, Google Translator - Auto Text-Translator v3  -  Nov 15, 2009

Gotta fix this. :-P

 Respond  
Kirby commented on a Page, YouTube URL "Detector" (v.8)  -  Nov 15, 2009

Gotta fix this. :-P

 Respond  
Kirby commented on a Page, Kirby's Urban Dictionary Searcher (v.9)  -  Sep 25, 2009

That obviously means that Urban Dictionary changed their site source, which also means that I have to update this script again.

 Respond  
Kirby commented on a Page, Down for everyone or just me?  -  Jul 24, 2009

@Grant-:

Must correct (Grammar nazi mode on)
Code:
if ($sock(sitecheck)) { sockclose sitecheck }

if ($sock(sitecheck)) sockclose sitecheck
That actually slows the script down. ^_^

Using brackets speeds up processing. If an alias uses too few brackets then the statement might be ambiguous and the alias will take longer to parse, might be parsed incorrectly, or might not be parsed at all.
In retrospect, what I'm saying is true.

@Cheiron:

oh crap i know what i did forget to ask .. for the bot version .. how do i restrict it to ops only to use it and if a non op tried to use it.. it will message the user they need ops to use it
Just add:

if ($nick(#,$nick,o)) {
 Respond  
Kirby commented on a Page, Down for everyone or just me?  -  Jul 24, 2009

Something like this Cheiron?

on $*:text:/^[.!@]check*/Si:#: {
  if ($sock(check)) { sockclose check }
  sockopen check www.downforeveryoneorjustme.com 80
  sockmark check $$2 # $nick
}
on *:sockopen:check: {
  sockwrite -n $sockname GET $+(/,$gettok($sock(check).mark,1,32)) HTTP/1.1
  sockwrite -n $sockname Host: www.downforeveryoneorjustme.com
  sockwrite -n $sockname Connection: close
  sockwrite -n $sockname $crlf
}
on *:sockread:check: {
  var %x | sockread %x
  if ($regex(%x,(.+)<a href="(.+)"\sclass="domain">.+<\/a>(.+))) {
    tokenize 32 $sock(check).mark
    msg $2 $+($3,:) $regsubex($+($regml(1),,$regml(2),,$regml(3)),/(<[^>]*>)/g,)
  }
}

[size=14]Syntax: .check [/size]

Intended for a bot...renamed the sock name...

..and thank you.

I wanted this to be simple, for personal use, rather than bot use. Otherwise, use the code above.

 Respond  
Kirby created a Page  -  Jul 24, 2009

I haven't scripted anything in a while, so I decided to make something simple with some regex, also so that I don't lose my familiarity with mIRC scripting.

Kirby commented on a Page, /youtube - YouTube Video Download Alias  -  Jun 05, 2009

No, there's no problem with the regex...

$regex($1,http:\/\/www.youtube.*\/watch\?v=[^&]{11}

That would be having an & tag directly after /watch?v=, which would not be a valid video ID.

 Respond  
Kirby commented on a Page, /youtube - YouTube Video Download Alias  -  Jun 04, 2009

No, you [size=28]don't[/size] want to use:

elseif (!$wildtok($1,http://www.youtube.com/watch?v=*,1,32)) echo -a * Url specified was not valid. ...

because with the regex I put in, it does four things: Check to see if it's an actual YouTube URL, varies the different "types" of YouTube (as in countries), checks to see if the video ID matches 11 characters, and strips out any other & tags.

 Respond  
Kirby commented on a Page, /youtube - YouTube Video Download Alias  -  Jun 04, 2009

no problem..

 Respond  
Kirby created a Page  -  Jun 03, 2009

Just a small alias for downloading YouTube videos, whipped in about half an hour.

Kirby commented on a Page, OP Trick  -  Jun 02, 2009
alias lolop { var %x $$1 | tokenize 46 +o.-o | mode # $* %x }

I guess, is another way. =/

 Respond  
Kirby commented on a Page, YouTube URL "Detector" (v.8)  -  May 31, 2009

Made some updates guys. Please read the description!

 Respond  
Kirby commented on a Page, Kirby's PasteBin Uploader/Downloader  -  May 27, 2009

WorldDMT said:

u can use isin and $remove dont need to use a regex for a smal thing like thatAlthough this controversy is quite over, I'd also like to add the reason why I prefer using $regex in my sockread is because not only do I use it for detection, it's easier for me to make the use of a single $regml(N) than using many $gettok and $htmlfree.

 Respond  
Kirby commented on a Page, Kirby's PasteBin Uploader/Downloader  -  May 24, 2009

[size=20]@Kirbeh_Pr0nz[/size]
The reason why

http://pastebin.blahblah.com/blah

doesn't work is because that would mean that "blahblah.com" would be the domain, and not "pastebin.com".

 Respond  
Kirby commented on a Page, Kirby's PasteBin Uploader/Downloader  -  May 21, 2009

One thing I'd like to say about the dialog that I posted - the box about "Information" is designed for that size, so if you compress it, not everything will show up. Of course, the large edit box at the bottom can be compressed horizontally or vertically.

 Respond  
Kirby commented on a Page, Kirby's PasteBin Uploader/Downloader  -  May 20, 2009

[size=28]@ WorldDMT[/size]

I see that you are trying to give me helpful suggestions, but I do not agree with some of your suggestions.

line 148 "if ($did == 3) && ($regex($did(3),/[^\w-]/ig)) { did -ra PasteBin 3 $regsubex($did(3),/([^\w-])/ig,$null) }"

u can use isin and $remove dont need to use a regex for a smal thing like that

if ($did == 3) && ($chr(32) isin $did(3)) { did -ra $dname 3 $remove($v2,$chr(32)) }
In this case, I had to use $regsubex there to remove all non 123-ABC characters, excluding the character '-'. Only '\w' regex strings and - are allowed for PasteBin names. So, I can't really just remove $chr(32)...

Same with:

also for $did == 5

if ($did == 5) && ($chr(32) isin $did(5)) || (.. isin $did(5)) did -ra PasteBin 5 $replace($remove($v2,$chr(32)),..,.)
All '\w' characters and, . and -, as exceptions are allowed for sub-domain names. Thus, two subsequent periods are not allowed, but -'s are, which leads to more complication. Furthermore, I had to use many $iif's and some $regsubex there to remove all possible invalid entries.
Simple $remove is not going to help.

As for checking the error of sockets...

u dont check the error of socket?? and "if ($regex(%pb,))" u can use isin i think
All that $regex and $regsubex used for the edit boxes try to make the PasteBin paste as "valid" as possible, hence, they are the error checkers.
In fact, about 30% ~ 40% of this snippet is for error checking. The actual script itself can be written in about 100 lines.

Not to mention my code:

    if ($regex(%pb,</h1><ul><li>(.*)</li>)) || ($regex(%pb,(.*)<P>)) {

checks for invalid links...

But yes, thanks for the other suggestions, I'll take a look into them.

[size=28]@ ^Neptune[/size]

Dialog is WAY too big, it won't even fit on my screen.
Well, my screen is only 800 x 600 and it fits fine.
I'll think about compressing the dialog size.

 Respond  
Kirby commented on a Page, Kirby's PasteBin Uploader/Downloader  -  May 19, 2009

Hello. Updates?
I was thinking of "future" updates for this script, but I would like some opinions about this.
Some things that I were thinking about were:

  • PasteBin Upload/Download History Line numbers (like the mIRC editor) PasteBin HELP
    I would like some feedback on this. :D
 Respond  
Kirby created a Page  -  May 19, 2009

Hey guys. I haven't posted a snippet in a while, so here's one! For a while I've been working with sockets and dialogs, and more recently, regular expressions; but this one has been very interesting for me.

Kirby commented on a Page, Sphere  -  May 16, 2009

Hey BlueThen. Another cool snippet.
I've recently taken a brief look at trigonometry and I've gotten down some of the basics (cosine, sine, tangent, and their opposites); and yeah, it's quite interesting.
However, I haven't actually started making picture window animations/games yet, but they seem to be a fine challenge. :d
And to answer your question, I think it'd be a good idea to release your documentation of algorithms.

 Respond  
Kirby commented on a Page, Garbagebag   -  May 15, 2009

Stop giving me notices!!!
OMG!?!? ;o

 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.