[Tuturial] Create A D3D hack for warrock!

05/05/2009 12:53 w00tare#1
Download this first ; [Only registered and activated users can see links. Click Here To Register...]

U HAVE TO FOLLOW MY TUT , HOW TO SETUP SDK SUM ENZ.

This is only to learn, The CLEAN SOURCE is outdated, U could use my released source but its a small different!

CREDITS : XTREEMPJE

Adding Addies
now i gonna explain how u add a'n addie.
go to : ///////////////////////////////////////////////// Addies Here!
u will see a'n example :


Code:
#define yourhack_Addie 0x000000
Lets add No Respawn wait :


Code:
#define yourhack_Addie 0x259182D
#define yourhack_Addie 0x12D8FAC
now go to the bool system.
Lets bool spawn :


Code:
bool spawn = false;
now below the bool system u will see highlight[2] = {1,0}
if you add a string you will need to change the [2] to [3] and the {1,0,0} to {1,0,0}

Lets add a spawnstring :


Code:
char spawnstring[20] = {NULL};

were done at this part. take your scrollbutton to the middle.
you will see this in the CH_menu:


Code:
sprintf(chamsstring, "Chams %s",(CH_chams ? "ON" : "OFF"));

just copy it and edit the chamsstring to your spawnstring and the CH_chams to your bool ( spawn ).
Example :

Code:
sprintf(Spawnstring, "Spawn %s",(spawn ? "ON" : "OFF"));

now below the sprintf's u see :


Code:
if(highlight[1]==1)
                   m_pFont_INFO->DrawText(15.0f, 30.0f, textRed, chamsstring);
                  else
                   m_pFont_INFO->DrawText(15.0f,30.0f, textPurple, chamsstring);

Just copy it and paste it again , change the [1] to [2] and the 2x 30's to 40.
Example :


Code:
if(highlight[2]==1)
                   m_pFont_INFO->DrawText(15.0f, 40.0f, textRed, spawnstring);
                  else
                   m_pFont_INFO->DrawText(15.0f,40.0f, textPurple, spawnstring);

scroll a bit down and you will see :


Code:
if(GetAsyncKeyState(VK_UP)&1)
            {
                for(int i=0; i < 2; i++)      /////add +1 to menu here ,change the 2
                {
                    if (highlight[i] == 1)
                    {
                        int a = i-1;

                        if(a < 0)
                            break;

                        else
                        {
                            highlight[a]=1;
                            highlight[i]=0;
                            break;
                        }
                    }
                }
            }

            if(GetAsyncKeyState(VK_DOWN)&1)
            {
                for(int i=0; i < 2; i++)   //////same here change the 3 to +1 of menu
                {
                    if (highlight[i] == 1)
                    {
                        int a = i+1;

                        if(a > 1)    ////amount in the menu goes here ,change the 2
                            break;

                        else
                        {
                            highlight[a]=1;
                            highlight[i]=0;
                            break;
                        }
                    }
                }
            }

Everytime you add a cheat you need to change the :

Code:
for(int i=0; i < 2; i++)
to 
for(int i=0; i < 3; i++)
you need to do this twice!

and :

Code:
if(a > 1)
to 
if(a > 2)


now scroll down untill u see Activate hacks on/off here.

copy :

Code:
if(highlight[1] == 1 && (GetAsyncKeyState(VK_RIGHT)&1))
                 CH_Chams = !CH_Chams;

and paste it again + change the CH_chams to your bool ( spawn ) + change the [1] to [2]
Example :


Code:
if(highlight[2] == 1 && (GetAsyncKeyState(VK_RIGHT)&1))
                 Spawn = !Spawn;

Your menu is done now!, now add the code to make the cheat working
Scroll down untill u see Make the cheat working!

Add :

Code:
;if (tSpawn);
{
long t=0;
unsigned long Protection;
VirtualProtect((void*)Spawn_Addie1, sizeof(t), PAGE_READWRITE, &Protection);
memcpy((void*)Spawn_Addie1, &t , sizeof(t));
VirtualProtect((void*)Spawn_Addie1, sizeof(t), Protection, 0);

VirtualProtect((void*)Spawn_Addie2, sizeof(t), PAGE_READWRITE, &Protection);
memcpy((void*)Spawn_Addie2, &t , sizeof(t));
VirtualProtect((void*)Spawn_Addie2, sizeof(t), Protection, 0);
}

long = WriteAlong ( memory )
t=0; = the value
05/07/2009 05:48 raider3119#2
Code:
------ Build started: Project: TatniumD3D, Configuration: Debug Win32 ------
Linking...
d3d8.obj : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification
d3d8dev.obj : error LNK2019: unresolved external symbol "public: long __thiscall CD3DFont::RestoreDeviceObjects(void)" (?RestoreDeviceObjects@CD3DFont@@QAEJXZ) referenced in function "public: long __thiscall CD3DManager::Initialize(void)" (?Initialize@CD3DManager@@QAEJXZ)
d3d8dev.obj : error LNK2019: unresolved external symbol "public: long __thiscall CD3DFont::InitDeviceObjects(struct IDirect3DDevice8 *)" (?InitDeviceObjects@CD3DFont@@QAEJPAUIDirect3DDevice8@@@Z) referenced in function "public: long __thiscall CD3DManager::Initialize(void)" (?Initialize@CD3DManager@@QAEJXZ)
d3d8dev.obj : error LNK2019: unresolved external symbol "public: __thiscall CD3DFont::CD3DFont(char *,unsigned long,unsigned long)" (??0CD3DFont@@QAE@PADKK@Z) referenced in function "public: long __thiscall CD3DManager::Initialize(void)" (?Initialize@CD3DManager@@QAEJXZ)
d3d8dev.obj : error LNK2019: unresolved external symbol "public: long __thiscall CD3DFont::DeleteDeviceObjects(void)" (?DeleteDeviceObjects@CD3DFont@@QAEJXZ) referenced in function "public: long __thiscall CD3DManager::PreReset(void)" (?PreReset@CD3DManager@@QAEJXZ)
d3d8dev.obj : error LNK2019: unresolved external symbol "public: long __thiscall CD3DFont::InvalidateDeviceObjects(void)" (?InvalidateDeviceObjects@CD3DFont@@QAEJXZ) referenced in function "public: long __thiscall CD3DManager::PreReset(void)" (?PreReset@CD3DManager@@QAEJXZ)
d3d8dev.obj : error LNK2019: unresolved external symbol "public: long __thiscall CD3DFont::DrawTextA(float,float,unsigned long,char *,unsigned long)" (?DrawTextA@CD3DFont@@QAEJMMKPADK@Z) referenced in function "public: virtual long __stdcall hkIDirect3DDevice8::EndScene(void)" (?EndScene@hkIDirect3DDevice8@@UAGJXZ)
.\Debug/TatniumD3D.dll : fatal error LNK1120: 6 unresolved externals
Build log was saved at "file://c:\Documents and Settings\Administrator\Desktop\D3D-Emptya\Debug\BuildLog.htm"
TatniumD3D - 7 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
This is what I got when I tried to compile.
I really don't get it.
05/07/2009 19:37 w00tare#3
It doesnt matter this is outdated..
05/08/2009 15:49 pLaYbOy1995#4
123412341234
05/08/2009 17:30 w00tare#5
lol what you mean
05/09/2009 22:45 TheGerman#6
You don't may have an Video-Tutorial? I just understand crap :p Sry, but I'm Noob-Coder, never coded a Hack xD
05/11/2009 20:48 Rikkami#7
Yop a Video TuT will be nice
05/14/2009 14:22 computerkoenig#8
Hat jemand au neue Hacks alle wurden gesperrt aber ich habe schon wieder Hacker gesehen HEUTE PLS sagt mir was wegn neuen Hacks ICQ: 429105643 oder E-Mail: [Only registered and activated users can see links. Click Here To Register...]
05/20/2009 17:17 w00tare#9
COmputer stop spamming, Yeah well i quited coding for warrock soz!
05/21/2009 09:36 derahlemer#10
Nice from you! I could think in the next time a make new hacks!
05/31/2009 14:00 barking6120#11
thx dude :)
06/02/2009 10:24 Undelete#12
Ich fersuche mal einen zu amchen!
06/04/2009 14:48 Alex45#13
ey hat jemand warrock hack der geht?
06/04/2009 14:56 desto21#14
Quote:
Originally Posted by TheGerman View Post
You don't may have an Video-Tutorial? I just understand crap :p Sry, but I'm Noob-Coder, never coded a Hack xD
Der hack geht so du tipps in hack name des metins ein

und der zeigt kornidaten wo der ist

aber

der kann nur die anzeigen die auch wirklich in der map

zu finden sind^^:mofo:
06/13/2009 23:50 grillen123ja#15
o idiot none help here and i think he say old thing i need c++ now i think and then i need other codes and everything owww i hate this