Sigh_

Sigh_

Joined:
Sep 17, 2004

Activity Stream

Sigh_ commented on a Snippet, 1337  -  Dec 11, 2005
Perhaps you mean $xor(%leet,1) which turns 0 to 1, 1 to 0. In case %leet = $null you can use $xor(%leet 0,1) to turn $null and 0 to 1, and again 1 to 0
 Respond  
Sigh_ posted a Snippet  -  Oct 02, 2005
Sigh_ commented on a Snippet, /go  -  Jul 30, 2005
Another thing to note is that a user may want to join a channel with a prefix other than #, such as &chan (local channels on most networks). $chantypes will return a list of supported chan prefixes
 Respond  
Sigh_ commented on a Snippet, /go  -  Jul 30, 2005
#$1 will prefix $1 with # if it isn\'t already a channel name
 Respond  
Sigh_ posted a Snippet  -  Jun 18, 2005
Sigh_ commented on a Snippet, Multiple Server AME  -  Apr 04, 2005
Not quite, /scon re-evaluates its parameters (similar to a timer) so that if you typed \"/aame text | more text\" the \'more text\' would be interpreted as a command. On the right track though, something like alias aame { set -ln %a $1- | scon -at1 ame % $+ a } would do
 Respond  
Sigh_ commented on a Snippet, Alternative Random  -  Apr 01, 2005
Not bad but since the only variable quantity here is $ticks, doing //echo -a $randa(1,10) $randa(1,10) $randa(1,10) will always yield the same random numbers
 Respond  
Sigh_ posted a Snippet  -  Dec 28, 2004
Sigh_ posted a Snippet  -  Dec 26, 2004
Sigh_ commented on a Snippet, Calculator  -  Dec 23, 2004
Covers everything? How about modulo, exponents and parentheses for complex operations? alias calculate { echo -a Answer: $calc($1-) } - raYmad, good work, fun alias
 Respond  
Sigh_ posted a Snippet  -  Dec 16, 2004
Sigh_ posted a Snippet  -  Dec 14, 2004
Sigh_ posted a Snippet  -  Nov 12, 2004
Sigh_ commented on a Snippet, GAME: Shiffre  -  Oct 22, 2004
Good work, note you can use /hinc to increase and /hdec to decrease a hash table item
 Respond  
Sigh_ commented on a Snippet, GAME: Shiffre  -  Oct 22, 2004
You deal with an INI file with only 1 section, why don\'t you use a hash table for this type of data structure? It\'s a more appropriate method of storage since hash tables are cached in volatile memory, has increase/decrease functions which you use quite a bit and are faster to access
 Respond  
Sigh_ commented on a Snippet, On Protect/DeProtect Event  -  Oct 19, 2004
Good idea, but it would be more accurate to check each mode set against $chanmodes which returns the channel modes supported by the network. The first 3 comma delimited tokens are modes which take a parameter
 Respond  
Sigh_ posted a Snippet  -  Oct 13, 2004
Sigh_ commented on a Snippet, Random String  -  Oct 08, 2004
A good idea, only thing I\'d fault is the use of checking if ($1) && ($2) && ($3) to make sure 3 parameters were specified. It fails if I want to choose 0 as the beginning of a range, i.e. $rs(10,0,9) to get 10 random numbers since if (0) is false. A better method to check 3 parameters have been supplied is to see if ($0 = 3) where $0 returns the number of params passed to the alias
 Respond  
Sigh_ commented on a Snippet, [A] - Script line calculator (V1.0B#2004)  -  Oct 06, 2004
You can use a $findfile loop for iterations involving operations on each file returned by $findfile, so as an example: //var %x | .echo -q $findfile($mircdir,*.mrc,0,inc -s %x $file($1-)) | echo -a %x - also note that /var creates a local variable, one that terminates at the end of the running process, to avoid setting/unsetting global variables
 Respond  
Sigh_ commented on a Snippet, Dice rolling script  -  Sep 22, 2004
You can use $str to generate N amount of dice with F number of faces, the results separated with a space: $($str($!r(1,F) $chr(32),N),2) - in this case you\'d replace F with 6 and N with $2
 Respond  
Sigh_ posted a Snippet  -  Sep 17, 2004
Sigh_ posted a Snippet  -  Sep 17, 2004
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.