Jump to content
Enyby

LUA scripting

Recommended Posts

hey i am new to this lua stuff and still learning it,

 i have already checked several scripts in this forum.

but it confused me when it comes to find the range of value.

such an example i found a scripts for aimbot

gg.searchNumber('2;3D;2.25::200',gg.TYPE_FLOAT,false,gg.SIGN_EQUAL,0,-1)

gg.getResults(100)

gg.editAll('2.4e35',gg.TYPE_FLOAT)

gg.toast('aimbot enable')

goto START

 

ok based on these code i dont understand where the value of 

2;3D;2.25::200 and 2.4e35 came from.

and i also dont understand about type of integer. how to know what type of int we should use? 

i hope you can give me some ideas

Share this post


Link to post
Share on other sites

1 hour ago, n00bieS said:

i dont understand where the value of 

2;3D;2.25::200 and 2.4e35 came from.

and i also dont understand about type of integer. how to know what type of int we should use? 

You must know how to hack game before start write script.

Script only automated list of actions. It is not magic.

If you know how to hack game manually then you can write script for this.

If not - you can not write script.

Share this post


Link to post
Share on other sites
::gold::
a = gg.prompt({A='Your Gold'},{A='number'}) 
goto gold1

::gold1::
gg.clearResults()
gg.searchNumber(a.A';327680~327699::5', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
gg.searchNumber(a.A, gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
gg.getResults(900)
goto gold2

::gold2::
b = gg.prompt({B='Change Gold To'},{B='number'}) 
goto gold3

::gold3::
gg.editAll('b.B', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
gg.clearResults()
gg.toast('Gold Hacked Successfully')
goto Choice

Hey this is my some part of the script. This is my first script.

I want the code to be run like this :

When user enters the input A, gg should search for group value e.g. a.A;327780~327699::5. 

But if i enter the code like 'a.A;27680~327699::5' , gg ignores it.

And if i enter it like a.A';327680~327691::5' (because i want ';327680~327699::5' in front of the input) , gg shows error "attempt to call string" .

Can u please tell me the solution.

I want to do group search with the input A. (i.e. I want ;327680~327699::5 in front of the input a.A)

Share this post


Link to post
Share on other sites
16 minutes ago, Enyby said:

You need learn lua and how to concatenete string in it.

Ok. Thank you so much. I figured it out. I will definitely learn lua when my exams are finished :D Thanks for your assistance. You are one of the best coders.

  • Like 1

Share this post


Link to post
Share on other sites

Hey Enyby, is it possible in the script to do like this? :

Copy the address and put that address in offset calculator and put the offset also.

Share this post


Link to post
Share on other sites

No. But you can get address, add offset and dk some actions directlt, via lua, without offset calculator.

  • Upvote 1

Share this post


Link to post
Share on other sites
10 hours ago, Enyby said:

No. But you can get address, add offset and dk some actions directlt, via lua, without offset calculator.

Ok. Thanks.

Share this post


Link to post
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


×