Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


D3D (Hans) -> Pointer

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
121jirkus
How do I cheat?
Reputation: 0

Joined: 19 Feb 2012
Posts: 7

PostPosted: Tue Jul 31, 2012 9:25 am    Post subject: D3D (Hans) -> Pointer Reply with quote

Hi, I wanted to do it again D3D hack, but I can not define a pointer ..
Hackbase.cpp my code:
Code:
Code:

// -----------------------------------------------------------------------------
// Project : HackBase v1.0
// Author  : Hans211
// Date    : 11 April 2009
//
// A basic D3D framework:
// - D3D menu with folders
// - Optimized d3dfont, right aligned text
// - Works for d3d8 or d3d9  (define it in main.h)
// -----------------------------------------------------------------------------
#include "d3dbase.h"
#include <stdio.h>

#define Base_Pointer     0x6EFFFC
#define Ofs_MovSpeed_1   0xAA8
#define Ofs_MovSpeed_2   0xAA



char   sFPS[20]="xxx Fps";
int     CH_back       = 2;      // 40%

// group states
int      CH_cheats     = 1;
int      CH_weap         = 1;
// item  states
int      CH_stamina     = 1;      // stealth as default
int      CH_fastammo   = 1;
int      CH_fasthealth = 0;
int      CH_fastrepair = 0;
int      CH_fastflag   = 1;
int      CH_nospread   = 1;
int      CH_norecoil   = 1;
int      CH_unlammo     = 1;

// none standard options
char   *opt_Grp[]     = { "+","-" };
char   *opt_OffOn[]   = { "Off","On" };
char   *opt_Stamina[] = { "Off","Stealth","Full" };
char   *opt_Back[]    = { "Off","20%","40%","60%","80%","Solid" };

D3DMenu   *pMenu=NULL;

// Change this to make your own menu
   
void RebuildMenu(void)
{
  pMenu->AddItem("Background"        , &CH_back      , opt_Back, 6);
  pMenu->AddText("Framerate", sFPS);
 
  pMenu->AddGroup("[Open In Game]" , &CH_cheats, opt_Grp);
  if (CH_cheats) {
     pMenu->AddItem("SpeedHack"       , &CH_stamina   , opt_Stamina, 3);
     pMenu->AddItem("Fly"     , &CH_fastammo  , opt_OffOn);
     pMenu->AddItem("Fast health"   , &CH_fasthealth, opt_OffOn);
     pMenu->AddItem("Fast repair"   , &CH_fastrepair, opt_OffOn);
     pMenu->AddItem("Fast flag"     , &CH_fastflag  , opt_OffOn);
  }
  pMenu->AddGroup("[Weapons]", &CH_weap  , opt_Grp);
  if (CH_weap) {
     pMenu->AddItem("No spread"    , &CH_nospread  , opt_OffOn);
     pMenu->AddItem("No recoil"    , &CH_norecoil  , opt_OffOn);
     pMenu->AddItem("Unlimited ammo", &CH_unlammo   , opt_OffOn);
  }
}

// --- simple FPS vars and function
int     FPScounter = 0;
float FPSfLastTickCount = 0.0f;
float FPSfCurrentTickCount;

void FPScheck(char *str, char *format)
{
   FPSfCurrentTickCount = clock() * 0.001f;
   FPScounter++;

   if((FPSfCurrentTickCount - FPSfLastTickCount) > 1.0f) {
       FPSfLastTickCount = FPSfCurrentTickCount;
      sprintf(str,format,FPScounter);
       FPScounter = 0;
   }
}

// Draw a background
void DrawGui(pD3DdeviceX pDevice, DWORD col)
{
   if (CH_back==5)               // solid
      col|=0xff000000;
   else
      col|=CH_back*0x30000000;   // transparency
   DrawBox(pDevice,pMenu->x-3,pMenu->y-2,pMenu->totwidth+6,pMenu->totheight+4  ,col);
   DrawBox(pDevice,pMenu->x-3,pMenu->y-2,pMenu->totwidth+6,pMenu->titleheight+1,col|0xff000000);
}

// called with every EndScene
void DoMenu(pD3DdeviceX pDevice)
{
   if (pMenu==0) {                                    // first time , create the menu
       pMenu = new D3DMenu("== HackersElite.eu ==",100,160);   // title, maxitems,width
      pMenu->visible=1;                              // make it visible
      pMenu->col_title=0xffffffff;                     // change title color to white
   } else {
      FPScheck(sFPS,"%d Fps");
      if (pMenu->noitems==0) RebuildMenu();
      if (pMenu->visible && CH_back) DrawGui(pDevice,0x000000);  // black background
       pMenu->Show(pFont);
      pMenu->Nav();
   }
}


// Seperate thread for making hacks
DWORD WINAPI HACKthread( LPVOID param )
{
    // --- hack loop
   while (1) {
       
      // ..if (CH_stamina)   ....
      // ..
       
      // ..
      // ..
       
      Sleep(50);
    }
   return 0;
}


This is Hans base ..
I want Pointer: Address: 6EFFFC, Offset 1: AA8, Offset 2: AA - and I want to hack on the Speed (Defined in my base)
Please send me here all redone hackbase.cpp
And do not write that I should learn C + +, learn it, but I can not come to this ..
+ Process is TClient.exe
PLEASE!
Back to top
View user's profile Send private message
Obitio
Advanced Cheater
Reputation: 0

Joined: 09 Apr 2012
Posts: 68
Location: null

PostPosted: Tue Jul 31, 2012 10:35 am    Post subject: Reply with quote

Quote:

Please send me here all redone hackbase.cpp

T_T I'm a beginner in c++ .But I wouldn't ask someone else to do my own work.I would ask for examples and try to add it myself. T_T noone is stupid enough to do the work that you should do.
Quote:

And do not write that I should learn C + +, learn it, but I can not come to this ..

1)Learn more c++?
2)Google how to write to a pointer.
3)You might need to get the base address and Readprocessmemory the address and add the offsets.
Quote:

and I want to hack on the Speed (Defined in my base)

Da hell?I don't understand what your trying to say.What do you need help with?
Back to top
View user's profile Send private message
121jirkus
How do I cheat?
Reputation: 0

Joined: 19 Feb 2012
Posts: 7

PostPosted: Tue Jul 31, 2012 11:14 am    Post subject: Reply with quote

pMenu->AddItem("SpeedHack" , &CH_stamina , opt_Stamina, 3);
This is the Speed in my base..

Please help me..Please! Very Happy
Sorry, im from CZ
Back to top
View user's profile Send private message
121jirkus
How do I cheat?
Reputation: 0

Joined: 19 Feb 2012
Posts: 7

PostPosted: Wed Aug 01, 2012 10:07 am    Post subject: Reply with quote

Please help me! Smile
Back to top
View user's profile Send private message
Obitio
Advanced Cheater
Reputation: 0

Joined: 09 Apr 2012
Posts: 68
Location: null

PostPosted: Thu Aug 02, 2012 12:05 pm    Post subject: Reply with quote

121jirkus wrote:
Please help me! Smile

I don't understand what your asking help with?Do you need help with finding the address the pointer points to?Or do you want to add the menu item into your hack but you don't know how to do that?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites