 |
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
wolfguardiann Newbie cheater
Reputation: 0
Joined: 09 Mar 2011 Posts: 13
|
Posted: Wed Mar 09, 2011 8:36 pm Post subject: Help with C++using CE [read] |
|
|
well i want to code a program in C/C++ that , in game , shows my health and mana (firstly)
what do i have to acctually do ? idk even where to start , all i know , is that , the game im trying to do his is n online game, and that , in order to make the hp and mana to be shown on the CMD ( as its c/c++ ) i need the game adresses.
u cant make false nunbers and say " ah this is myhealth" no , i want to pick in my game the Health and mana adresses , and put it in a code of C/C++ to show both there . if someone can help me whit that i would love!!!
TY for the support, happy hacking!
|
|
Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
|
Back to top |
|
 |
wolfguardiann Newbie cheater
Reputation: 0
Joined: 09 Mar 2011 Posts: 13
|
Posted: Wed Mar 09, 2011 8:57 pm Post subject: |
|
|
slovach wrote: | Moving to general programming and please don't tag your shit [READ], i
|
sorry ,as the title have <maxlengh> i cant type the rest there...............thats why the read..........
but , theproblem stills , i saw the links but , whaere should i start?
|
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8586 Location: 127.0.0.1
|
Posted: Wed Mar 09, 2011 9:11 pm Post subject: |
|
|
Pick a programming language you wish to learn. Your best choice for this topic is C++ since it is the most covered language with similar things to what you want to do. Simply put, it's not going to be something you will have done in a day, a week, or probably even a year if you have no idea what you are doing already.
Expect it to take time and expect to actually have to try and learn.
_________________
- Retired. |
|
Back to top |
|
 |
wolfguardiann Newbie cheater
Reputation: 0
Joined: 09 Mar 2011 Posts: 13
|
Posted: Wed Mar 09, 2011 9:15 pm Post subject: |
|
|
Wiccaan wrote: | Pick a programming language you wish to learn. Your best choice for this topic is C++ since it is the most covered language with similar things to what you want to do. Simply put, it's not going to be something you will have done in a day, a week, or probably even a year if you have no idea what you are doing already.
Expect it to take time and expect to actually have to try and learn. |
i understood, but , to make the hp and mana appear , i will need the functions that vou send up there on the links , got it , but , would happen if u or someone have just a base , so i can understand , pick the base , and code my own ?
i wouldnt like acctually a step-by-step fistly cuz noone will do it , only if its on good mood,
all i want is to my hp and mana show on the cmd prompt ( cu z ill code on C/c++)((both are equal , but only some comands are name changed)).
|
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8586 Location: 127.0.0.1
|
Posted: Wed Mar 09, 2011 10:00 pm Post subject: |
|
|
wolfguardiann wrote: |
i understood, but , to make the hp and mana appear , i will need the functions that vou send up there on the links , got it , but , would happen if u or someone have just a base , so i can understand , pick the base , and code my own ?
|
You need to learn the language you are programming in first before you even begin writing things like this. Simply put go and study the language, learn how to use it, then come back to things like this.
wolfguardiann wrote: |
all i want is to my hp and mana show on the cmd prompt ( cu z ill code on C/c++)((both are equal , but only some comands are name changed)). |
C and C++ are not "equal". And certainly not just 'some command names changed'.
_________________
- Retired. |
|
Back to top |
|
 |
wolfguardiann Newbie cheater
Reputation: 0
Joined: 09 Mar 2011 Posts: 13
|
Posted: Wed Mar 09, 2011 10:12 pm Post subject: |
|
|
Wiccaan wrote: | wolfguardiann wrote: |
i understood, but , to make the hp and mana appear , i will need the functions that vou send up there on the links , got it , but , would happen if u or someone have just a base , so i can understand , pick the base , and code my own ?
|
You need to learn the language you are programming in first before you even begin writing things like this. Simply put go and study the language, learn how to use it, then come back to things like this.
wolfguardiann wrote: |
all i want is to my hp and mana show on the cmd prompt ( cu z ill code on C/c++)((both are equal , but only some comands are name changed)). |
C and C++ are not "equal". And certainly not just 'some command names changed'. |
well tbh , i program using C , is this possible to program on C? cuz , C++ i dont know much... but , C i do know .
is this posible to do using C then ? as vog gavethe links there , theese can be used on C to make whati wish?
|
|
Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Wed Mar 09, 2011 10:47 pm Post subject: |
|
|
the win32 api is C, so if you understood C then you wouldn't be here asking.
|
|
Back to top |
|
 |
wolfguardiann Newbie cheater
Reputation: 0
Joined: 09 Mar 2011 Posts: 13
|
Posted: Wed Mar 09, 2011 11:14 pm Post subject: |
|
|
slovach wrote: | the win32 api is C, so if you understood C then you wouldn't be here asking. |
iknow , i know, but , all i want is an " HOw" can i make that , give me the code (or at least what comands i need to use , so i can build my hp and mana thing...)
im here askig for help , not to make enemies.... all i want is what codes , when , and how i use them , if it take too much to write, ok , say that it take too much , ill wait, after u did , put it here with explanation that are usefull to know .
all i want is a simple thing , ima a newb ok , but , everyone starts from here .... make my day please... i just need help...
|
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8586 Location: 127.0.0.1
|
Posted: Wed Mar 09, 2011 11:15 pm Post subject: |
|
|
Possible yes, but as slov said if you do program at all you wouldn't be hear asking a fairly basic question like that. Actually knowing a language, and knowing how to (say print to a console) is two entirely different things. As I suggested, you should dig deeper into the language first before attempting things like this.
_________________
- Retired. |
|
Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Thu Mar 10, 2011 1:00 am Post subject: |
|
|
wolfguardiann wrote: | slovach wrote: | the win32 api is C, so if you understood C then you wouldn't be here asking. |
iknow , i know, but , all i want is an " HOw" can i make that , give me the code (or at least what comands i need to use , so i can build my hp and mana thing...)
im here askig for help , not to make enemies.... all i want is what codes , when , and how i use them , if it take too much to write, ok , say that it take too much , ill wait, after u did , put it here with explanation that are usefull to know .
all i want is a simple thing , ima a newb ok , but , everyone starts from here .... make my day please... i just need help... |
I gave you the necessary functions in the first reply
|
|
Back to top |
|
 |
wolfguardiann Newbie cheater
Reputation: 0
Joined: 09 Mar 2011 Posts: 13
|
Posted: Thu Mar 10, 2011 11:17 am Post subject: |
|
|
slovach wrote: | wolfguardiann wrote: | slovach wrote: | the win32 api is C, so if you understood C then you wouldn't be here asking. |
iknow , i know, but , all i want is an " HOw" can i make that , give me the code (or at least what comands i need to use , so i can build my hp and mana thing...)
im here askig for help , not to make enemies.... all i want is what codes , when , and how i use them , if it take too much to write, ok , say that it take too much , ill wait, after u did , put it here with explanation that are usefull to know .
all i want is a simple thing , ima a newb ok , but , everyone starts from here .... make my day please... i just need help... |
I gave you the necessary functions in the first reply |
i understood that the base is those codes , but , how can i start whitout help ?
its like giving a book of japanese to a kid of 6 old , she will look at all that and will look to u whit an ass-face and will say" wth i do with this? can u help with that ?"
i want a base IN code , so i can just change what i need and then ill try to make , if u dont want, dont need explanations , ill jsut google and ok , but i need a base .
|
|
Back to top |
|
 |
AhMunRa Grandmaster Cheater Supreme
Reputation: 27
Joined: 06 Aug 2010 Posts: 1117
|
Posted: Thu Mar 10, 2011 11:24 am Post subject: |
|
|
To get your base start with CE, scan your program find your address offsets, take those offsets into C/C++ and make your program.
_________________
<Wiccaan> Bah that was supposed to say 'not saying its dead' lol. Fixing >.> |
|
Back to top |
|
 |
wolfguardiann Newbie cheater
Reputation: 0
Joined: 09 Mar 2011 Posts: 13
|
Posted: Thu Mar 10, 2011 1:07 pm Post subject: |
|
|
AhMunRa wrote: | To get your base start with CE, scan your program find your address offsets, take those offsets into C/C++ and make your program. |
thats the help i was trying to ask for , but , i alredy knew thati would need the adresses offsets
like,
1-step
(THIS IS AN EXAMPLE JUST FOR U UNDERSTAND!!!)
the adress offset rsponsable for Pinball 3D score is "01050017c"
so the offsets would be "0x01050017c" right , this i know .
2-step
put this adress offset on C++
3-step
Starting coding .
im stuck on step 3 , i know what codes to use , cuz he gave me the links ,ok , but , i dont know how to use them IN/TO code this thing i want , got it ?
i need help to Code , not for find the adress , i did the tutorial of CE , course , like everyone did once , but im stuck on WHAT to use , HOW to use the codes that he gave up there on the 2 links.
|
|
Back to top |
|
 |
AhMunRa Grandmaster Cheater Supreme
Reputation: 27
Joined: 06 Aug 2010 Posts: 1117
|
Posted: Thu Mar 10, 2011 1:15 pm Post subject: |
|
|
Code: | BOOL WINAPI ReadProcessMemory(
__in HANDLE hProcess,
__in LPCVOID lpBaseAddress,
__out LPVOID lpBuffer,
__in SIZE_T nSize,
__out SIZE_T *lpNumberOfBytesRead
);
| hProcess would be the handle of the process you are working with
lpBaseAddress is the address you are reading from your health and mana
lpBuffer is pointer to the buffer recieving
nSize is the size to read
lpNumberOfBytesRead into the buffer
So an example would be
Code: |
HWND hwnd = FindWindow("Pinball",NULL);
if (hwnd)
{
DWORD proc_id;
GetWindowThreadProcessId(hwnd, &proc_id);
HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, proc_id);
ReadProcessMemory(hProcess, (void *) lpAddress, buf, len, 0);
CloseHandle(hProcess);
}
|
_________________
<Wiccaan> Bah that was supposed to say 'not saying its dead' lol. Fixing >.> |
|
Back to top |
|
 |
|
|
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
|
|