XxhentaixX 118 Posted March 14, 2018 (edited) 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 March 14, 2018 by XxhentaixX 0 Share this post Link to post Share on other sites
Enyby 5,829 Posted March 14, 2018 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, 0 Share this post Link to post Share on other sites
XxhentaixX 118 Posted March 14, 2018 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 resultssearchNumber('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 0 Share this post Link to post Share on other sites
Enyby 5,829 Posted March 14, 2018 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, 0 Share this post Link to post Share on other sites
XxhentaixX 118 Posted March 14, 2018 (edited) ah, I got it. like this?gg.searchNumber('19', gg.TYPE_FLOAT') --results 200gg.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 March 14, 2018 by XxhentaixX 0 Share this post Link to post Share on other sites
Enyby 5,829 Posted March 14, 2018 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. 0 Share this post Link to post Share on other sites
XxhentaixX 118 Posted March 14, 2018 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. 0 Share this post Link to post Share on other sites
XxhentaixX 118 Posted March 18, 2018 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. 1 Share this post Link to post Share on other sites
Enyby 5,829 Posted March 18, 2018 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. 0 Share this post Link to post Share on other sites
XxhentaixX 118 Posted March 18, 2018 sorry but is it possible to give a examble? I don`t know well what a param is. 0 Share this post Link to post Share on other sites
Enyby 5,829 Posted March 18, 2018 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. 0 Share this post Link to post Share on other sites
XxhentaixX 118 Posted March 18, 2018 oh I got it. like this:gg.getSpeed() --no paramgg.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? 0 Share this post Link to post Share on other sites
Enyby 5,829 Posted March 18, 2018 I will not teach anyone the basics of programming. For this, there are a lot of great sites and articles.Lua you can test onlinehttps://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 0 Share this post Link to post Share on other sites
XxhentaixX 118 Posted March 18, 2018 kk, got it. thank you for the help 0 Share this post Link to post Share on other sites
XxhentaixX 118 Posted March 19, 2018 yes I found it 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 1 Share this post Link to post Share on other sites