Wc3 Auto Stats @Bnet Ladder

This is a discussion on Wc3 Auto Stats @Bnet Ladder within the Warcraft 3 Hacks, bots and tools board part of the Warcraft 3 forum category; Code: #define ADDRPTR( X, Y ) __asm mov X, [Y] __asm mov X, [X] DWORD dwGameDLL = (DWORD)GetModuleHandle( "Game.dll" ); ...

Page 3 of 6 FirstFirst 12345 ... LastLast
Results 21 to 30 of 57
  1. #21
    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
    Code:
    #define ADDRPTR( X, Y )		__asm mov X, [Y] __asm mov X, [X]
    
    DWORD dwGameDLL = (DWORD)GetModuleHandle( "Game.dll" );
    
    DWORD _GameIndex = (dwGameDLL+0xAB65F4);
    DWORD Game_GetPlayer = (dwGameDLL+0x3A1650);
    DWORD Game_GetPlayerName = (dwGameDLL+0x2F8F90);
    
    DWORD GetPlayer( DWORD dwSlot )
    {
    	DWORD dwPlayer;
    
    	__asm {
    
    		push dwSlot;
    		ADDRPTR( ecx, _GameIndex );
    		call Game_GetPlayer;
    		mov dwPlayer, eax;
    	}
    
    	return dwPlayer;
    }
    
    void foo( )
    {
            CHAR *szPlayerName;
    
            for( DWORD dwSlot = 0; dwSlot < 12; dwSlot++ )
            {
    	        if( GetPlayer( dwSlot ) != NULL )
    	        {
    		        szPlayerName = Game_GetPlayerName( dwSlot );
    	        }
            }
    }
    This checks through all Slots getting the playernames.
    Do whatever you want to do with it.
    Hope you will get your program done, I'm not here to write you this program I just provide abit help.


  2. The Following 2 Users Say Thank You to ZeD For This Useful Post:


  3. #22
    ELiteChiLd- is offline Banned User Array
    Join Date
    Oct 2011
    Location
    United States
    Posts
    1,122
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Reputation
    624
    Thanks With this im sure we can finish my program i started on 2 years ago thank you very much Zero.

    Regards, ELiteChiLd-

  4. The Following User Says Thank You to ELiteChiLd- For This Useful Post:

    ZeD

  5. #23
    BlauSchlumpf is offline Member
    Array
    Join Date
    Jul 2012
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    6
    Reputation
    1
    Hey ZeroDivision, thanks for the providence.
    Code:
    #define ADDRPTR( X, Y )        __asm mov X, [Y] __asm mov X, [X]
    
    DWORD dwGameDLL = (DWORD)GetModuleHandle( "Game.dll" );
    
    DWORD _GameIndex = (dwGameDLL+0xAB65F4);
    DWORD Game_GetPlayer = (dwGameDLL+0x3A1650);
    DWORD Game_GetPlayerName = (dwGameDLL+0x2F8F90);
    
    DWORD GetPlayer( DWORD dwSlot )
    {
        DWORD dwPlayer;
    
        __asm {
    
            push dwSlot;
            ADDRPTR( ecx, _GameIndex );
            call Game_GetPlayer;
            mov dwPlayer, eax;
        }
    
        return dwPlayer;
    }
    
    void foo( )
    {
            CHAR *szPlayerName;
    
            for( DWORD dwSlot = 0; dwSlot < 12; dwSlot++ )
            {
                if( GetPlayer( dwSlot ) != NULL )
                {
                    szPlayerName = Game_GetPlayerName( dwSlot );
                }
            }
    }
    Do I understand correctly that I would only have to call foo() within my in main() function to get the playername, because foo() doesn't take any argument and does the job to get dwslot?
    Like this:
    Code:
    #include <stdio.h>
    int main ()
    {
      FILE * pFile;
      pFile = fopen ("C:/run.ini","w");
      if (pFile!=NULL)
      {
    fputs ("[SETTINGS] \n",pFile);
        fputs ("name=/stats " foo(),pFile);
        fclose (pFile);
      }
      return 0;
    }
    But still Iam depended on wc3noobpl sourcecode, because these codes are embedded in his program (wHack 1.3 sourcecode doesn't work ingame -> causes error, see previous post). So I would first need his current working sourcecode (v2.2) and/or maybe he could help adding this.
    Last edited by BlauSchlumpf; 07-29-2012 at 04:06 PM.

  6. #24
    Farid.Agl's Avatar
    Farid.Agl is offline Advanced Hacker

    Array
    Join Date
    Sep 2011
    Posts
    448
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    8
    Reputation
    322
    @Zero Division, nice.
    If the thread author failed on this, I will complete the idea.
    http://faridaghili.ir

  7. The Following User Says Thank You to Farid.Agl For This Useful Post:


  8. #25
    ELiteChiLd- is offline Banned User Array
    Join Date
    Oct 2011
    Location
    United States
    Posts
    1,122
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Reputation
    624
    Quote Originally Posted by GoDLiKe.ON3 View Post
    @Zero Division, nice.
    If the thread author failed on this, I will complete the idea.
    Im Pretty sure I alrdy did? Why i uploaded the original code cause I never finished it Goodluck.

  9. #26
    Tracky's Avatar
    Tracky is offline Administrator

    Array
    Join Date
    Dec 2007
    Location
    Germany
    Posts
    9,854
    Mentioned
    158 Post(s)
    Tagged
    2 Thread(s)
    Rep Power
    42
    Reputation
    5606
    Quote Originally Posted by ELiteChiLd- View Post
    Im Pretty sure I alrdy did? Why i uploaded the original code cause I never finished it Goodluck.
    Your code actually does only create an GUI in which you then can enter the players name and receive some information (stats).
    As you have to manually enter the players name you could also just open the browser and enter the name manually - It wouldn't make any difference and is probably as fast as your script would be.

    Codes provided above are in C++ / AutoIt and can not be compared to an autohotkey script at all.

  10. #27
    BlauSchlumpf is offline Member
    Array
    Join Date
    Jul 2012
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    6
    Reputation
    1
    Quote Originally Posted by Zero Division View Post
    Code:
    #define ADDRPTR( X, Y )        __asm mov X, [Y] __asm mov X, [X]
    
    DWORD dwGameDLL = (DWORD)GetModuleHandle( "Game.dll" );
    
    DWORD _GameIndex = (dwGameDLL+0xAB65F4);
    DWORD Game_GetPlayer = (dwGameDLL+0x3A1650);
    DWORD Game_GetPlayerName = (dwGameDLL+0x2F8F90);
    
    DWORD GetPlayer( DWORD dwSlot )
    {
        DWORD dwPlayer;
    
        __asm {
    
            push dwSlot;
            ADDRPTR( ecx, _GameIndex );
            call Game_GetPlayer;
            mov dwPlayer, eax;
        }
    
        return dwPlayer;
    }
    
    void foo( )
    {
            CHAR *szPlayerName;
    
            for( DWORD dwSlot = 0; dwSlot < 12; dwSlot++ )
            {
                if( GetPlayer( dwSlot ) != NULL )
                {
                    szPlayerName = Game_GetPlayerName( dwSlot );
                }
            }
    }
    This checks through all Slots getting the playernames.
    Do whatever you want to do with it.
    Hope you will get your program done, I'm not here to write you this program I just provide abit help.
    With wc3noobpl's suggestion to cut Safeclick out of v1.3 sourcecode I could make whack.mixtape work in custom games (no fatals errors occured anymore).
    But unfortunatetly I am not able to implement the idea of Zero Division. When compiling I get erros as: 'GetPlayer': identifier not found and : cannot convert from 'Player *(__cdecl *)(DWORD)' to 'Player *'1> There is no context in which this conversion is possible

    So it seems Game_GetPLayerName needs to be pointer to function c - Casting a function pointer to another type - Stack Overflow

    Maybe this job is for someone who has experience with c++ and winapi. Godlike.On3 already offered to realize the idea.

  11. #28
    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
    if you got 1.3 working, then add this new function to wc3.cpp:
    const char* GetPlayerName(DWORD slot)
    {
    if(!IsInGame())
    return "";

    return GAME_GetPlayerName(slot);
    }
    and this to wc3.h:
    const char* GetPlayerName(DWORD slot);
    hf

    PS: why you need checkstats for custom games? ;d
    Last edited by wc3noobpl; 08-06-2012 at 01:32 AM.

  12. #29
    BlauSchlumpf is offline Member
    Array
    Join Date
    Jul 2012
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    6
    Reputation
    1
    Quote Originally Posted by GoDLiKe.ON3 View Post
    If the thread author failed on this, I will complete the idea.
    Code:
    const char* GetPlayerName(DWORD slot)
    {
    if(!IsInGame())
    return "";
    
    return GAME_GetPlayerName(slot);
    } 
    #define ADDRPTR( X, Y )        __asm mov X, [Y] __asm mov X, [X]
    
    DWORD dwGameDLL = (DWORD)GetModuleHandle( "Game.dll" );
    
    DWORD _GameIndex = (dwGameDLL+0xAB65F4);
    DWORD Game_GetPlayer = (dwGameDLL+0x3A1650);
    DWORD Game_GetPlayerName = (dwGameDLL+0x2F8F90);
    
    DWORD GetPlayer( DWORD dwSlot )
    {
        DWORD dwPlayer;
    
        __asm {
    
            push dwSlot;
            ADDRPTR( ecx, _GameIndex );
            call Game_GetPlayer;
            mov dwPlayer, eax;
        }
    
        return dwPlayer;
    }
    
    void foo2()
    {
            CHAR *szPlayerName;
    
            for( DWORD dwSlot = 0; dwSlot < 12; dwSlot++ )
            {
                if( GetPlayer( dwSlot ) != NULL )
                {
                    szPlayerName = GAME_GetPlayerName( dwSlot );
                }
            }
    }
    
    void autostats()
    {
        if(IsWC3Valid())
        {
            FILE * pFile;
            pFile = fopen ("C:/example.txt","w");
            if (pFile!=NULL)
            {
               
               fputs (?????????????????????????????????????????????????????,pFile);
               fclose (pFile);
            }
            return 0;
        }
    
    }
    HF
    (I've no c++/winapi experience)

  13. #30
    undeadist's Avatar
    undeadist is offline Mentor
    Array
    Join Date
    Aug 2009
    Location
    Russia
    Posts
    141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Reputation
    -7
    give link for dowloand program auto stats ladder

Page 3 of 6 FirstFirst 12345 ... LastLast

Similar Threads

  1. Finding IP of player on Bnet Ladder game
    By undead_warrior in forum Warcraft 3 Hacks, bots and tools
    Replies: 19
    Last Post: 09-08-2010, 04:23 PM
  2. actual wc3 (bnet) maphack which can block ladder games?
    By Boklog in forum Warcraft 3 forum
    Replies: 4
    Last Post: 02-17-2010, 09:42 PM
  3. Bnet Ladder Reset - 3/9/09
    By Archimonde in forum Warcraft 3 forum
    Replies: 6
    Last Post: 03-11-2009, 01:06 AM
  4. best stats in bnet....
    By niko123456 in forum Warcraft 3 forum
    Replies: 18
    Last Post: 06-10-2007, 04:07 PM

Posting Permissions

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