Posted: Wed Mar 18, 2020 5:55 am Post subject: Copy once the existing value from address and write it
(beginner)
Copy the value and write it when the box is checked
Code:
function CETrainer_CECheckbox1Change(sender)
if (CETrainer_CECheckbox1.Checked) then
local xLock = readFloat("[Wow.exe+00A29D28]+BF4")
end
while (CETrainer_CECheckbox1.Checked) do
writeFloat("[Wow.exe+00A29D28]+BF4", xLock)
end
end
Works, but makes the program not responding after checking the box and any more clicks crashes it.
Joined: 09 May 2003 Posts: 25296 Location: The netherlands
Posted: Wed Mar 18, 2020 6:14 am Post subject:
Code:
function CETrainer_CECheckbox1Change(sender)
if (CETrainer_CECheckbox1.Checked) then
local xLock = readFloat("[Wow.exe+00A29D28]+BF4")
cb1timer=createTimer()
cb1timer.OnInterval=function(t)
writeFloat("[Wow.exe+00A29D28]+BF4", xLock)
end
cb1timer.Interval=100
cb1timer.Enabled=true
else
if cb1timer then
cb1timer.destroy()
cb1timer=nil
end
end
end
alternatively, you can add the address to the addresslist and freeze it _________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping
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