alias blah {
if (%1 == -11) {
set %1 2
}
if (%1 == -10) {
set %1 3
}
if (%1 == -9) {
set %1 4
}
if (%1 == -8) {
set %1 5
}
if (%1 == -7) {
set %1 6
}
if (%1 == -6) {
set %1 7
}
if (%1 == -5) {
set %1 8
}
if (%1 == -4) {
set %1 9
}
if (%1 == -3) {
set %1 10
}
if (%1 == -2) {
set %1 11
}
if (%1 == -1) {
set %1 12
}
}
This can be shortened to
alias blah if (%1 < 0 && %1 > -12) set %1 $calc(%1 + 13)
Also you should look into using while loops rather than goto\'s.
Altogether this isn\'t an amazing script but I suppose it\'s decent.
I actually meant that the user could open their own window, and then this alias would draw the progress bar inside of it, rather than the alias opening its own window for the bar to be displayed, and then closing the window afterwards.
A way to still be able to have a variable load speed but not freeze mIRC would be to use global variables, then use a timer to make successive calls to the progressbar alias.
It is quite easy for someone to use more than 5 capital letters in a message. Perhaps a better method would be to kick people who use a certain percentage of capital letters, for example: OMG JOIN #NEWBP0WNAGE NOW!!! That sentence has 20 out of 28 characters capitalised, which would be about 71% capital letters. The maximum could be set around 50%, or even better, inclue a method for the user to define the percentage.
echo -a $color(info) Invalid syntax:
should be
echo $color(info) -a Invalid syntax:
And
else { $addtok(%joins,$3,44)) }
won\'t do anything. It should be
else { set %joins $addtok(%joins,balls,44) }
Also your on connect event is very messed up, it puts mirc into a never ending loop of joining channels. If this code worked for you than I am very surprised, because this code does not look tested to me.
As far as determining if it\'s a leapyear, you can use the if-then-else operator // For example: if (4 // %year) return $true
The // operator determines if $v2 is a multiple of $v1. Also I think there would be a more efficient way of displaying the buttons for the days of different months, Such as creating 31 buttons and having them all hidden, then using a drop menu to select a month and then unhiding the correct number of buttons. This would save alot of code in the dialog.
If you want a script which counts all words then try this Word Recorder: http://www.hawkee.com/snippet/2736/
Why would anyone play tic tac toe versus themselves? Also the window should be made a desktop window because if the main mirc window isnt the right size it looks very odd. I\'m not sure why the tictactoe alias is local too, because if someone wants to type /tictactoe to start the game, why not let them?
You don\'t need the /kick seeing as you are using /ban -k which will both kick them and ban them. Another suggestiong would be to make the badwords list either a global variable or a .txt or .ini file and then have an on load event which would ask the user for an initial list of words as well as having an alias, a pop up, or a dialog for the user to enter new words.