Jump to content
We are investigating issues where accounts became locked on login attempt #1. Lock feature disabled for now. Γ—

hoangninyb

Members
  • Posts

    41
  • Joined

  • Last visited

Everything posted by hoangninyb

  1. modified values always return to original value, I don't want that to happen!
  2. gg.searchNumber("5", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) local t = gg.getResultsCount() local k = gg.getResults(t) for i, v in ipairs(k) do if v.flags == gg.TYPE_DWORD then v.value = "15" v.freeze = true end end gg.addListItems(k) You can try!
  3. 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
  4. I mean how to save the file containing the table with the items added!
  5. I have created an empty table Table = {} after running the script, the items have been added to it. can I save it to memory?
  6. Oh great bro! Thank u! Umh! Can I save Table1 to any file .txt?
  7. local Table = {} I use the insert method in the table and the result is: table.insert(Table, item) Table = {"A","B","C"} how can I overwrite item "A" in Table when I keep inserting "A" into Table?
  8. gg.refineNumber("5", gg.TYPE_DWORD) local count = gg.getResultsCount() local results = gg.getResults(count) for i, v in ipairs(results) do v.address = v.address + -16 end local values_1 = gg.getValues(results) gg.refineNumber("6", gg.TYPE_DWORD) local count = gg.getResultsCount() local results = gg.getResults(count) for i, v in ipairs(results) do v.address = v.address + -16 end local values_2 = gg.getValues(results) function ModAPet() local P = gg.prompt({"πŸ„ΈπŸ„½πŸ…‚πŸ„΄πŸ…πŸ…ƒ πŸ„ΈπŸ„³ πŸ……πŸ„°πŸ„»πŸ…„πŸ„΄πŸ…‚\n ‒━━━ ✽ β€’ ✽ ━━━‒\n\nSKILL - 1","SKILL - 2","SKILL - 3"},{"1111","1112","1113"},{"number","number","number"}) gg.clearResults() gg.loadResults(gg.getListItems()) gg.refineNumber(IDAP, gg.TYPE_DWORD) local count = gg.getResultsCount() local results = gg.getResults(count) local values = {} for i, v in ipairs(results) do local index = (i - 1) * 4 local addr = v.address values[index + 1] = {address = addr + 48, flags = gg.TYPE_DWORD, value = P[1], freeze = true} values[index + 2] = {address = addr + 64, flags = gg.TYPE_DWORD, value = P[2], freeze = true} values[index + 3] = {address = addr + 80, flags = gg.TYPE_DWORD, value = P[3], freeze = true} values[index + 4] = {address = addr + 96, flags = gg.TYPE_DWORD, value = "0", freeze = true} end gg.setValues(values) gg.addListItems(values) end local mapping = { [11920]={name_1 ="Jock 5", name_2 ="Jock 6", IDAP = "10111"}, [11921]={name_1 ="Mick 5", name_2 ="Mick 6", IDAP = "10112"}, [11922]={name_1 ="Key 5", name_2 ="Key 6", IDAP = "10113"}, [11923]={name_1 ="Jonseen 5", name_2 ="Jonseen 6", IDAP = "10114"}, [11924]={name_1 ="Brickey 5", name_2 ="Brickey 6", IDAP = "10115"} } local menuNames = {} local menuFunctions = {} local menuID = {} for i, v in ipairs(values_1) do local item = mapping[v.value] if item ~= nil then table.insert(menuNames, item.name_2) table.insert(menuFunctions, item.func) table.insert(menuID, item.IDAP) end end for i, v in ipairs(values_1) do local item = mapping[v.value] if item ~= nil then table.insert(menuNames, item.name_1) table.insert(menuFunctions, item.func) table.insert(menuID, item.IDAP) end end for i, v in ipairs(values_2) do local item = mapping[v.value] if item ~= nil then table.insert(menuNames, item.name_2) table.insert(menuFunctions, item.func) table.insert(menuID, item.IDAP) end end function Main() local Menu = gg.choice({"Menu A","Menu B"}, nil, "Main") if Menu == 1 then MenuA() end if Menu == 2 then MenuB() end if Menu == 3 then os.exit() end XGCK=-1 end function MenuA() local A = gg.choice(menuNames) if A ~= nil then TenQV = menuNames[choice] IDAP = menuID[choice] ModAPet() end end function MenuB() -- I want to create a menu from items selected in MenuA() -- and when i select the item in MenuB it will also do TenQV = menuNames[choice], IDAP = menuID[choice] and ModAPet() same as in MenuA() end while(true)do if gg.isVisible(true) then XGCK=1 gg.setVisible(false) end gg.clearResults() if XGCK==1 then Main() end I want to create a menu from items selected in MenuA() and when i select the item in MenuB it will also do TenQV, IDAP and ModAPet() same as in MenuA()
  9. @CmP For example, the menu above is menu A and I have another menu B, can I transfer the data of menu A to menu B? only the data selected in menu A will appear in menu B! and how to not get error when i click cancel in prompt
  10. i did like this and it works! gg.refineNumber("2219816", gg.TYPE_DWORD) local count = gg.getResultsCount() local results = gg.getResults(count) for i, v in ipairs(results) do v.address = v.address + -16 end local values_1 = gg.getValues(results) gg.refineNumber("6", gg.TYPE_DWORD) local count = gg.getResultsCount() local results = gg.getResults(count) for i, v in ipairs(results) do v.address = v.address + -16 end local values_2 = gg.getValues(results) function ModAPet() local P = gg.prompt({"πŸ„ΈπŸ„½πŸ…‚πŸ„΄πŸ…πŸ…ƒ πŸ„ΈπŸ„³ πŸ……πŸ„°πŸ„»πŸ…„πŸ„΄πŸ…‚\n ‒━━━ ✽ β€’ ✽ ━━━‒\n\nSKILL - 1","SKILL - 2","SKILL - 3"},{"9014","6014","13618"},{"number","number","number"}) gg.clearResults() gg.loadResults(gg.getListItems()) gg.refineNumber(IDAP, gg.TYPE_DWORD) local count = gg.getResultsCount() local results = gg.getResults(count) local values = {} for i, v in ipairs(results) do local index = (i - 1) * 4 local addr = v.address values[index + 1] = {address = addr + 48, flags = gg.TYPE_DWORD, value = P[1], freeze = true} values[index + 2] = {address = addr + 64, flags = gg.TYPE_DWORD, value = P[2], freeze = true} values[index + 3] = {address = addr + 80, flags = gg.TYPE_DWORD, value = P[3], freeze = true} values[index + 4] = {address = addr + 96, flags = gg.TYPE_DWORD, value = "0", freeze = true} end gg.setValues(values) gg.addListItems(values) end local mapping = { [10111]={name_1 ="Jock 2219816", name_2 ="Jock 6", IDAP = "10111", func = ModAPet}, [10112]={name_1 ="Mick 2219816", name_2 ="Mick 6", IDAP = "10112", func = ModAPet}, [10113]={name_1 ="Key 2219816", name_2 ="Key 6", IDAP = "10113", func = ModAPet}, [10114]={name_1 ="Jonseen 2219816", name_2 ="Jonseen 6", IDAP = "10114", func = ModAPet}, [10115]={name_1 ="Brickey 2219816", name_2 ="Brickey 6", IDAP = "10115", func = ModAPet} } local menuNames = {} local menuFunctions = {} local menuID = {} for i, v in ipairs(values_1) do local item = mapping[v.value] if item ~= nil then table.insert(menuNames, item.name_2) table.insert(menuFunctions, item.func) table.insert(menuID, item.IDAP) end end for i, v in ipairs(values_1) do local item = mapping[v.value] if item ~= nil then table.insert(menuNames, item.name_1) table.insert(menuFunctions, item.func) table.insert(menuID, item.IDAP) end end for i, v in ipairs(values_2) do local item = mapping[v.value] if item ~= nil then table.insert(menuNames, item.name_2) table.insert(menuFunctions, item.func) table.insert(menuID, item.IDAP) end end local choice = gg.choice(menuNames) if choice ~= nil then menuFunctions[choice]() end @CmP For example, the menu above is menu A and I have another menu B, can I transfer the data of menu A to menu B? only the data selected in menu A will appear in menu B!
  11. @CmP is it possible to add a search value to the name? i searched with 2219816;6::25 if 2219816 and v.address = v.address + -16 the value is 10111 then name ="Jock 2219816" Or if 6 and v.address = v.address + -16 the value is 10111 then name = "Jock 6" Can you do that?
  12. I got it! thank you very much!
  13. it works fine man! I'm just curious about the new methods! can be said to be eager to learn
  14. Can you give me a small example?
  15. @CmP can you help me! this is my code and i have edited it many times but it still gives me error like in the picture! gg.refineNumber("2219816;6::25", gg.TYPE_DWORD) local count = gg.getResultsCount() local results = gg.getResults(count) for i, v in ipairs(results) do v.address = v.address + -16 end local values = gg.getValues(results) function ModAPet() local P = gg.prompt({"πŸ„ΈπŸ„½πŸ…‚πŸ„΄πŸ…πŸ…ƒ πŸ„ΈπŸ„³ πŸ……πŸ„°πŸ„»πŸ…„πŸ„΄πŸ…‚\n ‒━━━ ✽ β€’ ✽ ━━━‒\n\nSKILL - 1","SKILL - 2","SKILL - 3"},{"9014","6014","13618"},{"number","number","number"}) gg.clearResults() gg.loadResults(gg.getListItems()) gg.refineNumber(IDAP, gg.TYPE_DWORD) local count = gg.getResultsCount() local results = gg.getResults(count) local values = {} for i, v in ipairs(results) do local index = (i - 1) * 4 local addr = v.address values[index + 1] = {address = addr + 48, flags = gg.TYPE_DWORD, value = P[1], freeze = true} values[index + 2] = {address = addr + 64, flags = gg.TYPE_DWORD, value = P[2], freeze = true} values[index + 3] = {address = addr + 80, flags = gg.TYPE_DWORD, value = P[3], freeze = true} values[index + 4] = {address = addr + 96, flags = gg.TYPE_DWORD, value = "0", freeze = true} end gg.setValues(values) gg.addListItems(values) end local mapping = { [10111]={name ="Jock", IDAP = "10111", func = ModAPet}, [10112]={name ="Mick", IDAP = "10112", func = ModAPet}, [10113]={name ="Key", IDAP = "10113", func = ModAPet}, [10114]={name ="Jonseen", IDAP = "10114", func = ModAPet}, [10115]={name ="Brickey", IDAP = "10115", func = ModAPet} } local menuNames = {} local menuFunctions = {} local menuID = {} for i, v in ipairs(values) do local item = mapping[v.value] if item ~= nil then table.insert(menuNames, item.name) table.insert(menuFunctions, item.func) table.insert(menuID, item.IDAP) end end local choice = gg.choice(menuNames) if choice ~= nil then menuFunctions[choice]() end
  16. @HEROGAMEOfficial @CmP sorry I have one more question. can i freeze them forever?
  17. Very Thanksthank you very much! it works great Thanks for helping me! problem solved! it's great!
  18. finding the value is very fast, but setvalue is very long! yes it is common ground!
  19. Hi! My code: function setVal (address, value) local t = {{ address = address, flags = 4, value = value, freeze = true, }} gg.setValues(t) end gg.searchNumber("2219816;6::25", gg.TYPE_DWORD) gg.refineNumber("2219816", gg.TYPE_DWORD) local p = gg.getResultCount() local m = gg.getResults(p) for i = 1,p do addr = m[i].address setVal (addr + 64, 7) setVal (addr + 80, 8) setVal (addr + 96, 9) setVal (addr + 112, 10) end my problem is that there are a lot of 2219816 values, and the modification takes a long time. Do you guys have any method that can help me to do it quickly? Thanks!
  20. Hey bro! I solved this problem using gg.clearList() gg.saveList() gg.loadList() thank you for your help!
  21. Bro, it 20210704_480p.mp4 Don't work [added 4 minutes later] gg.clearListItems() error
  22. Hey bro! when my values change, they freeze. And only some of the changed values are the same, and the default value is not the same, I think it's hard math!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.