PTC Method :D

Posts 115 of 39 · Page 1 of 3
PTC Method :D
My horrible PTC method

Code:

VOID CosolePush(CONST CHAR *Command)
{

	
__asm {

PUSHAD;
NOP;
MOV EAX, LTClientEXE; 
WAIT;
MOV EBX, LTClientEXE;
WAIT;
NOP;
CMP EAX, EBX;
NOP;
add eax, 4
JZ Hello; 
NOP;
Hello:       
NOP;
PUSH Command;
NOP;
MOV EAX, LTClientEXE;
NOP;
CALL EAX;
NOP;
ADD ESP, 0x4;
NOP;
sub EDI, 0x5;
sub esi, 0x1;
POPAD;
}
}

Chams push example:
Code:
ConsolePush("SkelModelStencil 1");
why is there a ";" at the end of every line?
why is there NOPs?
Quote Originally Posted by kibbles18 View Post
why is there a ";" at the end of every line?
It doesnt Hurt anything but thats what happens when C++ takes over your life...
Quote Originally Posted by kibbles18 View Post
why is there a ";" at the end of every line?
why is there NOPs?
";" in asm is just a comment no big deal.
Must be trying to take up space
Quote Originally Posted by kibbles18 View Post
why is there a ";" at the end of every line?
why is there NOPs?
theres a ; at every line because it tells the computer that its end of the command I think

(well im still learning to code )
Quote Originally Posted by 0ptic View Post
theres a ; at every line because it tells the computer that its end of the command I think

(well im still learning to code )
; means a comment../fp
Lmao this would'nt even work..Bad ASM syntax. completly wrong too. Uneeded code.
can do Console commands with the LTBase class with 1 line of code.
Quote Originally Posted by DeadLinez View Post
can do Console commands with the LTBase class with 1 line of code.
Shareeeee for me please.
This is very UN-needed, In my Opinion it's sort of a mess and takes up space.
i don't know 1 bit of ASM but i think your doing something wrong
Code:
void __cdecl RunConsoleCommand( const char* cCommand)
{
	void* address = ( void* ) ADDR_CONSOLEUNWRAPPED;

	__asm
	{
		Push cCommand
		call address
		add esp, 0x4
	}
}
Much smaller, Much Simpler, Much easier.
Quote Originally Posted by flameswor10 View Post
Code:
void __cdecl RunConsoleCommand( const char* cCommand)
{
	void* address = ( void* ) ADDR_CONSOLEUNWRAPPED;

	__asm
	{
		Push cCommand
		call address
		add esp, 0x4
	}
}
Much smaller, Much Simpler, Much easier.
One flaw with that....Ill let you find out.....Triple check it.
Quote Originally Posted by spookyskunkk View Post
One flaw with that....Ill let you find out.....Triple check it.
Works perfectly for me
LOL let see if this code really work hahahah dude you better be the good code !!
yeah, it will work but that's a lot of instructions. i also don't like it when people deface the true art of assemply by using c++ preprossesor macros (no offence). but gj.
Posts 115 of 39 · Page 1 of 3
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?