Thread: PTC?

Results 1 to 6 of 6
  1. #1
    ijikix's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Posts
    13
    Reputation
    10
    Thanks
    0

    PTC?

    I am currently developing a hotkey base CA NA trainer. However, when I use this PTC:

    Code:
    void PushToConsole( __in const char* Command )
    {
    	void* Console = ( void* )0x48B650; //ADDRESS_CONSOLE_UNWRAPPED
    	__asm
    	{
    		PUSHAD
    		PUSH Command		;
    		MOV EAX, Console	;
    		CALL EAX		;
    		ADD ESP, 0x4		;
    		POPAD
    	}
    };
    
    ...
    PushToConsole( "SkelModelStencil 1" );
    Nothing happens. Can someone please help me? Thanks in advance.

  2. #2
    RobinC's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Location
    Mpgh.exe
    Posts
    1,771
    Reputation
    69
    Thanks
    3,657
    My Mood
    Aggressive
    Quote Originally Posted by ijikix View Post
    I am currently developing a hotkey base CA NA trainer. However, when I use this PTC:

    Code:
    void PushToConsole( __in const char* Command )
    {
    	void* Console = ( void* )0x48B650; //ADDRESS_CONSOLE_UNWRAPPED
    	__asm
    	{
    		PUSHAD
    		PUSH Command		;
    		MOV EAX, Console	;
    		CALL EAX		;
    		ADD ESP, 0x4		;
    		POPAD
    	}
    };
    
    ...
    PushToConsole( "SkelModelStencil 1" );
    Nothing happens. Can someone please help me? Thanks in advance.
    Dont try coding if you can't code dude....

  3. #3
    izanagi1's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    23
    Reputation
    10
    Thanks
    1
    My Mood
    Psychedelic
    Quote Originally Posted by ijikix View Post
    I am currently developing a hotkey base CA NA trainer. However, when I use this PTC:

    Code:
    void PushToConsole( __in const char* Command )
    {
    	void* Console = ( void* )0x48B650; //ADDRESS_CONSOLE_UNWRAPPED
    	__asm
    	{
    		PUSHAD
    		PUSH Command		;
    		MOV EAX, Console	;
    		CALL EAX		;
    		ADD ESP, 0x4		;
    		POPAD
    	}
    };
    
    ...
    PushToConsole( "SkelModelStencil 1" );
    Nothing happens. Can someone please help me? Thanks in advance.
    void* Console : why are you using void* for an addy??? Use DWORD*...

    Code:
    __asm 
    	{
    		Pushad; //starting
    		Push Command //Pushing the command...
    		call Console //... for the console
    		add esp, 0x4 //adding 0x4 on the esp
    		Popad; //ending
    		}
    	}

  4. #4
    Otaviomorais's Avatar
    Join Date
    Oct 2011
    Gender
    male
    Location
    MG, Brasil
    Posts
    268
    Reputation
    10
    Thanks
    124
    My Mood
    Dead
    Try this:
    typedef INT(WINAPIV *tPush)(CONST CHAR *szCommand);
    tPush ExecuteConsole = (tPush)ADDR_CONSOLEUNWRAPPED; //Gellin's logger

  5. #5
    izanagi1's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    23
    Reputation
    10
    Thanks
    1
    My Mood
    Psychedelic
    @Otaviomorais you use macros, it's a bit slower and higher level

  6. #6
    flameswor10's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    12,528
    Reputation
    981
    Thanks
    10,404
    My Mood
    In Love
    Okay, before we fight over macros and void* addresses.
    It doesn't matter really, as long as they all point to the same thing.

    @OP are you using the PTC method inside of an Engine function? or through your own thread.
    I think it only works within an Engine function. Also, It doesn't matter really what type of PTC you use, they both do the same thing and the delay is barely noticable ingame.

    I'd also advise you to check your Address as that may be the cause of the error.
    No I do not make game hacks anymore, please stop asking.


    Been MPGH Minion: 6 July 2011 - 1 August 2012

Similar Threads

  1. PTC Commands
    By Solify in forum Combat Arms EU Hack Coding/Source Code
    Replies: 85
    Last Post: 08-06-2012, 11:12 AM
  2. [Discuss] Revive and Target Distance PTC
    By ppl2pass in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 5
    Last Post: 07-12-2010, 03:40 AM
  3. [Request]How do i make a ptc website.
    By trevor206 in forum Programming Tutorial Requests
    Replies: 0
    Last Post: 03-17-2010, 03:51 PM
  4. multiclicker2 - Auto Clicker websites PTC.
    By hTk # COGUSTYLE in forum General Hacking
    Replies: 0
    Last Post: 03-13-2010, 02:06 AM
  5. here is a quick tutorial on how to use PTC sites
    By thesynyster32 in forum Programming Tutorial Requests
    Replies: 0
    Last Post: 05-05-2009, 10:07 PM