blackturbo Posted August 9, 2024 Posted August 9, 2024 Select Close. I want it to return to its original state. My script. if cstatus1 == on then cstatus1 = off else cstatus1 = on end if cstatus1 == on then gg.setRanges(32) gg.searchNumber("1401;19:5",4) gg.refineNumber("1401",4) local start = gg.getResults(1) local target = start[1].address + 0x4 local target2 = start[1].address + -0x4C local target3 = start[1].address + -0x9C local target4 = start[1].address + -0xEC gg.setValues ({ {address = target,flags=4,value=150000}, {address = target2,flags=4,value=150000}, {address = target3,flags=4,value=150000}, {address = target4,flags=4,value=150000}}) gg.toast("[ON]") else Help me Return to original value gg.clearResults() gg.toast("[OFF]") end
BloodMoonScript Posted August 9, 2024 Posted August 9, 2024 5 hours ago, blackturbo said: Select Close. I want it to return to its original state. My script. if cstatus1 == on then cstatus1 = off else cstatus1 = on end if cstatus1 == on then gg.setRanges(32) gg.searchNumber("1401;19:5",4) gg.refineNumber("1401",4) local start = gg.getResults(1) local target = start[1].address + 0x4 local target2 = start[1].address + -0x4C local target3 = start[1].address + -0x9C local target4 = start[1].address + -0xEC gg.setValues ({ {address = target,flags=4,value=150000}, {address = target2,flags=4,value=150000}, {address = target3,flags=4,value=150000}, {address = target4,flags=4,value=150000}}) gg.toast("[ON]") else Help me Return to original value gg.clearResults() gg.toast("[OFF]") end U mean it? if revert ~= nil then gg.setValues(revert) end
blackturbo Posted August 10, 2024 Author Posted August 10, 2024 On 9/8/2567 at 21 นาฬิกา 29 นาที, BloodMoonScript said: คุณหมายถึงแบบนั้นเหรอ? ถ้า revert ~= nil จากนั้นgg .setValues(revert) end It doesn't work. does not return to its original value. I want to revert to the original value from the change to 150,000. How should I write?
BloodMoonScript Posted August 11, 2024 Posted August 11, 2024 On 8/10/2024 at 6:59 PM, blackturbo said: It doesn't work. does not return to its original value. I want to revert to the original value from the change to 150,000. How should I write? It work. Then u just write code wrong If u change 5 float to 15 float, and u want back this value to 5(from revert) then u need write search 15 Float, get results, and write this code
Question
blackturbo
Select Close. I want it to return to its original state.
My script.
if cstatus1 == on then
cstatus1 = off
else
cstatus1 = on
end
if cstatus1 == on then
gg.setRanges(32)
gg.searchNumber("1401;19:5",4)
gg.refineNumber("1401",4)
local start = gg.getResults(1)
local target = start[1].address + 0x4
local target2 = start[1].address + -0x4C
local target3 = start[1].address + -0x9C
local target4 = start[1].address + -0xEC
gg.setValues ({
{address = target,flags=4,value=150000},
{address = target2,flags=4,value=150000},
{address = target3,flags=4,value=150000},
{address = target4,flags=4,value=150000}})
gg.toast("
[ON]
")
else
Help me
Return to original value
gg.clearResults()
gg.toast("
[OFF]
")
end
3 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.