When I get playerBase address I can paste it into Dissect data/structures. I’ll try to create a pseudo-structure:
Player
05 - health
D8 - inventory
e.g. I put there normal variable with an offset. Let’s imagine it equals 100.
unlike previous variable inventory
has some thing like this in “Value:” field – P->123ABC
CE tells me that it is “Pointer or Nested Structure” and it totally confuses me, ngl. As I can see, I can expand this as a structure so I can ignore it and find array[0] there which represents the first item in player inventory. The type of this – “Pointer or Nested Structure” too. And finally, in this structure array[0]
we can see normal variables. I put my attention to stack
value. It has own offset B4
from Array[0]
, Right as Array[0]
stores at offset 8
from Inventory.
I wanted to edit values of stack
but I can not access to it by simply calculating all offsets (playerBase+D8+8+B4
) and edit my value.
Some time ago I edited regular values like this:
*(DWORD*)((DWORD)PlayerBase + sampleOffset) = 1;
Should I use double dereferencing? Like this. Recently I tried to, but there’s no success.
*(DWORD*)*(DWORD*)((DWORD)PlayerBase + sampleOffset) = 1;
my goal is to do it on C++
elementalpossession is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
4