Jump to content

hoangninyb

Ascended
  • Posts

    51
  • Joined

  • Last visited

Additional Information

  • Android
    11.x
  • Device
    Redmi k40

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

hoangninyb's Achievements

Contributor

Contributor (5/14)

  • Dedicated Rare
  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare

Recent Badges

7

Reputation

  1. you just need to remove "add menu[2]", "and menu[4]" and "and menu[6]" in lines 12, 13 and 14
  2. @LemaKeltter u can try with F1vm or x8sanbox
  3. i don't understand what you mean, i tried with a piece of code like this, and when i click cancel the menu is always hidden, no matter what menu! X = {"A","B"} function A() menu = gg.choice(X,nil,"Menu A") if menu == 1 then B() end if menu == 1 then B() end Homedm = -1 end function B() menu = gg.choice(X,nil,"Menu B") if menu == 1 then C() end if menu == 1 then C() end Homedm = -1 end function C() menu = gg.choice(X,nil,"Menu C") if menu == 1 then A() end if menu == 1 then A() end Homedm = -1 end while true do if gg.isVisible(true) then Homedm = 1 gg.setVisible(false) end if Homedm == 1 then A() end end
  4. gg.clearResults() gg.loadResults(gg.getListItems()) -- get values in list item gg.refineNumber("7777888", gg.TYPE_DWORD) -- filter value 7777888 local results = gg.getResults(1) t ={} t[1] = {} t[1].address = results[1].address + 4 -- offset 4 t[1].flags = 4 -- type Dword k ={} k[1] = {} k[1].address = results[1].address + 8 -- type Dword 8 k[1].flags = 4 -- type Dword C = gg.getValues(t)[1].value -- get the C value D = gg.getValues(k)[1].value -- get the D value gg.clearResults() gg.loadResults(gg.getListItems()) -- get values in list item gg.refineNumber("55556666", gg.TYPE_DWORD) -- filter value 55556666 local count = gg.getResultsCount() local results = gg.getResults(count) get all values from count local values = {} for i, v in ipairs(results) do local index = (i - 1) * 2 local addr = v.address values[index + 1] = {address = addr + 4, flags = gg.TYPE_DWORD, value = C, freeze = true} -- set C to A values[index + 2] = {address = addr + 8, flags = gg.TYPE_DWORD, value = D, freeze = true} -- set D to B end gg.setValues(values) gg.addListItems(values) Is this what you want?
  5. hi guys! I'm trying to find a method to remove an element from the table! A ={"a","b","c"} P = prompt({"input"},"{"a"}) for i, v in ipairs(A) do if P[1] == A[i] then A[i] = nil break end end when i set A[1] = "a" to A[1] = nil then print out nil, but i want print out "b"
  6. but I don't just have "A" I also have "B" Name = "B" X_1 = 211 X_2 = 224 X_3 = 236 and "C", "D".... if using but like you the following values will be replaced, i want to insert!
  7. My code local Hack = {} Name = "A" X_1 = 111 X_2 = 112 X_3 = 113 item = "/storage/emulated/0/Download/abc1.lua" table.insert(Hack, Name) table.insert(Hack, X_1) table.insert(Hack, X_2) table.insert(Hack, X_3) gg.saveVariable(Hack, item) after run, i got; local a,b,c,d,e,f,g,h,v,t='address','value','flags','name','freeze','freezeType','freezeFrom','freezeTo',nil v={{'A';111;112;113;};} return v[1] but file I want: local a,b,c,d,e,f,g,h,v,t='address','value','flags','name','freeze','freezeType','freezeFrom','freezeTo',nil v={{['X_2']=112;['X_3']=113;['X_1']=111;['Name']='A';};{nil;};} t=v[2] t[1]=v[1] return v[2] I don't know where I went wrong! please help me!
  8. oh i found it local v = gg.getTargetInfo() if v.x64 == true then gg.alert("64") else gg.alert("32") end
  9. i read through and really confused! Can you give me a specific example?
  10. @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
  11. modified values always return to original value, I don't want that to happen!
  12. 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!
  13. Thank! it worked!
  14. 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
  15. I mean how to save the file containing the table with the items added!
×
×
  • 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.