WC3Hack Source Code

This is a discussion on WC3Hack Source Code within the Warcraft 3 Hacks, bots and tools board part of the Warcraft 3 forum category; Thanks!...

Page 5 of 7 FirstFirst ... 34567 LastLast
Results 41 to 50 of 67
  1. #41
    chronic_w33d is offline Newbie
    Array
    Join Date
    Jul 2010
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Reputation
    0
    Thanks!


  2. #42
    oMBra is offline Addict
    Array
    Join Date
    Nov 2008
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    9
    Reputation
    10
    Dennis, using your PlayerIndex offset I managed to "arrive" to a "GameInfo" structure taken from w3jsp source code:
    Code:
    struct GameInfo {
        DWORD PtrList; //0x00 
        DWORD _1[0x9]; //0x24 
        WORD wPlayerSlot; //0x28 
        WORD _2;//0x30
        DWORD _3[0x6]; //0x40 
        DWORD dwMaxPlayerCount; //0x44 
        DWORD _4;//0x48 
        DWORD dwPlayerCount;//0x4C 
        DWORD _5[0x2];//0x50 
        DWORD dwpPlayerList[15]; //0x58 
    };
    However I was interested at dwpPlayerList, but seems it points to nowhere.
    Do you know if this struct is valid?

  3. #43
    ZeD's Avatar
    ZeD
    ZeD is offline RoR 0x266E


    Array
    Join Date
    Feb 2007
    Location
    Germany
    Posts
    1,440
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    14
    Reputation
    698
    Quote Originally Posted by oMBra View Post
    Dennis, using your PlayerIndex offset I managed to "arrive" to a "GameInfo" structure taken from w3jsp source code:
    Code:
    struct GameInfo {
        DWORD PtrList; //0x00 
        DWORD _1[0x9]; //0x24 
        WORD wPlayerSlot; //0x28 
        WORD _2;//0x30
        DWORD _3[0x6]; //0x40 
        DWORD dwMaxPlayerCount; //0x44 
        DWORD _4;//0x48 
        DWORD dwPlayerCount;//0x4C 
        DWORD _5[0x2];//0x50 
        DWORD dwpPlayerList[15]; //0x58 
    };
    However I was interested at dwpPlayerList, but seems it points to nowhere.
    Do you know if this struct is valid?
    You can retrieve the Playerhandle via the dwpPlayerList.

    Code:
    DWORD dwGameBase = (DWORD)GetModuleHandle( "Game.dll" );
    
    typedef GameInfo* p_Game_GameInfo_t;
    p_Game_GameInfo_t *p_Game_GameInfo = (p_Game_GameInfo_t*)(dwGameBase+0xAB65F4);
    
    DWORD GetPlayer( DWORD dwSlot )
    {
            if( (*p_Game_GameInfo) && (*p_Game_GameInfo)->dwPlayerCount > dwSlot )
    		return (*p_Game_GameInfo)->dwpPlayerList[dwSlot];
    
    	return NULL;
    }

  4. #44
    oMBra is offline Addict
    Array
    Join Date
    Nov 2008
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    9
    Reputation
    10
    That's what I'm talking about,
    (*p_Game_GameInfo)->dwpPlayerList[dwSlot] points to nothing

  5. #45
    ZeD's Avatar
    ZeD
    ZeD is offline RoR 0x266E


    Array
    Join Date
    Feb 2007
    Location
    Germany
    Posts
    1,440
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    14
    Reputation
    698
    You need the PlayerHandle for various of this, e.g. getting his playercolor,
    why you think it's pointing to nothing?
    It's just returning the pointer to the HPlayer of the selected slot.

    Code:
    DWORD GetPlayerColor( DWORD dwSlot )
    {
    	Player* pPlayer = (Player*)GetPlayer( dwSlot );
    
    	return pPlayer->dwPlayerColor;
    }

  6. #46
    oMBra is offline Addict
    Array
    Join Date
    Nov 2008
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    9
    Reputation
    10
    I took the value at GameInfo + 0x58, I went to that address, and all bytes are 0

  7. #47
    wc3noobpl's Avatar
    wc3noobpl is offline Hacker Array
    Join Date
    Dec 2011
    Posts
    154
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Reputation
    189
    Quote Originally Posted by oMBra View Post
    Dennis, using your PlayerIndex offset I managed to "arrive" to a "GameInfo" structure taken from w3jsp source code:
    Code:
    struct GameInfo {
        DWORD PtrList; //0x00 
        DWORD _1[0x9]; //0x24 
        WORD wPlayerSlot; //0x28 
        WORD _2;//0x30
        DWORD _3[0x6]; //0x40 
        DWORD dwMaxPlayerCount; //0x44 
        DWORD _4;//0x48 
        DWORD dwPlayerCount;//0x4C 
        DWORD _5[0x2];//0x50 
        DWORD dwpPlayerList[15]; //0x58 
    };
    However I was interested at dwpPlayerList, but seems it points to nowhere.
    Do you know if this struct is valid?
    this struct is valid, its Player* dwpPlayerList[slot];

  8. #48
    wc3noobpl's Avatar
    wc3noobpl is offline Hacker Array
    Join Date
    Dec 2011
    Posts
    154
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Reputation
    189
    tested this hack with (www.virustotal.com) - its clean. Gj. all other hacks have some or another trojans or malware...
    but its not surprize that its clean, cause its opensource.
    i think may be i will make working maphack for 1.26a base on this sources,
    i only will add anti-warden protect. donno if i will have time, its very unlikely, i will delete wc3 soon, holidays going to end.
    Last edited by wc3noobpl; 01-30-2012 at 05:17 AM.

  9. #49
    LaKaiS's Avatar
    LaKaiS is offline Advanced Hacker
    Array
    Join Date
    Sep 2009
    Location
    City of Angels (LA)
    Posts
    251
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    9
    Reputation
    125
    Quote Originally Posted by wc3noobpl View Post
    tested this hack with (www.virustotal.com) - its clean. Gj. all other hacks have some or another trojans or malware...
    but its not surprize that its clean, cause its opensource.
    i think may be i will make working maphack for 1.26a base on this sources,
    i only will add anti-warden protect. donno if i will have time, its very unlikely, i will delete wc3 soon, holidays going to end.
    I will miss u if u leave

  10. #50
    Sosha's Avatar
    Sosha is offline :)



    Array
    Join Date
    Oct 2011
    Location
    Iran
    Posts
    517
    Mentioned
    26 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    12
    Reputation
    1008
    Please add some features like Rune Notifier and ...
    Thanks

Page 5 of 7 FirstFirst ... 34567 LastLast

Similar Threads

  1. Edit Mu Source Code
    By sadzas in forum Mu Releases
    Replies: 3
    Last Post: 09-22-2011, 09:10 AM
  2. Need a VB6 .dll injector source code
    By hacktheworld00 in forum Warcraft 3 forum
    Replies: 0
    Last Post: 08-17-2010, 01:59 PM
  3. source code for mh?
    By xain819 in forum Starcraft 2 Hacks, bots and tools
    Replies: 0
    Last Post: 06-02-2010, 02:42 AM
  4. [Request] Counter Strike Source Hack Source Code
    By luketh in forum Counter-Strike: Source Hacks
    Replies: 4
    Last Post: 04-10-2010, 02:24 AM
  5. DropBNet source code
    By Funs in forum Warcraft 3 forum
    Replies: 2
    Last Post: 10-02-2009, 06:37 AM

Posting Permissions

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