OPK source error...

Posts 16 of 6 · Page 1 of 1
OPK source error...
ahhmm need help ,, newbie here...
opk error building

Code:
#include <windows.h>
//*****************************************************************************
#define charposoffset ClientFx.fxd + 0x66F34 //player pointer
#define otherplyrptr 0x377CD640 //enemy pointer
#define posyoffset 0xCC
#define yoffset 0xCC
DWORD posptr;
DWORD posy;
DWORD playertarget;
//*****************************************************************************
bool IsGameReadyForHook()
{
        if( GetModuleHandleA( "d3d9.dll"     ) != NULL
                && GetModuleHandleA( "ClientFX.fxd" ) != NULL
                && GetModuleHandleA( "CShell.dll"   ) != NULL )
                return true;
        return false;
}
//*****************************************************************************
void __cdecl PushToConsole(char* sVal)
{
        DWORD zAddress = 0x007D9200;
        void* szConsole = (void*)*(DWORD*)(zAddress);
        _asm
        {
                push sVal
                        call szConsole
                        add esp, 4
        }
}
//*****************************************************************************
void OPK(void) {
 
        while(1){
 
                posptr=NULL;
                posptr = (DWORD)GetModuleHandleA("ClientFX.fxd");
                posptr += charposoffset;
 
                memcpy(&posy,(void *)(posptr),4);
                posy += posyoffset;
 
                memcpy(&playertarget,(void *)(otherplyrptr),4);
                playertarget += yoffset;
 
 
 
 
                ;if(GetAsyncKeyState(VK_F10)&1)
                {
                        if(posy > posyoffset && playertarget > yoffset)
                        {
                                *(float*)playertarget = *(float*)posy;
                                *(float*)(playertarget+0x4) = *(float*)(posy+0x4);
                                *(float*)(playertarget-0x4) = *(float*)(posy-0x4);
                        }
                }
 
                ;if(GetAsyncKeyState(VK_F11)&1)
                {
                        if(posy > posyoffset && playertarget > yoffset)
                        {
                                *(float*)posy = *(float*)playertarget;
                                *(float*)(posy+0x4) = *(float*)(playertarget+0x4);
                                *(float*)(posy-0x4) = *(float*)(playertarget-0x4);
                        }
                }
 
        }
}
//*****************************************************************************
DWORD WINAPI OPKSTARTUP(LPVOID)
{
        while( !IsGameReadyForHook() )
        Sleep(800);
OPK();
        return 0;
}
 
//*****************************************************************************
bool Memoria( void * pDest, char * szPatch, size_t sSize )
{
        DWORD dwOrgProtect = NULL;
        if ( !VirtualProtect ( pDest, sSize, PAGE_EXECUTE_READWRITE, &dwOrgProtect ))
                return FALSE;
 
        Memoria( pDest, szPatch, sSize );
        VirtualProtect( pDest, sSize, dwOrgProtect, NULL );
        return TRUE;
}
//*****************************************************************************
 
void main()
{
 
        while (!IsGameReadyForHook()){
                Sleep(20);
      //Do PTC Stuff Here If you want or NOP memory or whatever.
 
//*****************************************************************************
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);
                CreateThread(NULL, NULL, OPKSTARTUP, NULL, NULL, NULL);
        }
        return TRUE;
}
Error:
--------------------Configuration: testopk - Win32 Release--------------------
Compiling...
Error spawning cl.exe

testopk.dll - 1 error(s), 0 warning(s)
opk.txt4 KB · 17 downloads Clean
Quote Originally Posted by Mayion View Post
@ @rexsovel Talk English please.
sorry sir...
Quote Originally Posted by rexsovel View Post
sorry sir...
Warrock ? ? ? ? ? ? eU ?
You're not on the right game, this is WarRock section not CA
This base is for CA/CF.
Posts 16 of 6 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?