new address for items cooldown base
skills is
staticCooldownsBase = 0x9E0064,
items is
0x9E0870
Code: Select all
function tester(item)
local skillItemId = memoryReadInt( getProc(), item.BaseItemAddress + addresses.realItemIdOffset );
if ( skillItemId ~= nil and skillItemId ~= 0 ) then
local skillItemAddress = GetItemAddress( skillItemId );
if ( skillItemAddress ~= nil and skillItemAddress ~= 0 ) then
local offset = memoryReadRepeat("int", getProc(), skillItemAddress + addresses.skillRemainingCooldown_offset) or 0
if offset and offset ~= 0 then
print("supposed to work")
local lol = memoryReadRepeat("int", getProc(), 0x9E0870 + (offset+1)*4) or 0
print("offset: "..offset.." value: "..lol)
return lol/10
end
end
end
end
Code: Select all
Command> local item = inventory.BagSlot[65] print(tester(item))
supposed to work
offset: 27 value: 1771
177.1
Command> local item = inventory.BagSlot[69] print(tester(item))
supposed to work
offset: 3 value: 115
11.5
It took a lot of stuffing around until I worked out the original code you posted was working but the base address needed changing for items