Jump to content
  • 0

help |lua coding| possible to add this?


nio04

Question

is it possible to add things like this? ->

 

i will search for 1.57079637051 

 

and have offset of -576 

 

but it will only edit the value, when the value is 1.20000004768 ; if the value otherwise, it wont edit... and jump for next offset

 

here's the code 

 
-- For all search results and 1 offset address.
gg.clearResults()
gg.searchNumber("1.57079637051" , gg.TYPE_FLOAT) ---your group search value / or your search number
gg.refineNumber("1.57079637051", gg.TYPE_FLOAT)
   p = gg.getResultCount()                -- saving the results count
q = gg.getResults(p)                   -- saving the results
-- using loop to edit the values at offset one by one
for i = 1,p do
          local  r = {}
			r[i] = {}
			        r[i].address = q[i].address -576   -- address the offset(ex :- 4) to the refined result
				    r[i].flags = 16                 -- data type in which you want to edit the value at offset (4 = DWORD)
					r[i].value = 1.8             -- enter the edit value to make the hack
gg.setValues(r)
end
gg.toast('mp -senistivity')	
  

 

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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.