Версия для печати темы

Нажмите сюда для просмотра этой темы в обычном формате

UoKit.com Форумы _ UO Pilot _ Save memory address to variable

Автор: neves 25.7.2020, 19:59

Hello everyone. I have an address with many pointers:

Код

local value = readmem(readmem(readmem(readmem(readmem(readmem(0x00D1136C,"D","game.exe")+0x244,"D")+0x124,"D")+0x3FF,"D")+0x477,"D")+0x0,"S",120)

and the problem is that everytime I want to read this need to use all these pointers. As you know these pointers points to given address of the memory. Is it possible to save this address in variable and to read without these readmem funcs.
Ex:
Код

local addr = 0x2FE19498  --here to save the address from the pointers
local value
while value ~= "yes" do
value = readmem(addr,"S",120)
wait(250)
end

Автор: cirus 25.7.2020, 20:14

The address changes when the app is restarted.

Автор: neves 25.7.2020, 20:19

Цитата(cirus @ 25.7.2020, 19:14) *

The address changes when the app is restarted.

Yes, but I know all the pointers which points to that address. And I want to save it in variable.

Автор: cirus 25.7.2020, 20:36

Цитата
local value = readmem(readmem(readmem(readmem(readmem(readmem(0x00D1136C,"D","game.exe")+0x244,"D")+0x124,"D")+0x3FF,"D")+0x477,"D")+0x0,"S",120)

Код
local addr = readmem(readmem(readmem(readmem(readmem(0x00D1136C,"D","game.exe")+0x244,"D")+0x124,"D")+0x3FF,"D")+0x477,"D")


Автор: neves 25.7.2020, 20:41

Цитата(cirus @ 25.7.2020, 19:36) *

Код
local addr = readmem(readmem(readmem(readmem(readmem(0x00D1136C,"D","game.exe")+0x244,"D")+0x124,"D")+0x3FF,"D")+0x477,"D")


OMG... I feel stupid.
Thank you, man!

Русская версия Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)