TheParadigm Posted July 14, 2019 Share Posted July 14, 2019 I know the specific address I want to go to and edit a value at. What's the usage of gotoAdress can I do the below? gg.gotoAddress(0x874C368) gg.getResults(1) gg.editAll(999999, gg.TYPE_FLOAT) Link to comment Share on other sites More sharing options...
Metin011 Posted March 2, 2020 Share Posted March 2, 2020 -- Scrit edited ( Bymeto ) -- example Script -- we enter our dong if gg.isVisible(true) then gg.setVisible(false) end gg.setRanges(gg.REGION_CODE_APP) -- memory select -- Hex code enter ( Byte) -- I use bytes because it scans the fastest --byte values gg.searchNumber("h 00 2A 9D ED 0D 1A 94 ED 00 0A 22 EE 01 8A 9D ED 01 9A 20 EE 52 C3 00 EB", gg.TYPE_BYTE, false, gg.SIGN_EQUAL, 0, -1) z = gg.getResults(1,20) -- we determine what value to consider in the -- scan gg.addListItems(z) -- we record the value we choose gg.clearResults() -- we delete the values we scanned on = 'ON' off = 'OFF' aim = on --We specify the switch button gg.setVisible(true) while (true) do if gg.isVisible(true) then gg.setVisible(false) -- we enter our dong menu = gg.multiChoice({ aim.." Aim Lock", "Exit"},nil, [[Test Menu]]) -- We create our table if menu == nil then else --Pressing a blank screen or cancel key --prevents it from failing if menu [1] then -- If the menu clicks 1 if aim == on then -- Set the Aim button on aim = off -- If Aim is off gg.getListItems(z) --the value in the -- z variable we recorded z[1].flags = gg.TYPE_DWORD --Go to Dword z[1].value = 'E3A0043Fh' --replace value with this gg.setValues(z) gg.toast('Aimlock Activated') --write bla bla -- because the goal was activated -- You guess the rest else aim = on gg.getListItems(z) z[1].value = 'EB00C352h' gg.setValues(z) gg.toast('AimLock Deactivated') end end if menu [2] then break end end gg.sleep(250) end end Link to comment Share on other sites More sharing options...
Agsuwbsj Posted May 28, 2020 Share Posted May 28, 2020 Upload script making method gob... Link to comment Share on other sites More sharing options...
Administrators Enyby Posted July 14, 2019 Administrators Share Posted July 14, 2019 No. gotoAddress only jump in memory editor in UI. try read help. You need getValues/setValues. https://gameguardian.net/help/ Link to comment Share on other sites More sharing options...
TheParadigm Posted July 14, 2019 Author Share Posted July 14, 2019 Is there a way to calculate offset from script? Here is my process I'm trying to replicate in Lua Press Goto Press Xa Select il2cpp.dll Select the top line Click Offset calculator Put in the method offset Edit the value at the offset Link to comment Share on other sites More sharing options...
Administrators Enyby Posted July 14, 2019 Administrators Share Posted July 14, 2019 Yes. use getRangesList for get lib address, add offset and use setValues. Link to comment Share on other sites More sharing options...
TheParadigm Posted July 14, 2019 Author Share Posted July 14, 2019 24 minutes ago, Enyby said: Yes. use getRangesList for get lib address, add offset and use setValues. Apologies if it's a stupid question but how do I add the offset? Link to comment Share on other sites More sharing options...
TheParadigm Posted July 14, 2019 Author Share Posted July 14, 2019 As an example my base address is 08000000 if I do goto and select il2cpp.so and my offset is 0x74C368 In code I've tried doing local result = gg.getRangesList('libil2pp.so') local addr = result[1].start + 0x74C368 print(result) But this doesn't give me the final address of the correct one to modify Link to comment Share on other sites More sharing options...
Administrators Enyby Posted July 14, 2019 Administrators Share Posted July 14, 2019 You print result in decimal. You view address in memory editor in hex. So you decide it is not match. Firstly convert to hex, before compare and make decision. Also you make typo: libil2cpp.so i think. Link to comment Share on other sites More sharing options...
Question
TheParadigm
I know the specific address I want to go to and edit a value at.
What's the usage of gotoAdress can I do the below?
gg.gotoAddress(0x874C368) gg.getResults(1) gg.editAll(999999, gg.TYPE_FLOAT)
Link to comment
Share on other sites
8 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.