Thread: Am I crazy? >_<
View Single Post
  #76  
Old 07-17-2009, 04:49 PM
Shendare
Dragon
 
Join Date: Apr 2009
Location: California
Posts: 814
Default

Feel free. I just threw it together after refreshing my memory on a few DOS commands.

If anyone's concerned about how exactly it works, these are the steps:

1. Verifies that it can see Resources\Loadscreens\load*.jpg

2. Makes sure there's a backup of your original Resources\loadscreen.jpg

3. Runs through the list of files in Resources\Loadscreens to randomly pick one to copy as your loadscreen.

4. Starts EQ and waits for it to finish

5. Restores your original loadscreen from the backup in #2

The way it randomly picks a loadscreen is that it deletes your original loadscreen.jpg file (after having backed it up), then runs through all of the load*.jpg files in Resources\Loadscreen and, for each one, picks a random number from 0-32767 ("%Random%"). If the random number for that particular file is less than 1000 (~1/33 odds), it makes it your loadscreen. If it runs through the whole list of files and none of them ended up getting the 1/33 random chance, it runs through them again until one does.

Pretty simplistic, but it gets the job done.
Reply With Quote