D2Hackit v2.00

API Reference


What's New in v2.00

D2Hackit v2.00 is an improved version of the old D2Hackit(whatever version it was before 2.00) that presents a lot of new features and API's which would otherwise take the module developers thousands of code lines to achieve. The following are some of the new features added in D2Hackit 2.00:

  1. Greatly improved the original "server->..." API set.
  2. Added new API set "me->...", this API set encapsulates player attributes and game operations, "me->BackToTown();", for example, will make the player cast a town portal and immediately use it to return to town.
  3. Added screen drawing API.
  4. Introduced the "D2 Message System", which is similar to "Windows message system" on Win32 plateforms, D2 messages will be sent to your application(d2h modules) when something happens in the game. This mechanism establishes an "Event Driving" interface between the game and your application.
  5. Added "anti-detection". 
  6. Added inter-module communication.
  7. Added command line ".banner <0/1>" to hide/show the banner text displayed on the top middle of the game screen.
  8. Added command line ".backtotown" to make the player cast a town portal and quickly walk in.
  9. Added command line ".mystats" to display player's important stats, including some hidden stats.
  10. Added command line ".sync" to resync character position with the server, this is useful for recovering from the infamous "black wall" lag and showing where the character actually is.
  11. Added command line ".sendkey <keycode>" to send a key-down message to the game window.
  12. And much more.

Backward Compatibility

Modules developed using old versions of D2Hackit are still able to be functional in D2Hackit 2.00, however, those modules will not benefit from any new features added in D2Hackit 2.00. It is strongly recommended that you rebuild your old modules using D2Hackit 2.00.


Acknowledgement

As we all know, Thohell was the original author of D2Hackit, although he stopped the development long ago, this new version, as well as all of the d2h modules we've been using, would not even exist without his excellent SDK. So I think it can only be fair if his name appears before mine. :)

Also, I stole reused a lot of code from Mousepad's MaphackTM, what can I say? He is THE genius, end of discussion.

We shall never forget those who kept D2Hackit improved to where it was, either. I do not know who you exactly are, but here you have my respect.


Credits

D2HackIt!

1.09 to 1.10 Porting

Various other wonderful functions

Anti-Detection Methods, Compatibilities

Path Finding Algorithms

Documentation, Code Supporting, Testing

More are to be added...

In case of code reusing, I'm only able to give explicit credits to those whose code are directly reused in this project. For example, if I used A's code, A used B's code, and B, in turn, used C's code, I can only give credits to A since I may not know for sure who B and C are.

I'll try to get more people who deserve rightful credits up on the list, this list is NOT ended and is absolutely not final...


License Agreement

  1. Developing or using any third-party applications on the Battle.net closed realms are considered hacking and may therefore receive punishments from Blizzard Entertainment, including, but not limited to, character deletion, account closing, or CD-key removal. The authors shall hold no responsibility to any damage or loss of data caused by use of this library. USE IT AT YOUR OWN RISK.
  2. This library and its source code may be used in any way you desire, providing it is not sold for profit without the authors' written consent, and providing that this notice and the authors' names are included. If the source code in this library is used in any commercial application then acknowledgement must be made to the authors of this library (in whatever form you wish).
  3. This library is provided "as is" with no expressed or implied warranty.

API Reference


D2 Message System

New Diablo 2 Event

http://newd2event.net