Showing results 1 to 3 of 3

Thread: Warcraft 3 unit struct

  1. #1

    Default Warcraft 3 unit struct

    Does anyone have a unit structure for warcraft 3? I have come across the W3UNITINFO one which is per unit type, but no one seems to have a structure for the individual units. I have read that w3hackit has one, but unfortunately the geocities page where that was hosted is long gone.

  2. #2

    Deviant
    kolkoo's Avatar
    Join Date
    Jun 2008
    Location
    Deep within the recursion.
    Posts
    53

    Default

    struct Unit {
    DWORD dwDummy[3];
    DWORD dwID1;
    DWORD dwID2;
    BYTE _1[0x1C];
    DWORD dwClassId;
    BYTE _2[0x1C];
    DWORD HealthBar;
    DWORD UNK;
    DWORD dwOwnerSlot;
    };
    Not much info on there but it's perfectly enough to make any w3 feature that any public or private released maphack has ever had. Credits go to Sheppard since that's who I got it from first.
    To understand recursion, one must first understand recursion.

  3. #3

    Default

    Quote Originally Posted by kolkoo View Post
    struct Unit {
    DWORD dwDummy[3];
    DWORD dwID1;
    DWORD dwID2;
    BYTE _1[0x1C];
    DWORD dwClassId;
    BYTE _2[0x1C];
    DWORD HealthBar;
    DWORD UNK;
    DWORD dwOwnerSlot;
    };
    Not much info on there but it's perfectly enough to make any w3 feature that any public or private released maphack has ever had. Credits go to Sheppard since that's who I got it from first.

    Hi,

    Do you know how to get the struct through unit id(such as the result of GetTriggerUnit)?

    Thank you!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Warcraft III Unit ID's
    By dRop in forum Reverse Engineering
    Replies: 15
    Last Post: 08-20-2009, 12:23 PM
  2. [Warcraft III] Unit Alert Hack
    By Sheppard in forum Old User Downloads
    Replies: 3
    Last Post: 05-12-2008, 11:28 AM
  3. Referencing a struct from a member
    By BombSquad in forum Software Development
    Replies: 20
    Last Post: 07-28-2007, 09:58 PM
  4. [WarCraft] Toggle Unit Health Bars - In Game
    By eternal88soul in forum Old downloads
    Replies: 4
    Last Post: 07-10-2007, 11:15 PM

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •