Jump to content
  • 0

Lua script save the search results?


CheatTester

Question

Just want to ask,is it possible to save the search results on lua script? Not save the saved list to file, but add the result to saved list.

Eg; i got some results, but i want to add it to saved list because i want to use it later, so i can run another lua command without lose the previous data. Is it possible? Using gg.what?? Or i have to add it to save list Manualy? Thank you.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • Administrators
1 minute ago, CheatTester said:

but add the result to saved list.

Quote
Saved lists related methods
mixed  loadList (string file, int flags=0)
  Load the saved list from the file. More...
 
mixed  saveList (string file, int flags=0)
  Save the saved list to the file. More...
 
mixed  clearList ()
  Clear the saved list. More...
 
mixed  addListItems (table items)
  Add items to the saved list. More...
 
mixed  getListItems ()
  Return the contents of the saved list as a table. More...
 
mixed  removeListItems (table items)
  Remove items from the saved list. More...

https://gameguardian.net/help/classgg.html

If you need to save data between actions inside the script, it will be enough to use different variables for this.

Link to comment
Share on other sites

Would you please give me the example of the script? 

gg.clearResults()
gg.searchNumber('-999646356;-15254W;21F::7', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
gg.searchNumber('-999646356', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
gg.getResults(5)
( save the result )

 

Thank you.

Link to comment
Share on other sites

  • Administrators
9 minutes ago, CheatTester said:

gg.getResults(5)

local t = gg.getResults(5)

Now in table t present results.

And you can use it later or save in saved list: https://gameguardian.net/help/classgg.html#abb65d2e0810c3310903158774fd9ec63

 

_______________________________________________
added 0 minutes later

Try read examples in API docs.

Link to comment
Share on other sites

Oh my god,, my script keep show error message, and that was not because the command,,, iam using old version of gameguardian, and then iam upgrade to the latest version and my script work fine. i can execute it without error now.

Iam sorry for bothering you Enyby, and thank you very much for the quick response :-)

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.