peddroelm Advanced Cheater Reputation: 0
Joined: 03 Oct 2014 Posts: 84
|
Posted: Fri Jan 05, 2018 7:02 am Post subject: how to read values through pointerchains ? |
|
|
No good:
local CharNameLength = readInteger("[[[ rbxAddress + 30] + 28] + 10] + 10"); -- this one turns the rbxAddress variable into literal string ..
local CharNameLength = readInteger('[[[' .. rbxAddress .. '+ 30] + 28] + 10] + 10');
this works on the address table:
[[[816F4A80 + 30] + 28] + 10] + 10 as address for 4 byte integer ..
EDIT1:
this 1 worked so I'll try printf next
CharNameLength = readInteger("[[[816F4A80 + 30] + 28] + 10] + 10");
EDIT2:
this worked
local CharNameLength = readInteger(string.format("[[[%10X+ 30] + 28] + 10] + 10",rbxAddress));
EDIT3:
and this reads me unicode string
local CharNameLength = readInteger(string.format("[[[%10X+ 30] + 28] + 10] + 10",rbxAddress));
local zCharName = readString(string.format("[[[%10X+ 30] + 28] + 10] + 14",rbxAddress), CharNameLength * 2, 1);
|
|