Jump to content
  • 0

combine prompt + offset


Question

Posted

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

  • 0
Posted
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. 

  • 0
Posted

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
Posted (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 by AKidWithMidgetFriend
  • 0
Posted
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)

 

  • 0
Posted

yes i want it imput manualy but if i writte 999 it wil be automaticly make 999 ?

  • 0
Posted
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.