Ewwww. Delphi.
:P
K need some info on PushToConsole Methods, As Engine.exe didn't dump correctly for me The old method I was using has outdated addresses and from what I seen now people are using direct addresses..
Credits Gordon for this Method(does not work anymore due to updated addresses)
[highlight=delphi]type
lpSetConsoleVariable = procedure (console: cardinal; szVal: PAnsiChar); cdecl;
RunConsoleCommand_t = function(cmd: PAnsiChar): integer; cdecl;
[/highlight]
...
...
...
Then in Hooked "PresentCallback"
[highlight=delphi]
SetConsoleVariable:= pointer($00484400);
case bChams of
False: SetConsoleVariable($008013F0,'SkelModelStencil 0');
True : SetConsoleVariable($008013F0,'SkelModelStencil -1');
end;[/highlight]
the above is what I use to use, But have seen and tried snippets of a newer method on the forum and this doesn't work either, See below
[highlight=delphi]
procedure Pushit (const PCharCommand: PChar);
asm
PUSH PCharCommand
MOV EAX, $00485DD0//Engine LTC $00484BC0//
CALL EAX
ADD ESP, $00000004
end;
[/highlight]
Then in Hooked "PresentCallback"
[highlight=delphi]
case bChams of
False: Pushit(PChar('SkelModelStencil 0'));
True : Pushit(PChar('SkelModelStencil -1'));
end;[/highlight]
I tried both addresses in "PushIt" but non seem to work, Is it the addresses that are wrong or am i missing something? Maybe something has changed since I last made a hack for Combat arms? Also remember I don't have a working dump of Engine so I can't Analyze the addresses
Any help or point in the right direction would be great...
P.s I do prefer the Gordon Method as it worked before
//Edit Changed to Delphi highlight,
I can see im not going to get much response to this question, Please don't even look at the code I only want to know the method nothing to do with what I language I am coding in.
Last edited by Departure; 02-17-2011 at 09:15 PM.
Ewwww. Delphi.
:P
Last edited by D-Vid the DBag; 02-17-2011 at 01:07 PM.
[IMG]https://i33.photobucke*****m/albums/d55/y_owns_you/D-Vid665.png[/IMG]
Changed it to Delphi highlight, Hopfully its more readable to people who are interested... Anyway the coding Language has nothing to do with the question im asking...
Change this:
[highlight=delphi]procedure Pushit (const PCharCommand: PChar);
asm
PUSH PCharCommand
MOV EAX, $00485DD0//Engine LTC $00484BC0//
CALL EAX
ADD ESP, $00000004
end; [/highlight]
to.
[highlight=delphi]procedure Pushit (const PCharCommand: PChar);
asm
PUSH PCharCommand
MOV EAX, $00485E10
CALL EAX
ADD ESP, $00000004
end;[/highlight]
Thanks steven but I already found out it was still the old address.
Updating Hook? - Coding Help & Discussion - MPGH - MultiPlayer Game Hacking
Member since September 25, 2010
Current Objectives:
- Graduate college with a degree in Computer Science
- Find a decent job in the Computer Science Field
- Learn more programming languages
Looking for Elo Boosting Job - League of Legends
Looking for Bronze -> Gold Jobs
Skype: whatthedream
Departure (02-18-2011)