Results 1 to 6 of 6
  1. #1
    rexsovel's Avatar
    Join Date
    Nov 2013
    Gender
    male
    Location
    Valencia city, Bukidnon Philippines
    Posts
    13
    Reputation
    10
    Thanks
    1
    My Mood
    Amazed

    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)
    <b>Downloadable Files</b> Downloadable Files
    Last edited by rexsovel; 11-13-2014 at 08:40 AM. Reason: talk english daw

  2. The Following User Says Thank You to rexsovel For This Useful Post:

    clariols07032013 (12-01-2014)

  3. #2
    Mayion's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Location
    Bed
    Posts
    13,504
    Reputation
    4018
    Thanks
    8,372
    My Mood
    Twisted
    @ @rexsovel Talk English please.
    I do not use any type of messenger outside of MPGH.
    Inactive but you can reach me through VM/PM.










     

    Donator - 30 August 2013
    Battlefield Minion - 26 October 2013

    Blackshot Minion - 14 January 2014/16 September 2014
    Minecraft Minion - 7 February 2014/16 September 2014
    WarRock Minion - 23 February 2014
    League of Legends Minion - 21 March 2014

    Minion+ - 15 May 2014
    Other Semi-Popular First Person Shooter Minion - 8 August 2014
    CrossFire Minion - 23 October 2014
    Programming Section Minion - 13 November 2014
    Marketplace Minion - 7 December 2014

    Official Middleman - 7 December 2014 - 27 June 2015
    Moderator - 29 December 2014
    Project Blackout Minion - 10 January 2015
    News Force Interviewer - January 2015
    Steam Games Minion - 21 March 2015
    Dragon Nest Minion - 31 March 2015
    Publicist - April 2015 - 21 September 2015
    Global Moderator - 25 August 2015
    Super User - 13 August 2016



  4. #3
    rexsovel's Avatar
    Join Date
    Nov 2013
    Gender
    male
    Location
    Valencia city, Bukidnon Philippines
    Posts
    13
    Reputation
    10
    Thanks
    1
    My Mood
    Amazed
    Quote Originally Posted by Mayion View Post
    @ @rexsovel Talk English please.
    sorry sir...

  5. #4
    jokerzkie's Avatar
    Join Date
    Jul 2012
    Gender
    male
    Posts
    32
    Reputation
    10
    Thanks
    11
    My Mood
    Cool
    Quote Originally Posted by rexsovel View Post
    sorry sir...
    Warrock ? ? ? ? ? ? eU ?
    2014 Na

  6. #5
    n4n033's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Windows
    Posts
    1,090
    Reputation
    43
    Thanks
    2,425
    My Mood
    Cool
    You're not on the right game, this is WarRock section not CA


    The Only Bests :


    R3d_L!n3(Fares)
    Aeroman (Brent)
    TheCamels8 (Ori)


  7. #6
    I love myself
    나도 너를 사랑해

    Former Staff
    Premium Member
    Jhem's Avatar
    Join Date
    Mar 2012
    Gender
    male
    Location
    167,646,447
    Posts
    5,150
    Reputation
    1220
    Thanks
    7,393
    My Mood
    Stressed
    This base is for CA/CF.

Similar Threads

  1. [Help] Help Zombie OPK Source!
    By ``IM`NATSU in forum WarRock Hack Source Code
    Replies: 15
    Last Post: 02-13-2013, 10:44 PM
  2. [Help] Help Zombie OPK Source!
    By tagzkienet in forum WarRock Hack Source Code
    Replies: 14
    Last Post: 04-10-2012, 08:20 PM
  3. Zombie OPK source ?
    By Killha in forum C++/C Programming
    Replies: 5
    Last Post: 11-25-2010, 02:08 AM
  4. OPK Source
    By AeroMan in forum C++/C Programming
    Replies: 8
    Last Post: 11-29-2009, 07:44 PM
  5. OPK source code
    By Rico760 in forum Combat Arms Hacks & Cheats
    Replies: 15
    Last Post: 08-30-2008, 07:14 PM