Results 1 to 3 of 3
  1. #1
    SawMister's Avatar
    Join Date
    May 2013
    Gender
    male
    Location
    Germany
    Posts
    23
    Reputation
    16
    Thanks
    0

    Question GetCharMoney DLL problem

    Hi.
    We have a problem with reading the moneyvalue of our character.
    Code:

    Code:
    #include <Windows.h>
    
    char* money;
    
    char* Functionen::GetCharMoney()
    {
    	__asm
    	{
    				MOV ECX,DWORD PTR DS:[0x0FE54EC]
    				MOV EAX,DWORD PTR DS:[ECX+4]
    				ADD ECX,4
    				PUSH 0xB
    				CALL DWORD PTR DS:[EAX+0x10]
    				MOV DWORD PTR SS:[ESP+0x8],EAX
    				JMP DWORD PTR DS:[0x0E2A7EC]
    				MOV Money,EAX
    	}
    	return Money;
    }
    
    void Functionen::SendChatPacket(char* Nachricht,int ChatType)
    {
    	__asm
    {
    	MOV ECX, SendChatPacketPointer
    	PUSH ChatType
    	PUSH Nachricht
        CALL SendChatPacketCall
    }
    }
    
    BOOL APIENTRY DllMain( HMODULE hModule,DWORD  ul_reason_for_call,LPVOID lpReserved)
    {
     switch (ul_reason_for_call)
     {
     case DLL_PROCESS_ATTACH:
    	 SendChatPacket(GetCharMoney() ,0);
     case DLL_THREAD_ATTACH:
     case DLL_THREAD_DETACH:
     case DLL_PROCESS_DETACH:
      break;
     }
     return TRUE;
    }

    This should send the value to gamechat, but the game crashes.
    This are the correct addresses.
    The game is Metin2.
    What is wrong?

    Thank you really much!

    Best regards, René

  2. #2
    COD3RIN's Avatar
    Join Date
    May 2013
    Gender
    male
    Location
    Posts
    5,309
    Reputation
    468
    Thanks
    28,779
    My Mood
    Angelic
    great source code
    ᚛C☢dℝin3᚜
    Love you.
    ~Kenshit13
    Quote Originally Posted by cheaterman26 View Post
    COD3RIN PUT A BACKDOOR ON HIS OWN CHEAT HE HACK MY COMPUTER AND MY STEAM, DON'T TRUST THIS GUYS !



  3. #3
    abuckau907's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    other side of the wire
    Posts
    1,342
    Reputation
    162
    Thanks
    239
    My Mood
    Cold
    I've not much experience with C++, so I'm just guessing..

    void Functionen::SendChatPacket(char* Nachricht,int ChatType)
    {
    __asm
    {
    MOV ECX, SendChatPacketPointer
    PUSH ChatType
    PUSH Nachricht
    CALL SendChatPacketCall
    }
    }

    I don't see 'SendChatPacketPointer' declared/defined anywhere. What value is being moved into ecx? 0? edit: same with 'SendChatPacketCall' ?
    Last edited by abuckau907; 01-18-2014 at 06:02 PM.
    'Some things that can be counted, don't matter. And some things that matter, can't be counted' - A.E.
    --
     

    My posts have some inaccuracies/are wrong/wrong keyword(s) used.
    They're (maybe) pretty close, and I hope they helped you, not created confusion. Take with grain of salt.

    -if you give rep, please leave a comment, else it means less.

Similar Threads

  1. dll. Problem
    By ImaKid in forum CounterStrike (CS) 1.6 Hacks / Counter Strike: Source (CSS) Hacks
    Replies: 6
    Last Post: 02-08-2010, 11:53 AM
  2. dll problem?
    By mike4775 in forum Combat Arms Help
    Replies: 7
    Last Post: 01-21-2010, 01:47 AM
  3. .dll Problem
    By j0elself in forum Combat Arms Help
    Replies: 11
    Last Post: 09-05-2009, 02:12 AM
  4. Hack works for 1 game and dll problem
    By Chicco in forum Combat Arms Hacks & Cheats
    Replies: 22
    Last Post: 05-23-2009, 12:51 AM
  5. MPGH Combat Arms Pub hack Dll problem...
    By haikaboy in forum Combat Arms Hacks & Cheats
    Replies: 9
    Last Post: 04-25-2009, 04:54 PM