Jump to content
  • 0

Lua change value


Rs92ks

Question

kk1=1890
gg.clearResults()
gg.setRanges(32)
gg.searchNumber(kk1..'x4',4)
hk=gg.getResults(999)
for _,p in ipairs(hk) do
  p2=({address=p.address+0x4,flags=4})
  if
    p2.value==1 then
    p.value=99999 gg.setValues(hk)
  end
end

Help. Value with random xor key. My script changing to value=value. How to fix?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • Administrators
27 minutes ago, Rs92ks said:

p2.value==1

Never true, because you create table without value.

Maybe you forget call getValues.

[added 3 minutes later]
kk1=1890
gg.clearResults()
gg.setRanges(32)
gg.searchNumber(kk1..'x4',4)
hk=gg.getResults(999)
hn=gg.getResults(999)
for _,p in ipairs(hn) do
  p.address = p.address+0x4
end
hn = gg.getValues(hn)
for i,p in ipairs(hk) do
  if hn[i].value==1 then
    p.value=99999
  end
end
gg.setValues(hk)

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.