Jump to content
  • 0

7000+ lines of script in 11 hours work ?


Platonic
 Share

Question

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
Link to comment
Share on other sites

15 answers to this question

Recommended Posts

  • 0
  • Administrators

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,

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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
Link to comment
Share on other sites

  • 0
  • Administrators
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.

 

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

  • 0
  • Administrators

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.

Link to comment
Share on other sites

  • 0

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?

 

Link to comment
Share on other sites

  • 0
  • Administrators

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

Link to comment
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
 Share

×
×
  • 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.