Hello there,
Nesox posted the following offsets.
Code:
public enum WoWObjectFields
{
OBJECT_FIELD_GUID = 0x0,
OBJECT_FIELD_TYPE = 0x2,
OBJECT_FIELD_ENTRY = 0x3,
OBJECT_FIELD_SCALE_X = 0x4,
OBJECT_FIELD_PADDING = 0x5,
//TOTAL_OBJECT_FIELDS = 0x5
}
So I am trying to read the type of an object as follows.
Code:
public uint Type
{
get
{
return _magic.Read<uint>((uint)_magic.Read<IntPtr>((uint)_pointer, 0x8) + 0x2 * 4);
}
}
Which should be [[pointer + descriptor] + offset * 4].
This prints for example 1616046321, so it's clearly bullshit.
Now in I saw in some open source bot that type's offset is 0x14 and not 0x2 and I tried the following.
Code:
public uint Type
{
get
{
return _magic.Read<uint>((uint)_pointer + 0x14);
}
}
And this worked!
So what the heck? Is the offset 0x2 or 0x14 and why don't I have to use the descriptor 0x8?
And what is the correct and final way of reading Type, X, Y, Z and so on? Using descriptor or not? What am I doing wrong?