GeorgeMonkey Posted November 11, 2022 Share Posted November 11, 2022 Hello how can i Search nearby after a value had Been Searched Example: lua script gg.setRanges(gg.REGION_C_ALLOC) gg.searchNumber("1058642330D;180", gg.TYPE_FLOAT) gg.getResults(999) gg.refineNumber("1058642330", gg.TYPE_DWORD) gg.getResults(999) gg.editAll("1092616192", gg.TYPE_DWORD) After it edit it will search nearby on all Of the value to get -1 Float Or Something when im going to search again Then I want The Next search to be Searching every single of the value nearby 1 by 1 Anyone Know?? Link to comment Share on other sites More sharing options...
Platonic Posted November 12, 2022 Share Posted November 12, 2022 16 hours ago, GeorgeMonkey said: Hello how can i Search nearby after a value had Been Searched Example: lua script gg.setRanges(gg.REGION_C_ALLOC) gg.searchNumber("1058642330D;180", gg.TYPE_FLOAT) gg.getResults(999) gg.refineNumber("1058642330", gg.TYPE_DWORD) gg.getResults(999) gg.editAll("1092616192", gg.TYPE_DWORD) After it edit it will search nearby on all Of the value to get -1 Float Or Something when im going to search again Then I want The Next search to be Searching every single of the value nearby 1 by 1 Anyone Know?? I don't understand why, Max group size with GG is ::65536, while you only want 5000. But i guess you want to do your method because your using refine. Perhaps include all the values you want to search with your method in one group search. As @under_score his example, then edit all the values from the result list directly. Perhaps this works. example: gg.setRanges(gg.REGION_C_ALLOC) gg.searchNumber("1058642330D;180D;-1F::65536", gg.TYPE_FLOAT) t = gg.getResults(gg.getResultsCount()) for i, v in ipairs(t) do if v.value == 1058642330 then v.value = 1092616192 elseif v.value == 180 then v.value = 1000 elseif v.value == -1.0 then v.value = 500 end end gg.setValues(t) gg.loadResults(t) Or do you have that much values to look for using your method that it would exceeds the size of ::65536 ? Also check this for more info on group searches: https://gameguardian.net/help/help.html#help_group_search_ Link to comment Share on other sites More sharing options...
Proejder Posted November 13, 2022 Share Posted November 13, 2022 gg.searchNumber("100~200", gg.TYPE_FLOAT) Link to comment Share on other sites More sharing options...
MAARS Posted November 13, 2022 Share Posted November 13, 2022 After you find your value, you can get that value address then make a new search by limiting the memory address for example you found this value local v = { value = 50, flags= gg.TYPE_DWORD, address=5228520 } now you can take the address local addr = v.address then then all you have to do is to offset that address before and after depending on the radius how far you want to search local memoryFrom = addr - 0x100 local memoryTo = addr + 0x140 then you can make your search that will act like a search nearby local results = gg.searchNumber("40", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, memoryFrom, memoryTo, 0) Link to comment Share on other sites More sharing options...
under_score Posted November 11, 2022 Share Posted November 11, 2022 17 minutes ago, GeorgeMonkey said: Hello how can i Search nearby after a value had Been Searched Example: lua script gg.setRanges(gg.REGION_C_ALLOC) gg.searchNumber("1058642330D;180", gg.TYPE_FLOAT) gg.getResults(999) gg.refineNumber("1058642330", gg.TYPE_DWORD) gg.getResults(999) gg.editAll("1092616192", gg.TYPE_DWORD) After it edit it will search nearby on all Of the value to get -1 Float Or Something when im going to search again Then I want The Next search to be Searching every single of the value nearby 1 by 1 Anyone Know?? gg.searchNumber("1058642330D;180;-1F", gg.TYPE_FLOAT) Link to comment Share on other sites More sharing options...
GeorgeMonkey Posted November 11, 2022 Author Share Posted November 11, 2022 1 minute ago, under_score said: gg.searchNumber("1058642330D;180;-1F", gg.TYPE_FLOAT) Not this one Du u know search nearby it will Do that 109218 then clear results and Searching nearby go 109218 range of 5000 Link to comment Share on other sites More sharing options...
under_score Posted November 11, 2022 Share Posted November 11, 2022 Just now, GeorgeMonkey said: Not this one Du u know search nearby it will Do that 109218 then clear results and Searching nearby go 109218 range of 5000 gg.searchNumber("1058642330D;180;-1F:5000", gg.TYPE_FLOAT) Link to comment Share on other sites More sharing options...
GeorgeMonkey Posted November 11, 2022 Author Share Posted November 11, 2022 1 minute ago, under_score said: gg.searchNumber("1058642330D;180;-1F:5000", gg.TYPE_FLOAT) U dont get it either But thanks for helping me briefly Link to comment Share on other sites More sharing options...
under_score Posted November 11, 2022 Share Posted November 11, 2022 2 minutes ago, GeorgeMonkey said: U dont get it either But thanks for helping me briefly gg.setRanges(gg.REGION_C_ALLOC) gg.searchNumber("1058642330D;180", gg.TYPE_FLOAT) gg.getResults(999) gg.refineNumber("1058642330", gg.TYPE_DWORD) local t=gg.getResults(1) gg.getResults(999) gg.editAll("1092616192", gg.TYPE_DWORD) gg.searchNumber("-1",gg.TYPE_FLOAT,memoryFrom=t, memoryTo=t+5000) Link to comment Share on other sites More sharing options...
Question
GeorgeMonkey
Hello how can i Search nearby after a value had Been Searched
Example: lua script
gg.setRanges(gg.REGION_C_ALLOC)
gg.searchNumber("1058642330D;180", gg.TYPE_FLOAT)
gg.getResults(999)
gg.refineNumber("1058642330", gg.TYPE_DWORD)
gg.getResults(999)
gg.editAll("1092616192", gg.TYPE_DWORD)
After it edit it will search nearby on all Of the value to get -1 Float Or Something when im going to search again
Then I want The Next search to be Searching every single of the value nearby 1 by 1
Anyone Know??
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.