Jump to content
  • 0

Do I have to add anything else?


AdamEA
 Share

Question

4 answers to this question

Recommended Posts

  • 0

[ @AdamEA ]
---
Mind to explain why you put the same operation with different variable?

revert = gg.getListItems()
local t = gg.getListItems()

---
I've seen that you're trying to flush the variable by making it "nil"

local t = gg.getListItems()
t = nil

Well you can make temporary variable by making it like this:

gg.removeListItems(gg.getListItems())

---
I also see the unnecessary "nil" argument added into gg.getResults() while you can just do this:

gg.getResults(100000) --100K is too overkill. I suggest to narrow it down

---
Make sure that your results is exist, prefered to get the number of result on each searches:

--gg.searchNumber(blabla)
print('Search: ', gg.getResultsCount())
--gg.refineAddress(blabla)
print('Refine: ', gg.getResultsCount())

---
Also "v.flags" returns a number, so you should do this:

if v.flags == 4 then
	blabla
end

-- "4" indicates DWORD (gg.TYPE_DWORD)

---

Link to comment
Share on other sites

  • 0

gg.removeListItems(gg.getListItems())

Where should I replace it?

Sorry, I just learned to use the script. ;,,;

2 hours ago, Xaviesz said:

[ @AdamEA ]
---
Mind to explain why you put the same operation with different variable?

revert = gg.getListItems()
local t = gg.getListItems()

---
I've seen that you're trying to flush the variable by making it "nil"

local t = gg.getListItems()
t = nil

Well you can make temporary variable by making it like this:

gg.removeListItems(gg.getListItems())

---
I also see the unnecessary "nil" argument added into gg.getResults() while you can just do this:

gg.getResults(100000) --100K is too overkill. I suggest to narrow it down

---
Make sure that your results is exist, prefered to get the number of result on each searches:

--gg.searchNumber(blabla)
print('Search: ', gg.getResultsCount())
--gg.refineAddress(blabla)
print('Refine: ', gg.getResultsCount())

---
Also "v.flags" returns a number, so you should do this:

if v.flags == 4 then
	blabla
end

-- "4" indicates DWORD (gg.TYPE_DWORD)

---

 

Link to comment
Share on other sites

  • 0

[ @AdamEA ]
---
I'm just trying to improve your script, but your main problem is at line 72, change it to:

if v.flags == 4 then
	blabla
end

-- "4" indicates DWORD (gg.TYPE_DWORD)

---

Link to comment
Share on other sites

  • 0
33 minutes ago, Xaviesz said:

[ @AdamEA ]
---
I'm just trying to improve your script, but your main problem is at line 72, change it to:

if v.flags == 4 then
	blabla
end

-- "4" indicates DWORD (gg.TYPE_DWORD)

---

The value has not changed. But I tried this offset script, it worked!

 

gg.clearResults()

gg.searchNumber("1288490188820;51539607852;214748364812::9" , gg.TYPE_QWORD)

gg.refineAddress("C88", gg.TYPE_QWORD)

p = gg.getResultCount()

q = gg.getResults(p)

 

for i = 1,p do

          local r = {}

   r[i] = {}

           r[i].address = q[i].address + 4

        r[i].flags = 4

     r[i].value = 13

gg.setValues(r)

end

gg.clearResults()

Link to comment
Share on other sites

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
 Share

×
×
  • 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.