The caps isn\'t a method to \'rip\' my scripts sides all codes posted on Hawkee.com are open source. The only way a script is truly ripped is if the code is copied and the \'original creator\' is not sited. At any rate I put everything in caps cause I like it that way not to prevent people from \"ripping\" my scripts
Only problem with that alias Solo you need to provide the file extension for $script([file]) to work. So a better way do it if you were going to do this is:
alias lowercase {
if ($script($1)) {
echo $color(info) -a *** Converting $1 now...
%file.tmp = $+($gettok($1,1,46),-lc.,$gettok($1,2,46))
if ($isfile(%file.tmp)) { write -c $v1 }
filter -fk $1 convert
unload -rs $1
.remove $1
filter -ff %file.tmp $1
.remove %file.tmp
load -rs $1
echo $color(info) -a [End - Conversion]
unset %file.*
}
else { beep 2 | echo $color(notify) -a *** Error - $1 was not valid }
}
alias -l convert { write %file.tmp $upper($1-) }
well basically what you \'could\' do is if there is no reason for the away then the reason should just be \"away\" as such our away command would look like this: \'/away away\' and our $awaymsg would return \'away\' then we could do a if statement like \'If ($awaymsg != away) {\' if you catch my drift
All of you cool it. It is getting rather tiresome watching there be a argument every time Korvin posts a snippet whether or not the code is \"good\" or if it works or not everyone needs to remain Professional. Comments like: \"Very bad coding. Painful usage of $replace.\" are not professional in the least even if they have a valid point. Also things like \"Write some of your own scripts, then comment.\" are along the same lines. When ever you make comments give reasons why the things you point out are wrong, could be improved, or how excellent they are. Keep to the rules of both posting and snippet and commenting on a snippet and we won\'t have these out bursts.
Ok a few things that you may want to consider: these lines in your on start and on load events aren\'t really needed \" if (!$isfile(ban_evasion_list)) { write ban_evasion_list.txt }
filter -ffct 1 32 ban_evasion_list.txt ban_evasion_list.txt\" as to having on start and on load i\'d just get rid of on load. As for your ban_evasion_reset alias this statement \"if ($?!=\"Do you really wish to reset all settings?\") {\" i could type in wally wally wanka and it would default what i would change it to so you have a yes or no option: alias ban_evasion_reset { var %r_chk $input(Would you like to reset all settings to default? $crlf Action: kick $crlf Channel: -Undefined- $crlf Kick Message: Ban evaders don\'t belong here! And Don\'t come back!,yv,Blacklist - Reset) | if (%r_chk == $yes) { commands }
Also to shorten you code alittle bit and make it operate a bit better instead of using: \'if ($nick !isop %chan) || ($nick !ishop %chan) {\' you can use \'if ($nick($chan,$nick,vr)) {\' which will make the script only go off when a voiced or regular user sets it off. Also in your alias rather then having 12 if (%variable) or if (!%variable) we can just simplify this by using an $iif statement like this: \'echo -a Channel: $iif(%chan,%chan,ERROR - The Channel is not set! Type /chan_flood and edit it!)\' which will handle both instances in one line and makes the script much neater. Other then those few things you have what looks to be a pretty good code just work on improving the way in which you code your scripts and you\'ll be making even better ones soon. Good job