Olliegod

Olliegod

Joined
May 28, 2007

Activity Stream

Olliegod commented on a Page, Countdown Script. Great for Holidays.  -  Dec 01, 2007
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.

 Respond  
Olliegod commented on a Page, Email v.0.1  -  Nov 29, 2007

I believe when you whois someone there is a line which tells you if the person has identified. So you could whois them and if you find the line, they\'re identified.

 Respond  
Olliegod commented on a Page, Fun Topics  -  Nov 26, 2007

If you want multiple words in the input box you can do something like $$?=\"The topic you want\"

 Respond  
Olliegod commented on a Page, /progressbar  -  Oct 29, 2007

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.

 Respond  
Olliegod commented on a Page, /progressbar  -  Oct 29, 2007

Sorry for the double post, but I also think this would be much more usefull if it came with the option to specify your own window, size, and position, so that you could embed the progress bar wherever you wanted it.

 Respond  
Olliegod commented on a Page, /progressbar  -  Oct 29, 2007

The while loop which controls the speed can easily lock up mIRC.

 Respond  
Olliegod commented on a Page, $iseven - $isodd  -  Oct 27, 2007

This could be achieved much easier by using the // and \\ if operators. For example:

 alias iseven return $iif($1 // 2,$true,$false)
 Respond  
Olliegod commented on a Page, Raw finder  -  Oct 21, 2007

Very useful script, I\'ll be using this quite a bit. Thanks.

 Respond  
Olliegod commented on a Page, Word scramble game  -  Oct 19, 2007

I believe the command:
/remove scramblewords.txt
would solve that problem. If you want to elaborate on that further, go ahead, but I see no purpose for it really.

 Respond  
Olliegod commented on a Page, Invite (on Query/Msg)  -  Oct 17, 2007

$chan would not work, seeing as it is a private message.

 Respond  
Olliegod commented on a Page, Modlist  -  Oct 06, 2007

For reversing the raw modes, couldn\'t you just take $1 and replace the - with a + and the + with a -. Seems like it would be a whole lot simpler.

 Respond  
Olliegod commented on a Page, Command-based mp3  -  Oct 05, 2007

With aliases that have no use outside of the script (aliases that a user will never manually call) you should always use the -l switch to make it local.

 Respond  
Olliegod commented on a Page, Jbot's Restuarant!  -  Oct 05, 2007

I agree with mountaindew, food really doesn\'t taste very good after it\'s gone through the whole internet anyways.

 Respond  
Olliegod commented on a Page, Query forwarding 1.1  -  Oct 03, 2007

The reason it produces an error message for /hload is because you do not check if the file exists before you load it.

if ($isfile(query.hsh)) hload query query.hsh
 Respond  
Olliegod commented on a Page, Seen v1.9  -  Sep 30, 2007

Just something small, $chan can\'t be used in a quit event.

 Respond  
Olliegod commented on a Page, Query forwarding 1.1  -  Sep 30, 2007

The list of friends will get destroyed when you exit mIRC. You will need to properly save them to file to prevent this, and then reload them from the file once mIRC starts again.

Or you could use a .ini or .txt file for this, seeing as it is something rather simple.

 Respond  
Olliegod commented on a Page, Hash table aliases  -  Sep 29, 2007

The hmove alias could be much simpler.
Check the help file for /hsave and /hload

 Respond  
Olliegod commented on a Page, User Control dialog  -  Sep 29, 2007

In the on nick event you should check to see if the person who changed their name is on %chan9.

 Respond  
Olliegod commented on a Page, User Control dialog  -  Sep 28, 2007

You\'ll also want to add the following:
on part
on quit
on kick
to make sure you won\'t encounter any errors.

 Respond  
Olliegod commented on a Page, Caps kicker  -  Sep 28, 2007

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.

 Respond  
Olliegod commented on a Page, User Control dialog  -  Sep 28, 2007

Or you could make it even better and have it automatically update whenever someone joins/leaves the channel.

 Respond  
Olliegod commented on a Page, bad word kick  -  Sep 25, 2007

Your on quit event will trigger anytime anyone quits irc. You should change it to check it the nick is yours.

 Respond  
Olliegod commented on a Page, Connect event  -  Sep 11, 2007
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.

 Respond  
Olliegod commented on a Page, CalliCalendar  -  Aug 23, 2007

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.

 Respond  
Olliegod commented on a Page, Word Counter  -  Aug 21, 2007

If you want a script which counts all words then try this Word Recorder: http://www.hawkee.com/snippet/2736/

 Respond  
Olliegod commented on a Page, tic-tac-toe game  -  Aug 20, 2007

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?

 Respond  
Olliegod commented on a Page, Single Person Blacklist  -  Aug 17, 2007

Your description says the ignore reason is optional, but you code will not run without one because you use $$?, if you want to make it optional use $?

 Respond  
Olliegod commented on a Page, !PCW  -  Aug 14, 2007

To make sure they use only numbers you can use something like

if ($2 isnum 1-144)

that will also ensure they dont enter some random number like 12345.

 Respond  
Olliegod commented on a Page, Bad word kick/ban ( text , emote , notice )  -  Aug 13, 2007

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.

 Respond  
Olliegod commented on a Page, Two player Tic-Tac-Toe  -  Aug 13, 2007

Thanks, glad you found the problem.

 Respond  
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.