blocx Posted August 1, 2021 Posted August 1, 2021 hi someone can corect me if its possible.off.course it for jump stage ( group search + offset seem to be good ) local t = gg.TYPE_DWORD local prompt = gg.prompt( {'Enter your desired level :'}, {nil,nil}, {'number'} ) if prompt==nil then os.exit() end v1 = tonumber(prompt[1]) gg.setRanges(gg.REGION_ANONYMOUS) gg.searchNumber("1000;1800::", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.refineNumber("1000", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) r = gg.getResults(100) local t = {} t[1] = {} t[1].address = r[1].address + 0x9C t[1].flags = gg.TYPE_DWORD t[1].value = gg.clearResults() gg.toast("ENJOY") if gg.getResultsCount()==0 then print('No results found.') os.exit() end while true do if gg.isVisible() then gg.setVisible(false) main() end end
0 Lover1500 Posted August 1, 2021 Posted August 1, 2021 11 hours ago, blocx said: r = gg.getResults(100) local t = {} t[1] = {} t[1].address = r[1].address + 0x9C t[1].flags = gg.TYPE_DWORD t[1].value = You need a loop to check every each results. You only check first one in table r in your code. 1
0 blocx Posted August 2, 2021 Author Posted August 2, 2021 sorry i dont understand what can i add or modify for have prompt in offset? [added 1 minute later] yes i need only the number1000 for offset and field empty because i dont know what writte
0 AKidWithMidgetFriend Posted August 3, 2021 Posted August 3, 2021 (edited) On 8/1/2021 at 3:43 PM, Lover1500 said: You need a loop to check every each results. You only check first one in table r in your code. For i, v in pairs(r) do v.address + 0x9C v.flags = gg.TYPE_DWORD end Been a minute since I've written a GG script but this MIGHT be a loop that'll do whats needed (please correct me if I'm wrong like I said it's been a minute and I'm not as active is I'd like to be) Replaces this On 8/2/2021 at 12:44 AM, blocx said: local t = {} t[1] = {} t[1].address = r[1].address + 0x9C t[1].flags = gg.TYPE_DWORD t[1].value = Edited August 3, 2021 by AKidWithMidgetFriend 1
0 Lover1500 Posted August 3, 2021 Posted August 3, 2021 3 hours ago, AKidWithMidgetFriend said: For i, v in pairs(r) do v.address + 0x9C v.flags = gg.TYPE_DWORD end Yeah its a loop. I'll correct some syntax. for i, v in pairs(r) do v.address = v.address + 0x9C v.flags = gg.TYPE_DWORD v.value = 999 --desired value to edit end gg.setValues(r) 3
0 blocx Posted August 4, 2021 Author Posted August 4, 2021 thanks @Lover1500 but if i writte the field v.value its predefined by script but i want prompt so need imput manualy
0 AKidWithMidgetFriend Posted August 4, 2021 Posted August 4, 2021 42 minutes ago, blocx said: thanks @Lover1500 but if i writte the field v.value its predefined by script but i want prompt so need imput manualy Wouldn't v.value = prompt[1] work? 1
0 blocx Posted August 4, 2021 Author Posted August 4, 2021 yes i want it imput manualy but if i writte 999 it wil be automaticly make 999 ?
0 AKidWithMidgetFriend Posted August 4, 2021 Posted August 4, 2021 5 hours ago, blocx said: yes i want it imput manualy but if i writte 999 it wil be automaticly make 999 ? Yes v.value = 999 would set the values for the v's in the i, v in pairs loop defaultly/autonomously 1
Question
blocx
hi someone can corect me if its possible.off.course it for jump stage ( group search + offset seem to be good )
local t = gg.TYPE_DWORD
local prompt = gg.prompt(
{'Enter your desired level :'},
{nil,nil},
{'number'}
)
if prompt==nil then
os.exit()
end
v1 = tonumber(prompt[1])
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber("1000;1800::", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0)
gg.refineNumber("1000", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0)
r = gg.getResults(100)
local t = {}
t[1] = {}
t[1].address = r[1].address + 0x9C
t[1].flags = gg.TYPE_DWORD
t[1].value =
gg.clearResults()
")
gg.toast("ENJOY
if gg.getResultsCount()==0 then
print('No results found.')
os.exit()
end
while true do
if gg.isVisible() then
gg.setVisible(false)
main()
end
end
10 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now