Vince Coding
Would you like to react to this message? Create an account in a few clicks or log in to continue.

[C++] Example of writing a pointer

Go down

[C++] Example of writing a pointer Empty [C++] Example of writing a pointer

Post  Admin Sat Jun 18, 2011 8:13 pm

This is just an example.
Replace ''Pointer'' with the name of your pointer.
Replace ''Offset'' with the name of your offset

Don't forget to define the pointer and offsets.

Basics.
Code:

*(DWORD*)(*(DWORD*)Pointer + Offset) = 0;
This will make the lables show the pointers + offset
Code:
[B]*(DWORD*)[/B](*(DWORD*)Pointer + Offset) = 0;
This makes the DWORD Hex. (second DWORD)
Code:

*(DWORD*)([B]*(DWORD*)[/B]Pointer + Offset) = 0;
as you can see the 0 is bold, it's to make the value 0.
Code:

*(DWORD*)(*(DWORD*)Pointer + Offset) = [B]0[/B];
Coding.

Maplestory has some checks to make it 19 (95%)
So here we go.
Code:

void FixMyValues()
{
//TODO Code Here
}
So now we are gonna add some code to make the value 100(20).

Code:

void FixMyValues()
{
*(DWORD*)(*(DWORD*)HPMPBase+ HPOff) = 20;
}
Now i'll show you how to make it 20, as it still stays 19.

Code:

void FixMyValues()
{
[B]for(;;)[/B]
{
*(DWORD*)(*(DWORD*)HPMPBase+ HPOff) = 20;
}
}
We just made a loop to fix it. (
Code:
for(;;)
)

Admin
Admin

Posts : 6
Join date : 2011-06-05

https://vincecoding.board-directory.net

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum