Jump to content
  • 0

Help to create a script that uses a multiple search and changes different values


Jhosefbr

Question

Hello, I wanted help with creating a basic script. First do the values search: -1;7;7;25;600;100;150:49 (dword) Then, search only for: 7;7;25;600 (dword). Finally, edit the values 7 to 50 frozen. And the number 600 to 5000 frozen. It's possible? 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Guest ATP-RAY2OP

gg.searchNumber("-1;7;7;25;600;100;150:49", gg.TYPE_DWORD)

t = gg.getResults(200) --set according to your script     

for i, v in ipairs(t) do          

if v.value == "7" then            

v.value = "50"            

v.freeze = true          

end          

if v.value == "600" then            

v.value = "5000"            

v.freeze = true          

end        

end        

gg.setValues(t)        

t = nil        

gg.clearResults()

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.