Jump to content
  • 0

Scripting Lua plz help


GameGUGU1

Question

Me need understand how i can do, what my script can pick item in memory and after go to address and change value to Dword
example:

gg.setRanges(gg.REGION_ANONYMOUS)

gg.searchNumber('-----', gg.TYPE_DWORD)

gg.searchNumber('----',gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0)

z = gg.getResults(1)

gg.addListItems(z)

 

What me write what it script next do pick it first item in memory and after go to other address for change other value



in my understand for go to new address it should be "gg.gotoaddress(z[1].address + '24' , gg.TYPE_DWORD), but it crashed

and what write for change last value... plz help me with it 

thank you all!
 

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

15 minutes ago, MonkeySAN said:

try this..


gg.loadResults(gg.getListItems())
local t = gg.getResults(1)

for i,v in pairs(t) do

gg.setValues({ 
{address = v.address + 24, flags = 4, value = <your value>} })
gg.addListItems(t)

 

thank you very much realy working!

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.