Since i have been coding for months, ppl asked me over & over how to code their own 'NoMenu Base' without any Copy & Paste.
This tutorial explains:
1- How all the functions operate.
2- What to include
3- The Sleep method
first we include our windows header file:
Code:
#include <windows.h> // We include our windows header file.
then we include our adresses:
Code:
#define ADR_PLAYERPOINTER0x00
#define ADR_SERVERPOINTER 0x00
Then we make the module, what will include the hacks:
Code:
void source_codes(){ // We define our 'Source Codes' in here.
DWORD *dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
DWORD *dwServerPtr = *(DWORD*)ADR_SERVERPOINTER;
//Hack here
} // Make sure your stay before this line, else it will lead to errors as result.
Then we gonna make our module thread, also called 'HackThread'
Code:
void Module_Thread(){// We define our 'Modules' in here, So it will run the feathurs included into our project.
for(;;){ //for 'nothing' we going to run the following functions:
source_codes(); // We are going to run the 'source codes' module, it will run all the items added into 'source codes'.
} // End the include of our Modules.
Sleep(200); // Prevents the CPU from overrunning.
} // End our Module_Thread.
Then we make our hack start with this code:
Code:
BOOL WINAPI DllMain(HINSTANCE hMODULE,DWORD Basic_Base,LPVOID lpvReserved)
{ // Begin our module running
if(Basic_Base /*Our defention*/ == DLL_PROCESS_ATTACH) // If our dll is attached to a process were are going to run a thread.
{ // Begin our Thread Running
CreateThread(0,0,(LPTHREAD_START_ROUTINE)Module_Thread/*We run our ModuleThread to start the whole process*/,0,0,0);
} // End our Thread Running
return TRUE; // We let the process run over again, if we dont do this, the dll will not work.
} // End our Module Running
in the end it will look like this:
Code:
/*
* Basic Base by AeroMan
* Source coded & guided by AeroMan
* www.mpgh.net
*/
#include <windows.h> // We include our windows header file.
#define ADR_PLAYERPOINTER 0x00
#define ADR_SERVERPOINTER 0x00
void source_codes(){ // We define our 'Source Codes' in here.
DWORD *dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
DWORD *dwServerPtr = *(DWORD*)ADR_SERVERPOINTER;
//Hack here
} // Make sure your stay before this line, else it will lead to errors as result.
void Module_Thread(){// We define our 'Modules' in here, So it will run the feathurs included into our project.
for(;;){ //for 'nothing' we going to run the following functions:
source_codes(); // We are going to run the 'source codes' module, it will run all the items added into 'source codes'.
} // End the include of our Modules.
Sleep(200); // Prevents the CPU from overrunning.
} // End our Module_Thread.
BOOL WINAPI DllMain(HINSTANCE hMODULE,DWORD Basic_Base,LPVOID lpvReserved)
{ // Begin our module running
if(Basic_Base /*Our defention*/ == DLL_PROCESS_ATTACH) // If our dll is attached to a process were are going to run a thread.
{ // Begin our Thread Running
CreateThread(0,0,(LPTHREAD_START_ROUTINE)Module_Thread/*We run our ModuleThread to start the whole process*/,0,0,0);
} // End our Thread Running
return TRUE; // We let the process run over again, if we dont do this, the dll will not work.
} // End our Module Running
this small tut is nothing, all works fine if you write it correctly like 'DllMain'
Only 'D' & 'M' must be big letters.
Goodluck
Hope this answers all your questions