Jump to content
  • 0

Lua Script Help


sodaface

Question

Hello.

Please be gentle with me 🙂 

I'm trying to write a script.  

For the script i need the user to enter one value from the game, lets call it X

From there i want to search for that value like this    x;x;0;x;x::21     d word type only

.....

 

Can someone point me in the direction of help?

 

There is a bunch of other stuff in the script...i just cant figure out this.

 

Thanks in advance.    

 

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

14 hours ago, sodaface said:

Does 

gg.removeResults(t)

Just remove results or revert them too ?

The description of the function from GG API documentation: 

Quote

Remove results from the list of results found.

So it just removes them as nothing about reverting is specified.

Link to comment
Share on other sites

2 hours ago, MonkeySAN said:

local x = gg.prompt({"Input number"},{0})

gg.searchNumber(x[1]..';'..x[1]..';0;'..x[1]..';'..x[1]..'::21', 4)-- 4 is gg.TYPE_DWORD

 

Just used it in my script and worked perfectly.  

Thank you again. 

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.