Is this method patched or is it just fail coding?

Posts 1–15 of 16 · Page 1 of 2
Is this method patched or is it just fail coding?
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* )( 0x3778BFB0 );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
__asm
{
push szCommand;
call CONoff;
add esp, 4;
}
}	
void main()
{
while(true)
Sleep(1);
{
//hacks
}
}
DWORD WINAPI dwHackThread(LPVOID)
{
while( !IsGameReadyForHook() )
Sleep(1);
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;
}
Credits to CN, /

It always disconnects in game, it didn't disconnect yesterday but it started to do so today.. Any ideas on how to improve this?
Read the sticky...

There is a reason as to why its there.
Quote Originally Posted by CodeDemon View Post
Read the sticky...

There is a reason as to why its there.
Lmao...fail, never mind I see the problem..
Quote Originally Posted by HiddenoO View Post
More specific, please.
Its right there in giant letters at the top of the page READ BEFORE POSTING: WE DON'T NEED ANYMORE OF THE FOLLOWING QUESTIONS... your answer is in that thread.
Quote Originally Posted by HiddenoO View Post
Lmao...fail, never mind I see the problem..
Quote Originally Posted by CodeDemon View Post
Its right there in giant letters at the top of the page READ BEFORE POSTING: WE DON'T NEED ANYMORE OF THE FOLLOWING QUESTIONS... your answer is in that thread.
lol good to see the problem solved anyway back to coding some more
Quote Originally Posted by CodeDemon View Post
Its right there in giant letters at the top of the page READ BEFORE POSTING: WE DON'T NEED ANYMORE OF THE FOLLOWING QUESTIONS... your answer is in that thread.
Oh, and ya one more question..Is the ptc method i'm using patched?
*cough
old LTC address

and code demon isnt that way ptc command patched?
READ MY SIG (not to be mean just do it)
i would have to press numpad 0 for 2 seconds to turn on if i did ur sig O.o
That LTClient Address is a spy!
Quote Originally Posted by koolwrench View Post
i would have to press numpad 0 for 2 seconds to turn on if i did ur sig O.o
No - you are wrong. It would turn on as quickly as possible, then when disabled, it would have a holdoff time of 0.2 seconds.

But the worst thing is that it uses a Sleep statement in a single thread that could probably be doing other things. You might want to find a way to ditch the sleep statement, or create more threads.
Quote Originally Posted by HL-SDK View Post
No - you are wrong. It would turn on as quickly as possible, then when disabled, it would have a holdoff time of 0.2 seconds.

But the worst thing is that it uses a Sleep statement in a single thread that could probably be doing other things. You might want to find a way to ditch the sleep statement, or create more threads.
No- you are wrong. It is behind Learn = true; which when it is activated.
Haha, sorry. I should have read your useless signature but I couldn't take the time to. It isn't that I am a slow reader or anything, it is just very trivial code. I was tripped up.
Code:
bool solved = true
Quote Originally Posted by Drake4 View Post
Code:
bool solved = true
Code:
bool solved = true;
only declares it. you must add the function
Code:
if(GetAsyncKeyState(VK_CONTROL)<0){
if(solved) {
PushToConsole("SolveQuestion 0");
solved = false;
}else{
PushToConsole("SolveQuestion 1");
solved = true;
}
}
Or you can make it an auto-on

Code:
PushToConsole("SolveQuestion 1");
HEHE JOKES. LOLCODE

Code:
lol solved = laugh;

if(choke(VK_CONTROL)<0){
if(solved) {
lmfao("SolveQuestion");
solved = cough;
}else{
lmfao("SolveQuestion"):
solved = laugh;
}
}
Posts 1–15 of 16 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us