Jump to content

Ardit19

Members
  • Posts

    19
  • Joined

  • Last visited

Additional Information

  • Android
    13.x
  • Device
    SM-A20s

Profile Fields

  • Discord ID
    DiTi#8213

Recent Profile Visitors

1,512 profile views

Ardit19's Achievements

  1. Works like a charm! Thanks a lot! I appreciate it
  2. Here me out if Prompt[2] is 2000 for example then to search 1248889551 and if Prompt[1] is 10000 to edit with 1248889555. I don't know if it's clear, but that's how I want it to work
  3. I have created a code that search and edits values depending on user inputs, but when it comes in executing it gg says that the search value is nil, even though inputs are not empty. Error: gg.searchNumber(nBV[num2], gg.TYPE_DWORD) bad argument #1: nil: string expected, got nil (field 'searchNumber') local nBV = { [1248889551] = 2000, [1248889552] = 4000, [1248889553] = 6000, [1248889554] = 8000, [1248889555] = 10000 } local PromptN = gg.prompt({[2] = 'Type Gold Storage Capacity Right Now', [1] = 'Type Ideal Gold Storage Capacity [ 2000 ~ 10000 ]'}, {[2] = 2000, [1] = 10000}, {[2] = 'number', [1] = 'number'}) if PromptN[1] == nil or PromptN[1] == '' or PromptN[2] == nil or PromptN[2] == '' then gg.toast('Canceling, Please Type Values!') else local num1 = PromptN[1] local num2 = PromptN[2] gg.clearResults() gg.clearList() gg.searchNumber(nBV[num2], gg.TYPE_DWORD) gg.getResults(gg.getResultsCount()) gg.editAll(nBV[num1], gg.TYPE_DWORD) gg.clearList() gg.clearResults() end Any help would be appreciated!
  4. Second solution does not work as I tried multiple times, I got it from chatGPT. As per the rest solutions will try. Thanks for the answer!
  5. gg.addListItems(gg.getResults(gg.getResultsCount())) res = gg.getListItems() gg.clearResults() if not false then gg.removeListItems(res) end for i, v in ipairs(res) do v.address = v.address + 0x8 end gg.addListItems(res) res = gg.getListItems() if not false then gg.removeListItems(res) end for i, v in ipairs(res) do if v.value == 12340000 then v.name = "Name 2" elseif v.value == 12345000 then v.name = "Name 2" elseif v.value == 12345600 then v.name = "Name 3" else -- remove the rest of the list end end gg.addListItems(res) ress = gg.getListItems() if not false then gg.removeListItems(res) end for i, v in ipairs(res) do v.address = v.address - 0x8 end gg.addListItems(res)
  6. I found a way to do it from first value to go to 3rd without needing to save all results. You say that the code you attached will load first three results but I want to load only the third for example. If there is a way if not I will stick to the solution I found.
  7. I want to save values to a table and since pointer values are same load result won't work because I have tried. I want for example to load 3rd value and then pointer search it again. Thanks for the reply!
  8. gg.searchNumber("h 10 00 90 E5 1E FF 2F E1 1C 30 9F E5", gg.TYPE_BYTE, false, gg.SIGN_EQUAL, 0, -1) gg.refineNumber("16", gg.TYPE_BYTE) gg.searchPointer(0) results = gg.getResults(15) gg.addListItems(results) test = gg.getListItems() gg.clearResults() gg.clearList()
  9. Thanks for the answer even though it didn't help but overall I achieved it! CLOSED!
  10. gg.searchNumber("1040372000", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.clearResults() gg.addListItems((gg.getResults(gg.getResultsCount()))) for i, i in ipairs((gg.getResults(gg.getResultsCount()))) do i.address = i.address - 0x8 end gg.addListItems((gg.getResults(gg.getResultsCount()))) gg.loadResults((gg.getResults(gg.getResultsCount()))) gg.clearList() gg.refineNumber("12000", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.clearResults() for i, i in ipairs((gg.getResults(1))) do i.address = i.address - 0x24 end gg.addListItems((gg.getResults(1))) gg.clearList() test = gg.getListItems("1") gg.searchNumber(test[1].value, gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.clearResults() for i, i in ipairs((gg.getResults(2000))) do i.address = i.address + 0x238 i.value = "0" end gg.addListItems((gg.getResults(2000))) gg.setValues((gg.getResults(2000))) gg.addListItems((gg.getListItems()))
×
×
  • 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.