knoeki

knoeki

Joined
Oct 04, 2007
Location
irc.p2p-network.net, #zomgwtfbbq
Website

Activity Stream

knoeki commented on a Page, !active (show no. of active nicks on chan)  -  Mar 07, 2012

@Pangaea: this is absolutely terrible code (: I could make something much better.

 Respond  
knoeki commented on a Page, Kick Sparky for saying '0'  -  Jul 24, 2010

Do you really need to post pointless crap like this?

 Respond  
knoeki commented on a Page, TLD lookup  -  May 21, 2010

Have you had a chance to fix the issue I noted in my first reply? The part where it did notgive the 'Sponsoring organisation:" part right?

It's strange indeed, I'll have a look at it later.

 Respond  
knoeki commented on a Page, TLD lookup  -  May 21, 2010

you can always have a delay variable at the start of the script (or in an .ini, whatever you prefer), and do something like:

;; set delay between lines being sent:
var %delay 0
;; --- bunch-o-code goes here --
msg # blargh1
timer 1 %delay msg # blargh1
timer 1 $calc(%delay + 1) msg # blargh1
timer 1 $calc(%delay + 2) msg # blargh1

Bit rough maybe, but it probably works. Tastes differ. I prefer to keep everything on one line generally, but it depends on the case.

 Respond  
knoeki created a Page  -  May 21, 2010
252 

Just a simple script for a bot (or whatever else you want to use it for) to look up TLDs.

knoeki commented on a Page, Very simple Pm log checker  -  May 09, 2010

You really need to place things on multiple lines instead of using pipes to seperate things. Makes it more readable and easier to debug...

Oh, and it's spelled "messages", not "message's" ;_)

 Respond  
knoeki commented on a Page, Channel name background  -  May 09, 2010

Actually knoeki, speed aside, WorldDMT's suggestion of using $exists() or $isfile() is recommended, because you want to make sure the file the script references to is there. If not, you may get an error. That's why people make checks to prevent errors from happening.

That's what the $findfile() is for.. again.. I must have had some reason to use that over $file() (or $isfile() or $exists() for that matter), but I really don't know why I didn't use it. May or may not have to do with the fact that I ripped this from a larger script I wrote.

 Respond  
knoeki commented on a Page, Channel name background  -  May 08, 2010

what about $exists or $isfile
could have done that, I'm sure I had a reason not to do so.

and you can replace == $null by adding "!" before the identifer
Not my style, sorry.

and remove the "()" around the condition it will make the code slower
I really doubt it matters much, and if it does, then stop using the dusty old 486 in your mums basement as your PC (:

I prefer my code to be readable over "fast", especially when there's no real significant speed gain... 1ms more or less is not going to kill you with something trivial as this.

 Respond  
knoeki commented on a Page, Channel name background  -  May 07, 2010

I guess that's mostly to blame for ripping it from full on JOIN event I use, which does a number of other things when someone joins.

 Respond  
knoeki created a Page  -  May 07, 2010
735 

Simple little script that put the name of the channel in the top right corner, as a background image, see screenshot.

knoeki commented on a Page, Opchart v1.0.1  -  Mar 06, 2010

your website is died... lawlzo

Yes, apparently some lamer kiddies thought it was funny to take it down, I haven't had time and/or motivation to bring it back up yet ;_)

 Respond  
knoeki commented on a Page, My os  -  Feb 28, 2010

sigh

is it really neccisary to post this kind of shit over and over? :\

 Respond  
knoeki commented on a Page, r_cycle.mrc Regain Ops Channel Cycle Script  -  Feb 24, 2010

I was also debating the use of 'isowner'; an undocumented if-condition akin to 'isop' but for mode -q on some nets. Though honestly, I don't know what networks use mode -q.

isowner doesn't work 9 out of 10 times anyways, or so I've heard.

 Respond  
knoeki created a Page  -  Jan 29, 2010
254 

I know mIRC has some kind of way to read logs, but as far as I remember it doesn't really work so nicely if there's any kind of colour codes in your logs. therefor this. I find this works pretty well for, and it's really simple, as you can see.

knoeki commented on a Page, Awesome Channel codes  -  Jan 25, 2010

does anyone else find his username appropriate? ;_)

 Respond  
knoeki commented on a Page, Thank you Script  -  Jan 22, 2010

I'd also suggest using .ini files to store this rather than variables.

 Respond  
knoeki commented on a Page, !seen script  -  Jan 22, 2010

True, and a good point. I was actually considering pasting just the alias with usage directions, but thought I'd paste the full script instead.
The rewrite of my bot makes releasing of scripts I write for it easier, so I might release more in the future.

I'll 'fix' the -m switch now.

 Respond  
knoeki commented on a Page, !seen script  -  Jan 22, 2010

True, but I didn't personally need the -m switch for once. ;_)

 Respond  
knoeki commented on a Page, !seen script  -  Jan 22, 2010

Did you let the script initialize? it creates the table in the on START event.

regardless, if you want to create the table manually:

/hmake seen 5000
 Respond  
knoeki created a Page  -  Jan 22, 2010

Okay, seen scripts have probably been done to death by now. Or not, I've never found a good one.

knoeki commented on a Page, Sinewave/Bouncing scroller  -  Jan 19, 2010

Anyway, cool little picwin you've got there. I wish Hawkee had more of these, I love them.

I have a couple more of them, just look through my snippets tagged with 'picwin'.

 Respond  
knoeki commented on a Page, Sinewave/Bouncing scroller  -  Jan 18, 2010

I like it :). 6, Would be an 8 if it didnt freeze your mirc at the end :@. The while loop.

it shouldn't freeze your mIRC. it's made to end when the scroller leaves the screen... so.. no idea what happens over there. :\

 Respond  
knoeki commented on a Page, Text moving Dialog  -  Jan 18, 2010
    did -a RText 3 You must enter press "Randomize" first

seems like a typo :_)

 Respond  
knoeki commented on a Page, on join whois o.O  -  Jan 17, 2010

But a whois script like this tends to easily create floods if people join at the same time...especially for a busy channel. I suppose it's ok for a small one.

Yes, but if some random botnet happens to find your channel, it's not going to be OK ;_)

 Respond  
knoeki commented on a Page, on join whois o.O  -  Jan 16, 2010

sounds like regex =x

not even close ;_)

 Respond  
knoeki commented on a Page, Sinewave/Bouncing scroller  -  Jan 15, 2010

Knoeki i dont think it was your script in general that crashed my mirc, its because i rn 64 bit win 7 and dialogs/picwin mess up alot. And in some cases totally unuasble.

Ah, I see. still good to know, though :_)

 Respond  
knoeki commented on a Page, Sinewave/Bouncing scroller  -  Jan 14, 2010

argh. I keep mixing up the dutch/english spellings of the names of the months, for some reason :<

fixed it now. ;_)

 Respond  
knoeki commented on a Page, Sinewave/Bouncing scroller  -  Jan 14, 2010

it... crashed your mIRC? O.o

some more details would be welcome... I've had zero issues with it.

 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.