| View previous topic :: View next topic |
| Author |
Message |
assaf84 Expert Cheater
Reputation: 0
Joined: 03 Oct 2006 Posts: 238
|
Posted: Tue Sep 04, 2007 5:03 am Post subject: |
|
|
To get the value:
| Code: |
#define GET_ADDY(Base, Offset) (*(DWORD*)((DWORD)(Base) + (DWORD)(Offset)))
|
Simple logic
|
|
| Back to top |
|
 |
TheSorc3r3r I post too much
Reputation: 0
Joined: 06 Sep 2006 Posts: 2404
|
Posted: Tue Sep 04, 2007 10:15 am Post subject: |
|
|
To read the pointer:
a) find a memory address that reads from it & hook that procedure (the way I like)
b) __asm {
push eax
mov eax, [base]
mov eax, [eax+offset1]
mov eax, [eax+offset2]
mov [nPlayerHP], eax
pop eax
}
_________________
Don't laugh, I'm still learning photoshop! |
|
| Back to top |
|
 |
Zand Master Cheater
Reputation: 0
Joined: 21 Jul 2006 Posts: 424
|
Posted: Wed Sep 05, 2007 7:56 am Post subject: |
|
|
isn't it...
___asm {
push eax
mov eax, [base]
mov eax, dword ptr ds: [eax+offset1]
mov eax, dword ptr ds: [eax+offset2]
mov [nPlayerHP], eax
pop eax
}
Assuming you're using C++...
|
|
| Back to top |
|
 |
TheSorc3r3r I post too much
Reputation: 0
Joined: 06 Sep 2006 Posts: 2404
|
Posted: Wed Sep 05, 2007 7:57 am Post subject: |
|
|
I think in C++ it's dword ptr (no ds:), but who cares, eh?
_________________
Don't laugh, I'm still learning photoshop! |
|
| Back to top |
|
 |
Uligor Grandmaster Cheater
Reputation: 0
Joined: 21 Jan 2006 Posts: 956
|
Posted: Wed Sep 05, 2007 10:27 am Post subject: |
|
|
*((DWORD*)((*((DWORD*)(POINTER)))+OFFSET))
_________________
|
|
| Back to top |
|
 |
|