Thumbs downOld Console Command Method Gone?

Posts 1–15 of 16 · Page 1 of 2
Old Console Command Method Gone?
Wow can't believe RunConsoleCommands or ie (PTC) don't work anymore..
Guy's how to we get them working?

Code:
#include <windows.h>

bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll"     ) != NULL 
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL 
&& GetModuleHandleA( "CShell.dll"   ) != NULL )
return true;
return false;
}
void __cdecl PushToConsole( const char* szCommand )
{
DWORD *LTClient = ( DWORD* )( 0x37832ED0 );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );      
__asm
{
push szCommand;
call CONoff;
add esp, 4;
}
}	
void main()
{
while(true)
{
PushToConsole("ShowFPS 1");
}
}

DWORD WINAPI dwHackThread(LPVOID)
{
while( !IsGameReadyForHook() )
Sleep(100);
main();
return 0;
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL);
}
return TRUE;
}
has latest LT Client but nothing in game works...
use code tags it drives me crazy when people paste code without code tags
Quote Originally Posted by kibbles18 View Post
use code tags it drives me crazy when people paste code without code tags

........................
Dude This Is A Very Very Very Old, Because U Can Not Download A Newer Bases?
Quote Originally Posted by S0aD View Post
Dude This Is A Very Very Very Old, Because U Can Not Download A Newer Bases?
Well all the new bases have all menu's and d3d alot of advanced stuff.. i wanted to start back on the basic's ;|
any suggestions?
Quote Originally Posted by GameArena View Post
Well all the new bases have all menu's and d3d alot of advanced stuff.. i wanted to start back on the basic's ;|
any suggestions?
U Need A HotKey Bases? Use Te Search Bar
(Menu D3D Bases Is Easy To Make Work Bro)
well pushtoconsole isnt the 'basics'. i would start with warrock and look at the hack sources there
the engine ltc is 0x485E00
You need to hook an internal D3D function of the game (ie. PresentScene, EndScene) like NOOB said. And if you know loops and functions (basic c++), then menu bases are simple
hmm maybe im wrong but isn't there a new command for this? wich is;

void WINAPIV hkRunConsoleCommand( const char* cmd )
{
_asm
{
PUSH cmd
MOV EAX, 0x485E10
CALL EAX
ADD ESP, 0x4
}
}
note: i do not own any credits from this code.
Quote Originally Posted by anaestheist View Post
hmm maybe im wrong but isn't there a new command for this? wich is;



note: i do not own any credits from this code.
KKKKKKKK
This Metod Is Old, Not Working
Quote Originally Posted by NOOB View Post
Hackshield checks where console commands are called from so I would advise you to call it from endscene or present.

http://www.mpgh.net/forum/207-combat...ml#post3030792
Wow didn't know that ty
Quote Originally Posted by _Fk127_ View Post
You need to hook an internal D3D function of the game (ie. PresentScene, EndScene) like NOOB said. And if you know loops and functions (basic c++), then menu bases are simple
What menu base would you guys recommend that i start with? i've seen a few out there
combined base v3 (;


[highlight=asm]
; this is for 32bit 64bit below
mov eax, LTC
mov edx, {eax+208h}
push Command
call edx
sub esp, 4h
add esp, 8h
[/highlight]

this should work., replace the '{''}' with '['']', the highlighter got problems......

HERE IS 64bit
[highlight=asm]
; this is for 64bit 32bit above
mov rax, LTC
mov rdx, {rax+208h}
push Command
call rdx
sub rsp, 4h
add rsp, 8h
[/highlight]
Posts 1–15 of 16 · Page 1 of 2

Post a Reply

Tags for this Thread

None

Talk with us