How to code a C++ hack for warrock!I WILL GET PICTURES SOON!
Okay first of all you are going to need Visual C++ 2008 Express Edition. You can get it at the microsoft website or use google. Im not allowed to post links sorry.
First you need to open C++, then go to File>New> Project. A window should appear, click next then under "Application Type" click DLL then click finish.
Go up to Project>Add new item. Another window will appear. Click Header file and type in "addresses".
In here you need to put warrock hack addresses. You can get them off MPGH in the warrock section every time warrock updates.
These addresses are modified when warrock is open and that is how you hack it.
If you click on filenamehere.cpp then you need to type in
These make sure that stdafx.h and addressess.h are included. Addressess.h is where your addressess are.Code:#include "stdafx.h" #include "addressess.h"
You then need to go to addressess.h and type in
These are 2 addresses,the ADR stands for address. The 0x00CB11C8 and 0x00B39BE0 are the actual address. These are changed everytime warrock updates.Code:#define ADR_PLAYERPTR 0x00CB11C8 #define ADR_SERVERPTR 0x00B39BE0
Type in
The OFS stands for offset. This is an offset for the Z axis of the game. It is used for the superjump hack and No fall damage.Code:#define OFS_Z 0x240
Go back over to the filenamehere.cpp and type in
This declares the SuperJump and No fall(No fall damage) and tells the program that they are true/activated. The 1 means true and if it said 0 then it would mean false. So true/false would mean activated/deactivated or on/off.Code:int SuperJump = 1; int NoFall = 1;
We then need to type
The text after the "//" are comments. I wrote these to explain what happens. Under that we need to typeCode:void PlayerHacks(void) { DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPTR; if(dwPlayerPtr != 0){ This defines all the functions(hacks). Under this we type all of our functions(hacks). if(GetAsyncKeyState(VK_CONTROL) &1){ //superjump when u press ctrl if(SuperJump){ // if you press CTRL then... *(float*)(dwPlayerPtr+OFS_Z) = 2000.0F; // Warrock character will jump to 2000 in the Z axis (up) } }
So far we have two hacks, SuperJump and No fall damage. Click on stdafx.h and below "#include <windows.h>" typeCode:if (NoFall) // if no fall then {*(float*)(dwPlayerPtr+OFS_NOFALL) = -35000.0F;} // i think you need to be damaged 35000 to be affected from falling
Click on dllmain.cpp and delete all the code and replace it withCode:void PlayerHacks(void);
After all of that go to File > Save all and then click Build > Build Solution.Code:#include "stdafx.h" void hDllMain(void) { while(true){ PlayerHacks(); Sleep(30); } } BOOL APIENTRY DllMain( HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) { switch (ul_reason_for_call) { case DLL_PROCESS_ATTACH: DWORD dwID1 = 0; HANDLE hThread1 = CreateThread(NULL,0,(LPTHREAD_START_ROUTINE)hDllMain, NULL, NULL,&dwID1 ); CloseHandle(hThread1); break; } return TRUE; }
Your hack will then appear in your visual C++ projects folder. Mine is in my documents >> Visual Studio 2008 >> Projects. Find the folder with your hack. Open it and go to debug. Right click the filenamehere.dll and go to copy. Make a new folder on your desktop named First hack. Paste the .dll file into it and then find an injector from MPGH. Put the injector in the First Hack folder and rename it to the name of your .dll file. Open the injector and run Warrock. Log in and hack! If it doesnt work then you have either coded it wrong or the addressess are out of date! I hope this works for you and if it helps then click the Thanks button and replyI may help you if i can
![]()