** d2macro v1.0 ( 2001 mistersulu) **

EMAIL: mister_sulu@hotmail.com
BNET: *mistersulu@useast


Disclaimer:

This program is distributed "as is" and may be redistributed freely provided no files are altered in any way.  This program is used at your own risk.  The author is not responsible for any damage down to your computer.  Nuff said.

** One thing... Many nefarious individuals have created so-called "hacks" that log account pwords or cd keys.  I have all the cd keys and sojs i need, so I assure you that this program does ONLY what it looks like it's doing.  It's just a tool... I use it myself :-) **


Info:

d2macro is designed to make tedious tasks such as whispering, casting/attacking combos, and repeated messages [like "Invite plz"] easy as a touch of a button.  The user simply assigns a set of commands (Keypress, Right/Left mouse clicks, and Delays) to a Hotkey.  It works in all single- and multi-player modes and (as far as I know) on all platforms (never tried it on a Mac).  Any problems (or suggestions), email me.


Installation and Use:

Extract the files to a folder.  Make sure "hook.dll" is in the same folder as "d2macro.exe" and this file, and run the program.  Create your macros and press "Start" to hook to D2.  Then, press you're assigned hotkeys in the game and the macros will execute... It's that simple.

** If u send a shortcut to the desktop, make sure u set the 'Start In' folder (in the Properties dialog of the shortcut) to the folder in which "d2macro.exe" resides **

Also, all macro information is stored in 'd2macro.ini' in your windows system directory (either Windows or WINNT).  If you want to copy macros to another computer, simply copy this file and put it in the system directory of the other comp.


Building the Macro:

Trick #1:  ** Don't edit the macro manually until u know what ur doin **

*** Also, all macro commands must be separated by carriage returns (new lines) ***

That being said, it's simple...  Assign a name and a hotkey to the macro and check the enabled box (uncheck to disable).  Click any of the buttons below the code edit box, and add commands to the macro.

KEY:  Click this button and press the key that u want the macro to send to D2.  *NOTE:  The Hotkey ignores case, but all other keys (within the macro code)  check the state of CAPS or SHIFT.*  You'll notice that after pressing the key, there is no letter in the code box, but rather a 'K' and a whole lot of numbers.  This is the state information of a KEYUP and KEYDOWN message.  Want to see what all that junk means?  That's what the 'Check' button is for...

** NOTE:  Each KEY message is automatically followed by a 5 microsecond delay for D2 processing.  You should never need to insert DELAY commands between KEYs. **

CHECK:  After u add a few commands, click the check button to see what ur macro will do.  *NOTE: The Check view may not display keys exactly as D2 would accept them... The best way to Check a macro is to run it during the game*

R/L-CLICK:  Exactly what it sounds like...  Click this button to add a Right or Left mouse click to the list of commands (represented by a 'R' or 'L').

** VERY IMPORTANT - Almost every click event (spell, attack) must be followed by a DELAY to allow following commands to execute.  Experiment with DELAY times to maximize macro speed :-) **

DELAY:  This command is invaluable.  On average, spells will require around a 500 to 1000 microsecond delay before another spell (CLICK command) can be accepted.  Add a delay between all CLICK commands to ensure you're spells will fly!

CLEAR:  Ughh... start over :-(


******
Tips:
******

1.  Make sure you put an enter key command before text to bring up the Message Box.  Something like this would bring up "/w *mistersulu "  Click Key and hit enter.  Click Key and hit the key for each of the letters u want to type.  Follow it up with another Key and enter if u want it to send right away.  Experiment... it's easy once u get the hang of it.

2.  Don't forget the DELAY between CLICK commands... If it isn't working, extend the delay time.

3.  If the macro just plain doesn't work after you've edited the Code by hand (not advisable), my advice is to CLEAR it and start over.

4.  Click the Check button (or run the macro in D2) periodically to make sure the macro does what it's supposed to.

4.  *DONT EVER* map a Hotkey to a character that you are going to type in a different context.  Otherwise you will be executing macros in all the worng places.  *ALSO*  Don't have a macro type it's own Hotkey or you'll end up overflowing the D2 message pump (not good).

5.  One cool advanced trick is to call one macro from another.  For example, I made a macro for my sorc to cast Frozen Armor, Energy Shield, and Lightning Storm.  I also made a macro that hits "-" on the Numpad (mousepad's INVALUABLE maphack... u rule man!), turns on the automap, runs my shield macro, and switches to Teleport.  That way, I can use the first macro while I'm fighting to reset my shields, and use the second when i start a level.  Be creative!!

6.  Don't hesitate to send me ur comments and suggestions (mister_sulu@hotmail.com) or whisper *mistersulu@useast

7.  Enjoy :-)

