Jump to content

Question

Posted

have a nice day. What I want to do is I have a few addresses. These naturally change when the game is closed and opened.

 

gg.setVisible(false)
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber("1.5 ; 0.3", gg.TYPE_DOUBLE)
gg.refineNumber(0.3 , gg.TYPE_DOUBLE)
gg.getResults(10)

I use this and find the values I want. But I need to do a different search using their addresses.

image.png.468d75464a25362958cc7f1dc43e40cf.png

image.thumb.png.c5236e9034a14625ca079cac559f905e.png

For this I have to use the function here. I have 3 values. I want to find the 1.2 numbers out of 10000 distance to their address. and I want to do this on lua script.

1 answer to this question

Recommended Posts

  • 0
Posted

x=gg.getResults(10)

gg.clearResults()

    for i, v in ipairs(x) do

    b=tonumber(v.address-10000)

    c=tonumber(v.address+10000)

 gg.searchNumber("1.2",64,false,gg.SIGN_EQUAL,b, c) 

    z=gg.getResults(gg.getResultsCount())

    gg.addListItems(z) 

    gg.clearResults()

    end

gg.loadResults(gg.getListItems())

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.