Code:
function playerstats(_arg1)
lvl = memoryReadRepeat("intptr", proc, 0x169522C,{0x28,_arg1,0xC,0x128,0x7C})
adjlvl = memoryReadRepeat("intptr", proc, 0x169522C,{0x28,_arg1,0xC,0x128,0xA0})
power = memoryReadRepeat("intptr", proc, 0x169522C,{0x28,_arg1,0xC,0x128,0x84})
precision = memoryReadRepeat("intptr", proc, 0x169522C,{0x28,_arg1,0xC,0x128,0x88})
toughness = memoryReadRepeat("intptr", proc, 0x169522C,{0x28,_arg1,0xC,0x128,0x8c})
vitality = memoryReadRepeat("intptr", proc, 0x169522C,{0x28,_arg1,0xC,0x128,0x90})
X = memoryReadRepeat("floatptr", proc, 0x169522C,{0x28,_arg1,0xC,0x44,0x1C,0x5C,0xB4})
Y = memoryReadRepeat("floatptr", proc, 0x169522C,{0x28,_arg1,0xC,0x44,0x1C,0x5C,0xB8})
Z = memoryReadRepeat("floatptr", proc, 0x169522C,{0x28,_arg1,0xC,0x44,0x1C,0x5C,0xBC})
return lvl, adjlvl, power, precision, toughness, vitality, X, Y, Z
end
function character()
local proc = getProc()
size = memoryReadRepeat("intptr", proc, 0x169522C, 0x30)
print("The size of the array is "..size)
for i = 1, size-1 do
if memoryReadRepeat("intptr", proc, 0x169522C,{0x28,i*4}) ~= 0 then
if memoryReadRepeat("intptr", proc, 0x169522C,{0x28,i*4,0xC}) ~= 0 then
lvl, adjlvl, power, precision, toughness, vitality, X, Y, Z = playerstats(i*4)
end
end
end
end