hoangninyb Posted October 19, 2021 Share Posted October 19, 2021 hello, my script is written as follows: local P = gg.prompt( {"πΈπ½π π΄π π πΈπ³ π π°π»π π΄π \n β’βββ"..TenQV.." βΎββββ’\n\nSKILL - 1","SKILL - 2","SKILL - 3"}, {SKP_1,SKP_2,SKP_3}, {"number","number","number"}) if P ~= nil then if string.len(P[1]) > 5 or string.len(P[1]) < 4 or string.len(P[2]) > 5 or string.len(P[2]) < 4 or string.len(P[3]) > 5 or string.len(P[3]) < 4 then gg.alert('Invalid skill!') return ModAPet() end local values = {} for i, v in ipairs(results) do local index = (i - 1) * 4 local addr = v.address values[index + 1] = {address = addr + 32, flags = gg.TYPE_DWORD, value = P[1], freeze = true} values[index + 2] = {address = addr + 40, flags = gg.TYPE_DWORD, value = P[2], freeze = true} values[index + 3] = {address = addr + 48, flags = gg.TYPE_DWORD, value = P[3], freeze = true} values[index + 4] = {address = addr + 56, flags = gg.TYPE_DWORD, value = "0", freeze = true} end gg.setValues(values) gg.addListItems(values) but it's not working well! When the match ends, all skills will return to their original state,Β and just click on the GG icon and the skills will be modified you can see in the script the values are frozen Link to comment Share on other sites More sharing options...
HEROGAMEOfficial Posted October 19, 2021 Share Posted October 19, 2021 "I can't find a way to fix this. help me!"Β what isΒ problem? Link to comment Share on other sites More sharing options...
hoangninyb Posted October 20, 2021 Author Share Posted October 20, 2021 1 hour ago, HEROGAMEOfficial said: "I can't find a way to fix this. help me!"Β what isΒ problem? modified values always return to original value, I don't want that to happen! Link to comment Share on other sites More sharing options...
Jhosefbr Posted October 20, 2021 Share Posted October 20, 2021 18 hours ago, hoangninyb said: hello, my script is written as follows: local P = gg.prompt( {"πΈπ½π π΄π π πΈπ³ π π°π»π π΄π \n β’βββ"..TenQV.." βΎββββ’\n\nSKILL - 1","SKILL - 2","SKILL - 3"}, {SKP_1,SKP_2,SKP_3}, {"number","number","number"}) if P ~= nil then if string.len(P[1]) > 5 or string.len(P[1]) < 4 or string.len(P[2]) > 5 or string.len(P[2]) < 4 or string.len(P[3]) > 5 or string.len(P[3]) < 4 then gg.alert('Invalid skill!') return ModAPet() end local values = {} for i, v in ipairs(results) do local index = (i - 1) * 4 local addr = v.address values[index + 1] = {address = addr + 32, flags = gg.TYPE_DWORD, value = P[1], freeze = true} values[index + 2] = {address = addr + 40, flags = gg.TYPE_DWORD, value = P[2], freeze = true} values[index + 3] = {address = addr + 48, flags = gg.TYPE_DWORD, value = P[3], freeze = true} values[index + 4] = {address = addr + 56, flags = gg.TYPE_DWORD, value = "0", freeze = true} end gg.setValues(values) gg.addListItems(values) but it's not working well! When the match ends, all skills will return to their original state,Β and just click on the GG icon and the skills will be modified you can see in the script the values are frozen I'm not an expert on the subject, but I have a suspicion about what it might be. possibly the skill values change your location every game, so in a game the value will be changed by your mod, but when you start another game, you'll have to change it again. I don't know how to fix it, but I think the error is not in the script. (Sorry for bad English) xD Link to comment Share on other sites More sharing options...
hoangninyb Posted October 20, 2021 Author Share Posted October 20, 2021 @HEROGAMEOfficialΒ @Jhosefbr thank you! I solved the following: values[index + 1] = {address = addr + 56, flags = gg.TYPE_DWORD, value = P[1], freeze = true, freezeType = gg.FREEZE_IN_RANGE, freezeFrom = P[1], freezeTo = P[1]} use freeze in range I have a question: can i check 32bit or 64bit device? @HEROGAMEOfficialΒ @Jhosefbr Link to comment Share on other sites More sharing options...
Lover1500 Posted October 20, 2021 Share Posted October 20, 2021 1 hour ago, hoangninyb said: can i check 32bit or 64bit device? You mean if the running game is 32 or 64 bit? https://gameguardian.net/help/classgg.html#a312c7d90473026e38c67ffd24fd970d7 gg.getTargetInfo().x64 is the one you need Link to comment Share on other sites More sharing options...
hoangninyb Posted October 20, 2021 Author Share Posted October 20, 2021 6 hours ago, Lover1500 said: You mean if the running game is 32 or 64 bit? https://gameguardian.net/help/classgg.html#a312c7d90473026e38c67ffd24fd970d7 gg.getTargetInfo().x64 is the one you need i read through and really confused! Can you give me a specific example? Link to comment Share on other sites More sharing options...
hoangninyb Posted October 20, 2021 Author Share Posted October 20, 2021 oh i found it local v = gg.getTargetInfo() if v.x64 == true then Β Β gg.alert("64") else Β Β Β Β gg.alert("32") end Link to comment Share on other sites More sharing options...
Question
hoangninyb
hello, my script is written as follows:
but it's not working well!
When the match ends, all skills will return to their original state,Β and just click on the GG icon and the skills will be modified
you can see in the script the values are frozen
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.