Jump to content
  • 0

after search value and save to list...


pensiunanhacker

Question

Sir Enyby ...

permission to ask

for example I look for the number 100 and then I save it in the list

then from the list of numbers 100, I will filter it again or refine again using a new script code or a new function

may sir enyby show an example of a script code for finding numbers from a list of numbers that have been collected

in the initial function executed by the new function

i mean not manual searching from list save but iwill use new function for searching again value from "thats range list value"

thanks before

go go go sir enyby ☕😘

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Save values 100 to saved list.

Script 1 :

function a1()
a= gg.searchNumber("100",4)
gg.addListItems(a)
end
a1()

Then rerun a new script. 
 

Script 2 :

function f1()
x = gg.getListItems()
  --[[
  Add whatever you want to do down here
  if you want to edit the value of x, do this 
  
  Example: If you want to find value 20 and replace the address of offset of 4 to the x 
  
  gg.searchNumber("20",4)
  local x1 = gg.getResults(1)
  for i=1, 100 do
  x[i].value = x1[1].address + 4
  gg.setValues(x)
  end
  ]]--
end

f1()

 

Link to comment
Share on other sites

6 hours ago, ItsSC said:

Save values 100 to saved list.

Script 1 :


function a1()
a= gg.searchNumber("100",4)
gg.addListItems(a)
end
a1()

Then rerun a new script. 
 

Script 2 :


function f1()
x = gg.getListItems()
  --[[
  Add whatever you want to do down here
  if you want to edit the value of x, do this 
  
  Example: If you want to find value 20 and replace the address of offset of 4 to the x 
  
  gg.searchNumber("20",4)
  local x1 = gg.getResults(1)
  for i=1, 100 do
  x[i].value = x1[1].address + 4
  gg.setValues(x)
  end
  ]]--
end

f1()

 

thanks sir 😘 and very like ur panda icon profile

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.