Jump to content
Sign in to follow this  
XxhentaixX

7000+ lines of script in 11 hours work ?

Recommended Posts

This is just a small part of my colour hack i'm working on...i just think its my biggest script i ever made. LoL

 

::lhgj::

gg.searchNumber('0.30000001192', gg.TYPE_FLOAT)
gg.getResults(10000)
gg.searchNumber('0.30000001192', gg.TYPE_FLOAT)
gg.getResults(10000)
gg.searchNumber('0.30000001192', gg.TYPE_FLOAT)
gg.getResults(10000)
gg.searchNumber('0.30000001192', gg.TYPE_FLOAT)
gg.getResults(10000)
gg.editAll('9', gg.TYPE_FLOAT)
gg.clearResults()
gg.searchNumber('0.22352941334;0.23529411852;0.30588236451;2,000.0', gg.TYPE_FLOAT)
gg.getResults(15000)
gg.searchNumber('2000', gg.TYPE_FLOAT)
gg.getResults(200)
gg.editAll('500', gg.TYPE_FLOAT)
gg.clearResults()
gg.searchNumber('0.22352941334;0.23529411852;0.30588236451;0.5', gg.TYPE_FLOAT)
gg.getResults(5000)
gg.searchNumber('0.5', gg.TYPE_FLOAT)
gg.getResults(300)
gg.editAll('99999999', gg.TYPE_FLOAT)
gg.editAll('-999', gg.TYPE_FLOAT)
gg.editAll('100', gg.TYPE_FLOAT)
gg.clearResults()
gg.searchNumber('0.22352941334', gg.TYPE_FLOAT)
gg.getResults(10000)
gg.searchNumber('0.22352941334', gg.TYPE_FLOAT)
gg.getResults(10000)
gg.searchNumber('0.22352941334', gg.TYPE_FLOAT)
gg.getResults(10000)
gg.searchNumber('0.22352941334', gg.TYPE_FLOAT)
gg.getResults(10000)
gg.searchNumber('0.22352941334', gg.TYPE_FLOAT)
gg.getResults(10000)
gg.searchNumber('0.22352941334', gg.TYPE_FLOAT)
gg.getResults(10000)
gg.searchNumber('0.22352941334', gg.TYPE_FLOAT)
gg.getResults(10000)
gg.searchNumber('0.22352941334', gg.TYPE_FLOAT)
gg.getResults(10000)
gg.editAll('1', gg.TYPE_FLOAT)
gg.clearResults()
gg.searchNumber('0.23529411852', gg.TYPE_FLOAT)
gg.getResults(10000)
gg.searchNumber('0.23529411852', gg.TYPE_FLOAT)
gg.getResults(10000)
gg.searchNumber('0.23529411852', gg.TYPE_FLOAT)
gg.getResults(10000)
gg.searchNumber('0.23529411852', gg.TYPE_FLOAT)
gg.getResults(10000)
gg.searchNumber('0.23529411852', gg.TYPE_FLOAT)
gg.getResults(10000)
gg.searchNumber('0.23529411852', gg.TYPE_FLOAT)
gg.getResults(10000)
gg.searchNumber('0.23529411852', gg.TYPE_FLOAT)
gg.getResults(10000)
gg.searchNumber('0.23529411852', gg.TYPE_FLOAT)
gg.getResults(10000)
gg.searchNumber('0.23529411852', gg.TYPE_FLOAT)
gg.getResults(10000)
gg.searchNumber('0.23529411852', gg.TYPE_FLOAT)
gg.getResults(10000)
gg.searchNumber('0.23529411852', gg.TYPE_FLOAT)
gg.getResults(10000)
gg.searchNumber('0.23529411852', gg.TYPE_FLOAT)
gg.getResults(10000)
gg.editAll('0', gg.TYPE_FLOAT)
gg.clearResults()
gg.searchNumber('0.30588236451', gg.TYPE_FLOAT)
gg.getResults(10000)
gg.searchNumber('0.30588236451', gg.TYPE_FLOAT)
gg.getResults(10000)
gg.searchNumber('0.30588236451', gg.TYPE_FLOAT)
gg.getResults(10000)
gg.searchNumber('0.30588236451', gg.TYPE_FLOAT)
gg.getResults(10000)
gg.searchNumber('0.30588236451', gg.TYPE_FLOAT)
gg.getResults(10000)
gg.searchNumber('0.30588236451', gg.TYPE_FLOAT)
gg.getResults(10000)
gg.searchNumber('0.30588236451', gg.TYPE_FLOAT)
gg.getResults(10000)
gg.searchNumber('0.30588236451', gg.TYPE_FLOAT)
gg.getResults(10000)
gg.searchNumber('0.30588236451', gg.TYPE_FLOAT)
gg.getResults(10000)
gg.searchNumber('0.30588236451', gg.TYPE_FLOAT)
gg.getResults(10000)
gg.searchNumber('0.30588236451', gg.TYPE_FLOAT)
gg.getResults(10000)
gg.searchNumber('0.30588236451', gg.TYPE_FLOAT)
gg.getResults(10000)
gg.editAll('0.5', gg.TYPE_FLOAT)
goto sdone

I think in total will have 12 000 lines or somthing

The searxhing and understanding the logic in the game in order to make the script taked me probaly some days...patient is results ?

So much fun 

Edited by XxhentaixX

Share this post


Link to post
Share on other sites

getResults not need if you need run next search without use results.

10000 - too big count. Usually change a lot values cause problems.

And you need learn about loops in LUA.

_______________________________________________
added 1 minute later

And if in one search you get zero results, then next search start from scratch. So you need check count results before run next search,

Share this post


Link to post
Share on other sites

alright, I look in to this looping.

so I can just do like this? I did this to avoid the game to crash...some kind of filtering.

searchNumber('19', gg.TYPE_FLOAT') --12000 results
searchNumber('19', gg.TYPE_FLOAT') --10000 results
searchNumber('19', gg.TYPE_FLOAT') --5000 results
searchNumber('19', gg.TYPE_FLOAT') --1000 results
searchNumber('19', gg.TYPE_FLOAT') --500 result
searchNumber('19', gg.TYPE_FLOAT') --100 results

Share this post


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

And if in one search you get zero results, then next search start from scratch. So you need check count results before run next search,

 

Share this post


Link to post
Share on other sites

ah, I got it.

like this?

gg.searchNumber('19', gg.TYPE_FLOAT') --results 200
gg.searchNumber('25', gg.TYPE_FLOAT') --0 results (so because of the 0 results it will search 25 from scratch..
gg.searchNumber('25', gg.TYPE_FLOAT') --results 800

 

and if I don`t do a check on the count of results I have, the search will also start from scretch..?

Edited by XxhentaixX

Share this post


Link to post
Share on other sites
4 minutes ago, XxhentaixX said:


like this?

yes

 

4 minutes ago, XxhentaixX said:

and if I don`t do a check on the count of results I have, the search will also start from scretch..?

 

21 minutes ago, Enyby said:

if in one search you get zero results, then next search start from scratch.

 

Share this post


Link to post
Share on other sites

alright thanks for reply, I will use it in my next scrips because this one is almost finished. 
I`m sure to look in this looping to.
thanks for help Enby.

Share this post


Link to post
Share on other sites

yo ENBY, I have a problem, I'm putting speedhack in my script BUT, when the speedhack loads, it doesn't continue the script. its like it stay stucked with the speedhack... if I put it first or last...script won`t stop at that speedhack

I`m doing it like this:

gg.getSpeed('1')
gg.setSpeed('5')
gg.searchNumber('5', gg.TYPE_FLOAT)
gg.getResults('10', gg.TYPE_FLOAT)
gg.editAll('900', gg.TYPE_FLOAT)
goto sdone

any idea why script got stucked at speedhack? the other values don`t get runned. and even if they do, the script is still active. I don't think my users will like it when they need to press the "interrupt script" because of the speedhack.

thanks for reading and I hope there is a solution for this.

Share this post


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

gg.getSpeed('1')

This call no params need.

17 minutes ago, XxhentaixX said:

gg.getResults('10', gg.TYPE_FLOAT)

This call need only one param.

Share this post


Link to post
Share on other sites

sorry but is it possible to give a examble? I don`t know well what a param is.

Share this post


Link to post
Share on other sites

Parameter.
 

func() -- zero params.
func(a) -- single param func
func(a, b)  -- two params
func(a, b, c) -- 3 params

and so on

_______________________________________________
added 0 minutes later
38 minutes ago, XxhentaixX said:

any idea why script got stucked at speedhack?

Bug reproduced. Will be fixed in next release.

Share this post


Link to post
Share on other sites

oh I got it.
like this:

gg.getSpeed() --no param

gg.getResults(10) --single param

I got that.
thanks for the reply, can`t wait till the bug is fixed :)

when you have time, I`m looking for that looping like you told me.

but sadly at the moment I don`t completely get it. I tried something like this

s = gg.searchNumber(51, gg.TYPE_FLOAT)  ---the commands I want to repeat
s = gg.getResults(500)                                      ---the commands I want to repeat
repeat
print("value of s:", s)                                           ---don`t know what this is 
s = s                                                                      ---don`t know what this is 
until (s > 15)                                                        ---is this the times I want to repeat?

 

Share this post


Link to post
Share on other sites

I will not teach anyone the basics of programming. For this, there are a lot of great sites and articles.
Lua you can test online
https://www.lua.org/cgi-bin/demo

 

_______________________________________________
added 1 minute later
for i = 1, 50 do
print(i)
end

Simple loop for 50 iterations.

_______________________________________________
added 1 minute later

scr_1521397198.jpg

Share this post


Link to post
Share on other sites

kk, got it. thank you for the help

Share this post


Link to post
Share on other sites

yes I found it :D its like this:

for I = 1, 100 do
print(gg.searchNumber(100,000, gg.TYPE_FLOAT))
end

I did not understand at first :V thanks for the help

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
Sign in to follow this  

×
×
  • Create New...