What address are you using?And for which version?
48B650=NA.
Not sure about EU.
So I can't seem to get any PTC to work on my hotkey hack.... I had it working on a menu hack but could never get it to work on my hotkey base, even though it is the same :
My LTClientEXE is up to date, and this worked in my menu but doesn't in my hotkeyCode:void ptCommand(const char* Command) { _asm { pushad push Command mov eax, LTClientEXE call eax add esp, 0x4 popad } }
Thanks in advance
Respect List
Dave84311
GAYape
AVGN
Jabuuty671
Arch Enemy
Sketchy
.::SCHiM::.
Liz
Dreamer
Houston
R3dLine
What address are you using?And for which version?
48B650=NA.
Not sure about EU.
Last edited by sasue111; 12-04-2012 at 12:47 PM.
I'm working for EU so it's 0x48B6B0
Respect List
Dave84311
GAYape
AVGN
Jabuuty671
Arch Enemy
Sketchy
.::SCHiM::.
Liz
Dreamer
Houston
R3dLine
this works for both of my hacks.Code:VOID Console::ptCommand( CONST CHAR * Command ) { if( *(BYTE*)GameStatus == InGame ) { __asm { PUSHAD PUSH Command MOV EAX, LTClientEXE CALL EAX ADD ESP, 0x4 POPAD } } }
then:
should work.Code:if (YOUR HOTKEY ) { this->ptCommand ( YOUR ACTIVE HACK HERE ); } else { this->ptCommand ( YOUR OFF HACK HERE ); } }
if not let me know.
ill try to help
Last edited by -Bl00d-; 12-04-2012 at 02:02 PM.
Successful buys: 20
Successful sells: 4
Successful trades: 9
Scammed: 4
^^^^^^^^^^^
vouche for me?
Hmm I'll drop you a PM with some more code if you don't mind giving me a hand
Last edited by Genoble; 12-04-2012 at 02:06 PM.
Respect List
Dave84311
GAYape
AVGN
Jabuuty671
Arch Enemy
Sketchy
.::SCHiM::.
Liz
Dreamer
Houston
R3dLine
no problem.
ill try man,
as long as its readable im more than happy to help
Successful buys: 20
Successful sells: 4
Successful trades: 9
Scammed: 4
^^^^^^^^^^^
vouche for me?
You don't need to pop a value from the stack since all you're doing is using the original function.
You can do without the pushad and popad.
You don't even need to call eax.
I Read All Of My PM's & VM'sIf you need help with anything, just let me know.
Staff Administrator Since 10.13.2019
Publicist Since 04.04.2015
Middleman Since 04.14.2014
Global Moderator Since 08.01.2013
Premium Since 05.29.2013
Minion+ Since 04.18.2013
Combat Arms Minion Since 12.26.2012
Contributor Since 11.16.2012
Member Since 05.11.2010
@Flengo
Pushad reserves all the registers before executing the following lines, then popad returns the registers back to the state it was in before the executing of the assembly statements. So yes while it may work without using pushad/popad you would be a idiot if you didn't reserve/restore the registers before executing your push values.
Departure is correct, and -Bl00d- He wasn't asking for working code, this is why we have leechers. Just explain how it works and how to properly use it....
Now that we know how it works, it should be easy to use if your calling it correctly.Code:void ptCommand(const char* Command) { _asm { //Declares we will work with ASM pushad push Command //Pushes out string to the Stack mov eax, LTClientEXE //Copies EAX(Register) to our Address call eax //Calls the register add esp, 0x4 //Adds 0x4 to ESP popad //Pops all registers } }
-Bl00d- (12-13-2012)