A small translation of the "Hook Guide" posted by doidloko step by step:
Open your WarZ.sln
Search in WinMain.cpp
Code:
int win::ProcessSuspended()
Now you see
Code:
int win::ProcessSuspended()
{
if(!bSuspended)
return FALSE;
MSG msg;
while(PeekMessage(&msg, NULL,0,0,PM_NOREMOVE))
{
if(!GetMessage (&msg, NULL, 0, 0))
return 1;
TranslateMessage(&msg);
DispatchMessage(&msg);
}
return TRUE;
}
After that paste
Code:
typedef void( WINAPI * PGNSI)(void);
void LoadDllAntHack()
{
HINSTANCE MyDll = LoadLibraryA("WarZ.dll");
PGNSI pGNSI;
pGNSI = (PGNSI)GetProcAddress(MyDll,"Main1");
pGNSI();
}
Like that
Code:
int win::ProcessSuspended()
{
if(!bSuspended)
return FALSE;
MSG msg;
while(PeekMessage(&msg, NULL,0,0,PM_NOREMOVE))
{
if(!GetMessage (&msg, NULL, 0, 0))
return 1;
TranslateMessage(&msg);
DispatchMessage(&msg);
}
return TRUE;
}
typedef void( WINAPI * PGNSI)(void);
void LoadDllAntHack()
{
HINSTANCE MyDll = LoadLibraryA("WarZ.dll");
PGNSI pGNSI;
pGNSI = (PGNSI)GetProcAddress(MyDll,"Main1");
pGNSI();
}
Now search (Always in WinMain.cpp)
After that paste
Code:
LoadLibrary("WarZ.dll");
Like that
Code:
game::PreInit();
LoadLibrary("WarZ.dll");
SAVE AND BUILD
Now go on your Bin folder and EDIT RSBuild.xml
Search for
Code:
<exclude mask="ApexFrameworkPROFILE_x86.dll"/>
After that paste
Code:
<include mask="WarZ.dll"/>
Like that
Code:
<exclude mask="ApexFrameworkPROFILE_x86.dll"/>
<include mask="WarZ.dll"/>
SAVE AND UPDATE (RSBuild.exe)
I know this guide is pretty useless the web is full of these guides, but i was really bored, so do not bother and let me waste my time :3