Name1 = Hack Decription name
sec = Timer seconds. For 1 second = 1000
Code:
--You can add the code below to your hack.
[enable]
{$LUA}
function ExpHack(Name1, sec)
local oldv1 = AddressList.getMemoryRecordByDescription(Name1).Value
oldv1 = tonumber(oldv1)
local t = createTimer() t.Enabled=true
t.Interval = tonumber(sec)
t.OnTimer = function(t)
local mr = AddressList.getMemoryRecordByDescription(Name1)
if not oldv1 then t.destroy(); return end
local v1 = tonumber(mr.Value)
oldv1 = oldv1 + 2
mr.Value = tostring(oldv1)
--print(oldv1)
-- Set a limit if you want to kill the timer.
-- if oldv1 == 600 then t.destroy(); end
end
end
memrec = getAddressList().getMemoryRecordByDescription
memrec('ItemType').Value = "555"
memrec('ItemType').Active = true
if memrec('ItemType').Value == "555" then
ExpHack("My Experience", "1000") end
{$ASM}
And these encodings are open to editing.
Can be used with Lua Script.
EDIT ;
You can make the following changes to determine the increase independently;
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum