Jump to content
  • 0

Retrieve values from next momory address


MSuo

Question

I'm new here and just start to learn gg and lua language. I did lots of google searchs but I cannot find what I need. Here's what I need.

 

gg.searchNumber('1234;2234', gg.TYPE_DWORD)

Data=gg.getResults(gg.getResultsCount())

I can see the result like this.

 

1234 Address 00000000

9999 Address 00000004

8888 Address 00000008

2234 Address 0000000C

 

I know how to change the value from 9999 to 0 directly by adding the address, type, new value 0 into a new table and then gg.setValues()

but I'd like to retrieve the value of second line and compare with 9999, if true, set to 0. How can I retrieve the inf from second line?

 

Thank you for your help.

 

 

 

[added 3 minutes later]

I know I can do g.searchNumber('1234;9999;8888;2234', gg.TYPE_DWORD) but it's slow,  with g.searchNumber('1234;2234', gg.TYPE_DWORD) it's much faster ane less process except retrieveing value from next address, any idea?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

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.