Register for your free account! | Forgot your password?

Go Back   elitepvpers > Shooter > CrossFire
You last visited: Today at 17:42

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Tutorial]How To Create a D3D Base Hack *Very Good! ;)*

Discussion on [Tutorial]How To Create a D3D Base Hack *Very Good! ;)* within the CrossFire forum part of the Shooter category.

Reply
 
Old   #1
 
DODO-CRO's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 227
Received Thanks: 566
Cool [Tutorial]How To Create a D3D Base Hack *Very Good! ;)*

Quote:
Originally Posted by dragonattak(DODO-CRO) View Post
How to create a D3D Hack



Hello everyone, this guide I will explain how to create a D3D hack, I will do for Metin2, but you can do it with anything you want.

Materials needed:

- VC++ 6.0:
- MS DirectX SDK 9.0 (Summer 2004):
- D3D framework per D3D8 e D3D9 (Hans' s base):

Now we prepare the project:
First of all, for those who had not already done so, you need to install VC + + 6.0 and the SDK that you downloaded.
Open VC + + 6.0 and then create a new project for a DLL by going to "File> New> Data Projects> Win32 Dynamic-Link Library> Ok." Project Name is precisely the name of the project, for example, I'll call M2 D3D Hack. There you will open a new window where you choose "An empty DLL project" and press Finish.

Now we import the files into the project by going to the Hans' base "Project> Add to Project> Files ", find the folder of the base of Hans and set the following files one by one:
- D3dbase.h
- D3dbase.cpp
- D3dmenu.h
- D3dmenu.cpp
- Hackbase.cpp
Important: Do not import the files "d3dfont .*"

We prepare the import of the SDK:
Now we turn to import the files and libraries we need to work in D3D. Go to "Tools> Options> Directories tab" us ensure that the parameter "Show directories for" there is "Include Files" and add a new line in the folder "includes" contained in scrtella where you installed the SDK, in my case is: "E:\PROGRAMMI\MICROSOFT DIRECTX 9.0 SDK (SUMMER 2004)\INCLUDE"

Now in "Show directories for" choose "Library Files" and instead of the folder "includes" add the folder "LIB" that in my case here: "E:\PROGRAMMI\MICROSOFT DIRECTX 9.0 SDK (SUMMER 2004)\LIB"


Configure the base for D3D8/D3D9:

Now depending on the game choose between D3D9 or D3D8, in my case I use the D3D8 and then go to edit the file d3dbase.h:
Code:
//#define FOR_D3D8
#define FOR_D3D9
And replace it with:
Code:
#define FOR_D3D8
//#define FOR_D3D9
Now everything is ready and you can test that there are no errors by pressing F7, if built correctly means that we can continue and enter the number of hacks!


We create the functions for the hack:

We must now create the functions for the various hacks that call again.
As an example I will create a function that changes the speed of movement (Metin2). The base pointer is 0x5F29BC (old) while the two are respectively offset 0x10 and 0x5B6 in hex of course.
The first step is to define the various Address / Offsets (do this in just under the include "hackbase.cpp"):
Code:
#define Base_Pointer     0x5F29BC
#define Ofs_MovSpeed_1   0x10
#define Ofs_MovSpeed_2   0x5B6
And this is how we can simply create a function that changes the speed of movement (still in "hackbase.cpp"):
Code:
void MovSpeed(speedVal)
{
    DWORD Addy1 = *(DWORD*)Base_Pointer;  //I read the value of the base pointer
    DWORD Addy1 = *(DWORD*)(addy1+Ofs_MovSpeed_1) + Ofs_MovSpeed_2;  //I read the value of the value of base pointer + the first offset addy + the second offset
    *(DWORD*)Addy1 = speedVal;  //Change the address of the speed with the value "speedVal" which will be defined by using the function
}
We need to create the various options to select multiple speeds, for example, we do so that you can choose the speed from 1 to 4 with a range of "0.5". Then also add a variable that allows us to choose the 'hack must be enabled by default or not.
Code:
char    *opt_MovSpeed[]    = { "Off", "0,0", "1,0", "1,5", "2,0", "2,5", "3,0", "3,5", "4,0" };

int        CH_MovSpeed       = 0;
In this case, I place "CH_Movspeed = 0" so that when you inject the hack is the speed of movement will be set to OFF. If I wanted to set it up as 2.5 I have declared: "CH_Movspeed = 5" because if "Off" is in position 0 of the list, 2.5 is in fifth place.

Add hacks into d3d menu:
Let us then adding the hack menu, to do so you add a new line between existing as:
Code:
pMenu->AddItem("Mov Speed"       , &CH_MovSpeed   , opt_MovSpeed, 9);
Where "Mov Speed" is the text that appears in the menu, CH_MovSpeed is the variable declared previously that contains the state of the hack (enabled, disabled, etc.), opt_MovSpeed are available and the number 9 instead of options.

Now we adapt the function created above to our options:
Code:
void MovSpeed(speedVal)
{
    DWORD Addy1 = *(DWORD*)Base_Pointer;
    DWORD Addy1 = *(DWORD*)(addy1+Ofs_MovSpeed_1) + Ofs_MovSpeed_2;
    *(long*)Addy1 = (16226 + (speedVal * 0,5 * 60));
}
Doing it this way, if we set up the hack for example "0.0" which is the number one option we have: 15256 + (1 x 0.5 x 60) = 16,256 which is the default speed of Metin2.
If, however, will be set to "2.5" is the fifth option we have: 15256 + (5 x 0.5 x 60) = 16,406 and so on ...

We implement the functions in the menu:

Now we're almost done, we just attach our function with the menu. To do this we always go in "hackbase.cpp" and see:
Code:
// Seperate thread for making hacks
DWORD WINAPI HACKthread( LPVOID param )
{
    // --- hack loop
	while (1) {
 
		// ..if (CH_stamina)   ....
		// ..
 
		Sleep(50);
    }
	return 0;
}
Change this function:
Code:
// Seperate thread for making hacks
DWORD WINAPI HACKthread( LPVOID param )
{
    // --- hack loop
	while (1) {
 
		if (CH_MovSpeed != 0)
                {
                    MovSpeed(CH_MovSpeed);
                }
 
		Sleep(50);
    }
	return 0;
}
We've finished! To release the hack going on "Build> Set Active Project Configuraton" and choose "Win32-Release". Finally, press F7 and find our DLL into the folder of our project!


Now it's up to you to try to understand everything and how to create something more advanced. For the functions of the methods I used some 'orthodox hurry but you can use the method that will seem more appropriate.
PS, I did this on Metin2, because it's easier, but you can do this on all games. Enjoy and feel free to press Thanks!
DODO-CRO is offline  
Thanks
29 Users
Old 05/20/2011, 23:39   #2
 
*Sn@k3>?'s Avatar
 
elite*gold: 0
Join Date: Mar 2011
Posts: 956
Received Thanks: 375
cOPY FROM **** That#s esy to copy i don't give a thx for copy
*Sn@k3>? is offline  
Thanks
2 Users
Old 05/20/2011, 23:41   #3
 
DODO-CRO's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 227
Received Thanks: 566
Quote:
Originally Posted by Jonas^ View Post
cOPY FROM **** That#s esy to copy i don't give a thx for copy
Huh? Maybe I posted this here, because I posted this on MP**? -.-'
DODO-CRO is offline  
Thanks
2 Users
Old 05/20/2011, 23:41   #4
 
KingLiri's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 1,841
Received Thanks: 348
hmm....

nice work but i dont know of it have somethink doing with Crossfire

PS: i know my english is bed ^^
-----------------

ist ja ein Tut wie man eine Hack macht, aber das muss ja nicht in der Crossfire section stehen o.O ist ja was Allgemeines
KingLiri is offline  
Old 05/20/2011, 23:46   #5
 
DODO-CRO's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 227
Received Thanks: 566
Quote:
Originally Posted by KingLiri View Post
hmm....

nice work but i dont know of it have somethink doing with Crossfire

PS: i know my english is bed ^^
-----------------

ist ja ein Tut wie man eine Hack macht, aber das muss ja nicht in der Crossfire section stehen o.O ist ja was Allgemeines
Thanks, and it have something with Crossfire. You can make D3D hacks (Like VIP hack maybe? I have my private VIP hack - made by me with D3D Base. ) for Crossfire.

PS; Your English isn't so bad.
DODO-CRO is offline  
Thanks
1 User
Old 05/21/2011, 00:17   #6
 
sick0ry's Avatar
 
elite*gold: 1
The Black Market: 109/0/0
Join Date: Aug 2010
Posts: 5,533
Received Thanks: 1,494
I'll try it, but what is the first DL Link?
sick0ry is offline  
Thanks
1 User
Old 05/21/2011, 00:25   #7
 
DODO-CRO's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 227
Received Thanks: 566
Quote:
Originally Posted by sicK- View Post
I'll try it, but what is the first DL Link?
Try it.
EDIT: Fixed it.

PS: I go finish my private VIP hack and then I go to bed, so I will not be able to help you until tomorrow. Good luck!
DODO-CRO is offline  
Thanks
2 Users
Old 05/21/2011, 00:29   #8
 
KingLiri's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 1,841
Received Thanks: 348
i dont know

but is this the same just like your first DL?
KingLiri is offline  
Old 05/21/2011, 00:34   #9
 
DODO-CRO's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 227
Received Thanks: 566
Quote:
Originally Posted by KingLiri View Post
i dont know

but is this the same just like your first DL?
No it's not, download link that you have is C++ 2010 Express. My is C++ v6 Standard Edition,
DODO-CRO is offline  
Thanks
1 User
Old 05/21/2011, 00:40   #10
 
KingLiri's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 1,841
Received Thanks: 348
Is there ever ben a freewai version for VC++ 6?
KingLiri is offline  
Old 05/21/2011, 06:59   #11
 
BestOfElite's Avatar
 
elite*gold: 33
Join Date: May 2010
Posts: 3,240
Received Thanks: 1,960
Wow nice thank you ill try it
BestOfElite is offline  
Old 05/21/2011, 09:24   #12
 
eph0x's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 2,585
Received Thanks: 1,151
This is WarRock you know?!
eph0x is offline  
Old 05/21/2011, 10:22   #13
 
elite*gold: 0
Join Date: Dec 2010
Posts: 842
Received Thanks: 147
Looks good Niice work
ѕωαg is offline  
Old 05/21/2011, 10:41   #14
 
DODO-CRO's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 227
Received Thanks: 566
Quote:
Originally Posted by BestOfElite View Post
Wow nice thank you ill try it
Your welcome, good luck!

Quote:
Originally Posted by NewYorkReload View Post
Looks good Niice work
Thanks!
DODO-CRO is offline  
Thanks
2 Users
Old 05/21/2011, 10:48   #15
 
BestOfElite's Avatar
 
elite*gold: 33
Join Date: May 2010
Posts: 3,240
Received Thanks: 1,960
Quote:
Originally Posted by DODO-CRO View Post
Your welcome, good luck!


Thanks!
cant download VC++ 6.0
and the other must i register me?
BestOfElite is offline  
Reply


Similar Threads Similar Threads
[Tutorial] Create Your NPC
11/20/2018 - Shaiya PServer Guides & Releases - 67 Replies
Hey guys, heres a Video Tutorial to help you create your NPC. Heres a few side notes I forgot to put in it. I used the NPC model number 42 but you can use the one you want, but dont use # 1 cause its a dog and hes really hard to click on, I had to redo the tutorial cause of that dog ;p... Pressing the Thanks button will keep me making Video Tutorials, but if I dont get enough thanks I'll end up removing them... I will remake the Updater one when I get the chance, I just got sick...
[Lua Tutorial] PSP Game create
12/31/2012 - Consoles - 13 Replies
Hallo Leute, Ich dachte mir mal für die jenigen die schon immer mal ein Programm / Spiel selbst Coden wollen ist das die Chance! Ich persönlich "programmiere" LUA für die PSP seit des Releases des LUAPlayer für die Sony PSP. LUA ist eine Scriptsprache, was den Vorteil hat, dass man seinen Code nicht kompilieren muss, d.h. nicht in Maschinencode umwandeln oder eben für das Gerät verständlich machen muss. Zudem ist LUA sehr einfach zu erlernen und gibt auch Leuten eine Chance, die noch...
[Video Tutorial]Create a 5165 Server Pretty Good
03/20/2011 - CO2 PServer Guides & Releases - 3 Replies
well watch the video 2 see how to create and the downloads will be in the youtube video discription The link: YouTube - How to make an conquer online private server FULLY WORKING THANKS FOR THANKING ME LOLOLOLLOOL please thank me
Create Accounts With AOL... (Esp/Eng Tutorial)
08/27/2010 - Dekaron Exploits, Hacks, Bots, Tools & Macros - 8 Replies
At First You Need To Create A Free AOL Account. Primero Necesitas Crear Una Cuenta AOL Gratis. In English: http://img132.imageshack.us/img132/7914/aolenglis hoa0.png https://my.screenname.aol.com/_cqr/login/login.ps p?sitedomain=sns.webmail.aol.com&lang=en&l ocale=us&authLev=0&siteState=ver%3a4|rt%3a STANDARD|ac%3aWS|at%3aSNS|ld%3awebmail.aol.com|uv% 3aAOL|lc%3aen-us|mt%3aAIM|snt%3aScreenName&off erId=mail-first-en-us&seamless=novl
[Tutorial] Create characters with any name
04/17/2009 - General Gaming Discussion - 1 Replies
https://sites.google.com/site/rosecheats/tutorials /creating-characters-with-any-name Feedback is always welcome. Contact address is available on the website. You can also just PM me on this website or reply in this thread. Before you reply though, please, actually read the whole thing.



All times are GMT +1. The time now is 17:44.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.