nio04 Posted August 25, 2021 Posted August 25, 2021 How to 'os.exit' it, while someone peek at searching value values, when gg are searching values? Saw some script hav this weird feature... They can immediately terminate their script, while someone peeked when gg were searching Do anybody hav clue? Plz share it
0 maars Posted May 8, 2022 Posted May 8, 2022 Actualy my pseudo code is -- Create a coroutine with infinite loop that check if gg.isVisible(true) then os.exit -- everytime you call gg.searchNumber make sure to resume the coroutine first then after the search in ended make sure to yield the coroutine but i got one problem, my coroutine is getting killed i dont know why script.lua 2
0 maars Posted May 8, 2022 Posted May 8, 2022 Never mind i have just done some research and find out coroutine actually block the main thread even it is executed in another state i have done some test local thread2 = coroutine.create(function () for i =1, 10 do print ("thread2") end end) local thread1 = coroutine.create(function () coroutine.resume(thread2) print ("thread1") end) coroutine.resume(thread1) 1
0 CmP Posted May 8, 2022 Posted May 8, 2022 It's because of fundamentals of how Lua is implemented. The implementations (official one and LuaJ) are single-threaded, therefore only one operation can be performed at a time. Nothing can be done about it without changing the implementation.
0 CmP Posted May 8, 2022 Posted May 8, 2022 Relevant explanation from StackOverflow answer: https://stackoverflow.com/a/6389082 2
0 maars Posted May 8, 2022 Posted May 8, 2022 6 minutes ago, CmP said: Relevant explanation from StackOverflow answer: https://stackoverflow.com/a/6389082 Noice, thanks
0 SamePerson Posted June 10, 2023 Posted June 10, 2023 function Test() -- function name gg.setVisible(false) -- set visibility to false gg.setRanges(gg.REGION_ANONYMOUS) -- ranges name gg.searchNumber("your value", gg.TYPE_DWORD) -- input your value if gg.isVisible() then -- if the user tap the gg btn execute the code below while true do -- set true to trigger gg.clearResults() -- clear result gg.clearList() -- clear list so user can't peak the code gg.alert("Don't open GG while executing") -- alert os.exit() -- then exit end end end On 8/25/2021 at 8:37 PM, nio04 said: How to 'os.exit' it, while someone peek at searching value values, when gg are searching values? Saw some script hav this weird feature... They can immediately terminate their script, while someone peeked when gg were searching Do anybody hav clue? Plz share it
0 MitsuhaMone Posted December 28, 2023 Posted December 28, 2023 (edited) Is this correct? function Clear_Results_List() gg.clearResults() -- clear result gg.clearList() -- clear list so user can't peak the code end function Foo_Bar() gg.setVisible(false) -- set visibility to false gg.hideUiButton() -- At the beginning of every search function write> -- SEARCH gg.setRanges(gg.REGION_ANONYMOUS) -- ranges name gg.searchNumber(':foo') -- END-SEARCH if gg.isClickedUiButton() then Clear_Results_List() gg.alert("Do not open GG while executing, causing an error") -- alert os.exit() -- then exit end if gg.isVisible() then -- if the user tap the gg btn execute the code below while true do -- set true to trigger Clear_Results_List() gg.alert("Do not open GG while executing, causing an error") -- alert os.exit() -- then exit end end -- EDIT gg.getResults(gg.getResultsCount()) gg.editAll(':bar', gg.TYPE_BYTE) -- END-EDIT Clear_Results_List() gg.alert("DONE") -- alert -- gg.setVisible(true) -- set visibility to true -- gg.showUiButton() -- After all the searching and editing is done in the function write. That way the game guardian ui doesn't remain hidden end Foo_Bar() Edited December 28, 2023 by MitsuhaMone
0 Sami1982 Posted July 31, 2024 Posted July 31, 2024 On 4/4/2022 at 10:59 PM, MrMikeMichael said: I don't want to hide the GG icon. Just want GG to exit if they press GG icon when my script is searching for a value. That way someone can't peak on the group searches I've spent so many hours to find. Is there anything for that? I guess this is what reverse engineering is all about. Arguably anything can be cracked (even the most secure obfuscation) if someone is experienced enough. If you're so worried about what you've spent hours to find, then simply don't share it. This is what anyone with a brain will tell you. And let's not forget that the developers whose game you "spent hours to hack" have already spent 10 times more hours on it than you have, and guess what....you've managed to crack it So this is a non-ending cycle 1
Question
nio04
How to 'os.exit' it, while someone peek at searching value values, when gg are searching values?
Saw some script hav this weird feature... They can immediately terminate their script, while someone peeked when gg were searching
Do anybody hav clue? Plz share it
23 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now