Theoratically this isn\'t all that hard to do in mIRC script. A normal year contains 31536000 seconds and a leapyear 31622400 seconds. Rest is just basic calculations.
Code is a little big... You could just use $base(,10,2) to convert an integer to a binary string, then loop through the string with $mid and color the square if a 1 is found...
We already have too many of these useless scripts imho
on :TEXT:!toss:#:notice $nick It landed on $iif($r(0,1),heads,tails)
on :TEXT:!roll:#:notice $nick You have rolled $r(1,$iif($2,$2,6))
Usually I don\'t even bother posting comments on such snippets, but well here goes:
Why do you use (0 isin %PV)? Did you know this if statement also validates when %pv is 10? or when %pv is 20? Heck every number which contains a zero. This is obviously not what you want, so stop using isin and start using ==.
There is more wrong, but for now bother with this only.
But you will end up with a decoding method that can output multiple decodations of one string, there is not one definite decoded string. If you want to fully understand how $asc and $chr works, you should find out why this happens.
You might want to change:
var %a = $asc($left($1-,%i))
var %a = $asc($mid($1-,%i,1))
Now you got a usefull encoding that actually CAN be decoded :)
An encypter is useless with a decrypter (except in the case of a 1-way encryption, which this clearly is not), so you should code that also.
wow, if that\'s for real, that looks freaking awesome
Since more of NoFx code is ripped, I was wondering, is this snippet ripped? I cannot find it through google so might be good.
No, the variable actually makes the script slower (not noticable though, but still good programming practice to not use excessive variables).
The ,-3) is a mistake, probably an identifier you removed later. Also setting the variable is unnessecary.
Well done, neat effect!
The $replacecs looks weird and out of order, I don\'t really see why you hard coded an acronym in your code. You say: \"Note: The acronyms thank you and no problem are already inputed in the main part of the alias do to regex\'s case sensitive nature\". Well, the truth is, regex is as case (in)sensitive as you specify it to be. If you use the /i switch, it will make the check case insensitive, which is probably what you are looking for.
it\'s for picture windows...
This is the commented section from below
Also you need 6.16 or higher
Well chizra since you are the only one here who has this problem, you better fix your mirc.
Pretty Nice, Well done
I don\'t see why this is more usefull than e.g. $rand(0,1) .. The idea is nice though
In that case be consistant and also use them on /if and /elseif
you spend quite some work on this, but its quite easy to also implement drawing squares (drawrect) and elipses (drawrect -e)
$rand2(aa,za) should return \'random letter\' + a, in stead it returns 2 random letters.
test#test is a valid anchor (not 2 anchors, 1 anchor with # in it), it may be considered obsolette by some browsers, but EVEN firefox considers it as a valid anchor (just tested it).
So you are basically saying that whatever protocol is used, it is a valid url (http1://, httpmrc://, bla://) even though they don\'t exist and no browser can display them?
And I just noticed that you consider sites with the ~ in it NOT a valid url. I think you misunderstood http://www.ietf.org/rfc/rfc1738.txt, UNSAFE != INVALID. Here just visit this site as an example http://www.let.uu.nl/~ctl/ I\'m pretty sure that whatever browser you use, it will open the site. And surely the creators of your browser know better of what url is valid and what url is invalid.
Yes, as in a [dot] whenever the sentence ends. You can also use some html code tags to format your text (,,,)
Err http1:// is not a valid protocol, https is, and www.site.com/#test#test IS a valid url since the #test#test chars in the url link to the tag in the source
Ah right I figured it out...
After reading your comment twice, and trying the code, I don\'t have the slightest clue what this is supposed to do. A small hint: use punctuation marks in your description, it helps.