Jump to content
  • 0

Lua Script Help


sodaface

Question

Posted

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.    

 

7 answers to this question

Recommended Posts

Posted
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.

Posted
16 hours ago, sodaface said:

Hello. 

Does 

gg.removeResults(t)

Just remove results or revert them too ?

 

gg.clearResults()

That removes all the searched results

Posted

Oh my god. 

Thank you very much.  

Thank you. 

My actual area of expertise is cooking. 

So if You ever need any tips 😉☺️

Thanks again. 

 

 

Posted
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. 

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.