Jump to content
  • 0

How to freeze value in this code, please help me value (9888888)


bimbim1996
 Share

Question

 

function searchValue(t,tan1,tan2)
rt={}
gg.setRanges(tan1)
gg.clearResults()
gg.clearList()
gg.setVisible(false)
gg.searchNumber(t[1], tan2)
local r = gg.getResults(99999999)
if #r==0 then goto LeHoangTan end
for it=2,#t do
for i=1,#r do
r[i].address=r[i].address+t[it][2]
end
local rr=gg.getValues(r)
tt={}
for i=1,#rr do
   if rr[i].value== t[it][1] then
   ii=#tt+1
   tt[ii]={}
   tt[ii].address=rr[i].address-t[it][2]
   tt[ii].flags=4
   end
end
if #tt==0 then goto LeHoangTan end
r=gg.getValues(tt)
if it==#t then rt=r goto LeHoangTan end
end
::LeHoangTan::
return rt
end

function searchEdit(lht1,lht2,lht3)
if #r>0 then
tt={}
for i=1,#r do
ii=#tt+1 tt[ii]={}
tt[ii].address=r[i].address +lht1
tt[ii].flags=lht2
tt[ii].value=lht3
end
gg.setValues(tt)
end end


p = gg.getResults(1)
r=searchValue({"1836016496",{"1819231071",-9*4},{"2097152",7*4}},32,4)
if #r == 0 then else
searchEdit(1*4,4,9888888) 
gg.toast("Name ✓ ᚜ ᴠᴀʟᴜᴇ: "..#r.." ᚛ ")
gg.clearResults() 
end

-- Tìm Và Check Giá Trị Không Thay Đổi Để Tránh Vào Lại Bị Thay Đổi Code Và Xảy Ra Không Tìm Thấy Giá Trị.

-- Bộ nhớ :
-- A = 32 | Ca = 4
-- Loại :
-- D = 4 | F = 16

-- VD: Code Là: | 1 |
-- Tích Trên Mã Tìm Là: | -1 |
-- Tích Dưới Mã Tìm Là: | 1 |

-- Có Thể Cho Thêm 1 Mã Offset Cho Dễ Xác Định Code: ,{"code offset",offset*4}

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0
On 5/2/2023 at 7:04 AM, bimbim1996 said:

function searchEdit(lht1,lht2,lht3)

if #r>0 then
tt={}
for i=1,#r do
ii=#tt+1 tt[ii]={}
tt[ii].address=r[i].address +lht1
tt[ii].flags=lht2
tt[ii].value=lht3
end
gg.setValues(tt)
end end

p = gg.getResults(1)
r=searchValue({"1836016496",{"1819231071",-9*4},{"2097152",7*4}},32,4)
if #r == 0 then else
searchEdit(1*4,4,9888888) 
gg.toast("Name ✓ ᚜ ᴠᴀʟᴜᴇ: "..#r.." ᚛ ")
gg.clearResults() 
end

 

Like this?

function searchEdit(lht1,lht2,lht3)
  if #r>0 then
    tt={}
    for i=1,#r do
      ii=#tt+1 
      tt[ii]={}
      tt[ii].address=r[i].address +lht1
      tt[ii].value=lht3
      tt[ii].freeze = true
    end
    gg.addListItems(tt)
  end
end

 

Edited by nok1a
Adjusted space between code and quoted text
Link to comment
Share on other sites

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
 Share

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