Jump to content
  • 0

How to implement Nearby Search in LUA Script for address that keeps changing


Question

Posted (edited)

Hello,

 

Wondering if someone can please help me. I have a group search and refined value like this:

 

gg.searchNumber("0.10000000149;2.5;6.0::9", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1, 0)
gg.refineNumber("6", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1, 0)

local t = gg.getResults(1)
gg.addListItems(t)
t = nil

 

What I'd like to do is use the result of "6" from above to perform a "NearBy Search" with an "After" distance of 500 for value: -1 DWORD.  The problem is the address of the "6" keeps changing when I restart the game. Is there a proper way to code the script so that it does what I need even when the address of the "6" changes?  I've searched and played around with it and couldn't figure it out at all. Not even sure if it's doable. That's why I'm asking.  Would appreciate any assistance.

Edited by Sami1982

Recommended Posts

  • 0
Posted
Just now, MonkeySAN said:

i still need to see that video but i will not go to Discord.

i got bad history there that i dont want to talk about.

so i will open my message box for a while.

you can PM me there the video or 

the things i asked the very first time.

Okay you got it.  As you wish bro.

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.