Sting9x Expert Cheater
Reputation: 0
Joined: 27 Jul 2016 Posts: 121
|
Posted: Fri Mar 18, 2022 10:44 am Post subject: auto record edit Value in lua |
|
|
Hello, I need a help.
Right now, I have a address as 1DD4E9E4, I make Description is gold1 which equal value is 0 and address equal 02AF8E80, I make Description is gold2 which equal value is 1.
In the game process works, gold1 works continually by the time and value will be raised.
That’s my idea, I make a CEEdit and a CEButton, this’s I set up 5 in CEEdit, is there any way in the game process when gold1 is raised 5, gold2’s value will return 0.
Thanks for everyone's help  |
|
AylinCE Grandmaster Cheater Supreme
Reputation: 37
Joined: 16 Feb 2017 Posts: 1522
|
Posted: Fri Mar 18, 2022 1:29 pm Post subject: |
|
|
Code: | if goldTmr then goldTmr.Destroy() goldTmr=nil end
goldTmr=createTimer() goldTmr.Interval=100 goldTmr.Enabled=false
goldTmr.OnTimer=function()
al = getAddressList()
gold1=addresslist_getMemoryRecordByDescription(al, "gold1")
gold2=addresslist_getMemoryRecordByDescription(al, "gold2")
if gold1.value==tonumber(UDF1.CEEdit1.Text) then
gold2.value=0
end
end
UDF1.CEButton1.OnClick=function()
if goldTmr.Enabled==false then
goldTmr.Enabled=true
else
goldTmr.Enabled=false
end
end |
Does this require a change for every 5 increments? _________________
|
|