Base Address + Offset understanding.

02/19/2011 18:23 kerosene69#1
Okay, Here goes a noob question but for the life of me I have to figure this out.
So the base address is 0xA5BFCC for PWI.. and HP offset 0x474
when i try to read baseaddress + HPoffset, I dont get the correct HP value..
what am I doing wrong??
02/20/2011 07:37 Sᴡoosh#2
Well,
first of all, its Base + 20h + offset for character related data.
20h is the character struct; This can be best explained by looking at how games are written.

Ill use delphi code to explain.

Tcharacter = record
HP : integer;
MP : integer;
Name : String
...
end;

In this struct, The player HP chain would be

Base + 0h

Since Integer is 4 bytes, MP would be

Base + 4h

This is basically what pw does, only that their structs are of course much more complex, hence you get those "big" offsets.

I hope this cleared up a bit; I fail at explaining.

Cheers
02/20/2011 09:59 Interest07#3
[Only registered and activated users can see links. Click Here To Register...]
and
[Only registered and activated users can see links. Click Here To Register...]

might help you a bit in understanding baseAddress etcetera.
02/20/2011 21:47 kerosene69#4
Thanks for the replies, I wasnt adding on the &h20. Now I'm able to find the bytes.. Everything accept for the name. Finding the name offset or converting it to a string. . Just to check the name offset would be at Baseaddress + 20h + 618h ?
02/21/2011 08:31 Sᴡoosh#5
Add +0, since you want the pointer to it.
03/19/2011 16:30 kullaratt#6
[Only registered and activated users can see links. Click Here To Register...]

[Only registered and activated users can see links. Click Here To Register...]



:confused::confused:What should I do?..............................
:handsdown::handsdown::handsdown::handsdown:
03/19/2011 19:12 Sᴡoosh#7
Base + 30h + offset for character struct data reguarding your own character.

1. Press Add pointer.
2. Enter base in left edit.
3. Enter 30 in right edit.
4. Enter an offset in the edit over the 30 one.

Done.
04/06/2011 09:59 20058213#8
can sum1 xplain me what is this all about? or why is this useful? me ish noob still QQ
04/06/2011 12:30 Interest07#9
Quote:
Originally Posted by 20058213 View Post
can sum1 xplain me what is this all about? or why is this useful? me ish noob still QQ
It's for when you make bots. You read from your computer's memory all values you need to decide what to attack / empty your inventory / use pots / etcetera.