mIRC Snippet:
Random topic! (v2.0)
Posted on Nov 17, 2009 7:20 am
Posted on Nov 17, 2009 7:20 am
| Code: |
| while (%x < $calc($lines(topic.txt) + 1)) { |
Why not just use
| Code: |
| while (%x <= $lines(topic.txt)) { |
mIRC Snippet:
Ban Finder
Posted on Nov 17, 2009 6:19 am
Posted on Nov 17, 2009 6:19 am
Thanks guys. :)
@FordLawnmower, I like to see the /whois info as well. Saves me having to do it twice. ;)
EDIT: Also lets me know that it's working, lol.
@FordLawnmower, I like to see the /whois info as well. Saves me having to do it twice. ;)
EDIT: Also lets me know that it's working, lol.
mIRC Snippet:
$utf8 + upsidedown and octatext
Posted on Aug 8, 2009 3:26 am
Posted on Aug 8, 2009 3:26 am
You know, the modulus of two numbers is $calc(num1 % num2)
mIRC Snippet:
Twitter Status Update + Direct Message
Posted on Apr 16, 2009 8:01 pm
Posted on Apr 16, 2009 8:01 pm
I never got the excitement from posting what you're doing so people know, like, "Going to the toilet."
mIRC Snippet:
Remote Editor Protection
Posted on Apr 15, 2009 10:44 am
Posted on Apr 15, 2009 10:44 am
Editor protection.. Is that what you call this random script?
mIRC Snippet:
CTCP Reply Message Faker
Posted on Mar 13, 2009 11:34 pm
Posted on Mar 13, 2009 11:34 pm
You can make ping checking scripts which test the time difference between your /ctcp and the reply, rather than comparing the $ctime.. This gets around the text ping replies and is what I did.
mIRC Snippet:
ascii text v3.0
Posted on Jan 28, 2009 8:09 am
Posted on Jan 28, 2009 8:09 am
wIRC has its own 'on input' event, so you have to disable that if you want this to be the only one..
mIRC Snippet:
$ralias - Get info on remote aliases
Posted on Jan 6, 2009 1:06 am
Posted on Jan 6, 2009 1:06 am
Hmm, looks like some mighty fine ideas went into this one. :)
mIRC Snippet:
spam protection (bot)
Posted on Dec 25, 2008 6:50 am
Posted on Dec 25, 2008 6:50 am
Perhaps make:
Become:
To remove false positives. The \b is a word boundary.
| Code: |
| /http|www|com|org|net/i |
Become:
| Code: |
| /\b(?:http|www|com|org|net)\b/i |
To remove false positives. The \b is a word boundary.
mIRC Snippet:
$leapyear and $leapcount
Posted on Dec 23, 2008 9:40 pm
Posted on Dec 23, 2008 9:40 pm
| Quote: |
| It returns the remainder of the quotient of two numbers. |
Use % in a $calc to do this easily. :)
mIRC Snippet:
Pwnisher3's color talker dialog
Posted on Dec 21, 2008 4:07 am
Posted on Dec 21, 2008 4:07 am
The background colour should have two digits to prevent colour failure if your text starts with a number.
Background should also have the 99 colour option to have no background. :P
Background should also have the 99 colour option to have no background. :P
mIRC Snippet:
Pwnisher3's color talker dialog
Posted on Dec 21, 2008 3:34 am
Posted on Dec 21, 2008 3:34 am
| Code: |
| on *:input:*:{ msg $chan %ctklr $+ $1- haltdef } |
Apart from the fact that you aren't always in a channel when you send a message to someone (You can use $target instead of $chan), this script will message the channel any /commands you use.
mIRC Snippet:
Power Script
Posted on Dec 10, 2008 7:58 pm
Posted on Dec 10, 2008 7:58 pm
Did you know that /scid -r resets the connection to the original, removing the need for that $cid variable?
mIRC Snippet:
3 Color Script
Posted on Dec 7, 2008 8:58 pm
Posted on Dec 7, 2008 8:58 pm
You don't have to /unset when you only use /var. Also,
The on input event can't trigger if $0 is 0, so the line isn't needed.
| Code: |
| if ($0 == 0) { halt } |
The on input event can't trigger if $0 is 0, so the line isn't needed.
mIRC Snippet:
Twister Game
Posted on Dec 4, 2008 4:55 am
Posted on Dec 4, 2008 4:55 am
The following piece of code:
Appears to have disappeared. It should work now..
| Code: |
| var %fall $rand(1,5) |
Appears to have disappeared. It should work now..
mIRC Snippet:
Recursive mass-mode
Posted on Nov 6, 2008 5:51 am
Posted on Nov 6, 2008 5:51 am
Interesting method, but you should really var %i, %n and %curr_nick, rather than setting them permanently..
Also, not all servers allow 10 modes at once, requiring the use of $modespl for correct function.
Also, not all servers allow 10 modes at once, requiring the use of $modespl for correct function.
mIRC Snippet:
$maketok(word,C) identifier
Posted on Oct 20, 2008 11:48 pm
Posted on Oct 20, 2008 11:48 pm
I see the $chr($2) doesn't work there..
So you know, you don't actually need to have text stored to do that, though you would need to use /(?<!^)(?!$)/g for complete accuracy. However, token identifiers ignore null tokens, so it's not especially important here.
So you know, you don't actually need to have text stored to do that, though you would need to use /(?<!^)(?!$)/g for complete accuracy. However, token identifiers ignore null tokens, so it's not especially important here.
mIRC Snippet:
$maketok(word,C) identifier
Posted on Oct 20, 2008 9:57 pm
Posted on Oct 20, 2008 9:57 pm
Wouldn't this then work also?
| Code: |
| alias maketok return $regsubex($1,/(?!$)/g,$chr($2)) |
mIRC Snippet:
Basic ChanInfo
Posted on Oct 19, 2008 5:24 pm
Posted on Oct 19, 2008 5:24 pm
I'd just set a %var to $iif($1,$1,$chan), then use %var.. Easy.
mIRC Snippet:
$maketok(word,C) identifier
Posted on Oct 19, 2008 3:30 pm
Posted on Oct 19, 2008 3:30 pm
The purpose is to make $mid with tokens instead..
Have you even thought about it, ^Neptune?
Have you even thought about it, ^Neptune?







