Jump to content
Sign in to follow this  
Rs92ks

Lua change value

Recommended Posts

kk1=1890
gg.clearResults()
gg.setRanges(32)
gg.searchNumber(kk1..'x4',4)
hk=gg.getResults(999)
for _,p in ipairs(hk) do
  p2=({address=p.address+0x4,flags=4})
  if
    p2.value==1 then
    p.value=99999 gg.setValues(hk)
  end
end

Help. Value with random xor key. My script changing to value=value. How to fix?

Share this post


Link to post
Share on other sites

27 minutes ago, Rs92ks said:

p2.value==1

Never true, because you create table without value.

Maybe you forget call getValues.

[added 3 minutes later]
kk1=1890
gg.clearResults()
gg.setRanges(32)
gg.searchNumber(kk1..'x4',4)
hk=gg.getResults(999)
hn=gg.getResults(999)
for _,p in ipairs(hn) do
  p.address = p.address+0x4
end
hn = gg.getValues(hn)
for i,p in ipairs(hk) do
  if hn[i].value==1 then
    p.value=99999
  end
end
gg.setValues(hk)

 

Share this post


Link to post
Share on other sites

Works

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Similar Content

    • By argarrize
      View File Minecraft PE
      Hi Everyone Please Read This!
      This Script still Beta, Sorry if there are features that don't work, But so far I've used it just fine.
      Tutorial (Important)
      ➤ For feature High Jump its work for mode survival, creative, even if u at realms, server, and etc. You can custom How high is your jump on Extra Menu.
      ➤ For feature Lock FOV Run its work all mode too, but if u want to activating / deactivating, You have to stay put or walk, don't run.
      ➤ For feature Settings V2 its same like MCPE settings but you can force custom what you want. (But some device not work) 
      I'll Update features just wait.
      thanks.
      Submitter argarrize Submitted 08/05/2020 Category LUA scripts  
    • By argarrize
      Hi Everyone Please Read This!
      This Script still Beta, Sorry if there are features that don't work, But so far I've used it just fine.
      Tutorial (Important)
      ➤ For feature High Jump its work for mode survival, creative, even if u at realms, server, and etc. You can custom How high is your jump on Extra Menu.
      ➤ For feature Lock FOV Run its work all mode too, but if u want to activating / deactivating, You have to stay put or walk, don't run.
      ➤ For feature Settings V2 its same like MCPE settings but you can force custom what you want. (But some device not work) 
      I'll Update features just wait.
      thanks.
    • By RevealedSoulEven
      local memFrom, memTo, lib, num, lim, results, src, ok = 0, -1, nil, 0, 32, {}, nil, false function name(n) if lib ~= n then lib = n local ranges = gg.getRangesList(lib) if #ranges == 0 then print("USE FREE FIRE BRO") gg.toast("USE FREE FIRE BRO") os.exit() else memFrom = ranges[1].start memTo = ranges[#ranges]["end"] end end end function hex2tbl(hex) local ret = {} hex:gsub("%S%S", function (ch) ret[#ret + 1] = ch return "" end) return ret end function original(orig) local tbl = hex2tbl(orig) local len = #tbl if len == 0 then return end local used = len if len > lim then used = lim end local s = '' for i = 1, used do if i ~= 1 then s = s..";" end local v = tbl[i] if v == "??" or v == "**" then v = "0~~0" end s = s..v.."r" end s = s.."::"..used gg.searchNumber(s, gg.TYPE_BYTE, false, gg.SIGN_EQUAL, memFrom, memTo) if len > used then for i = used + 1, len do local v = tbl[i] if v == "??" or v == "**" then v = 256 else v = ("0x"..v) + 0 if v > 127 then v = v - 256 end end tbl[i] = v end end local found = gg.getResultCount(); results = {} local count = 0 local checked = 0 while true do if checked >= found then break end local all = gg.getResults(8) local total = #all local start = checked if checked + used > total then break end for i, v in ipairs(all) do v.address = v.address + myoffset end gg.loadResults(all) while start < total do local good = true local offset = all[1 + start].address - 1 if used < len then local get = {} for i = lim + 1, len do get[i - lim] = {address = offset + i, flags = gg.TYPE_BYTE, value = 0} end get = gg.getValues(get) for i = lim + 1, len do local ch = tbl[i] if ch ~= 256 and get[i - lim].value ~= ch then good = false break end end end if good then count = count + 1 results[count] = offset checked = checked + used else local del = {} for i = 1, used do del[i] = all[i + start] end gg.removeResults(del) end start = start + used end end end function replaced(repl) num = num + 1 local tbl = hex2tbl(repl) if src ~= nil then local source = hex2tbl(src) for i, v in ipairs(tbl) do if v ~= "??" and v ~= "**" and v == source[i] then tbl[i] = "**" end end src = nil end local cnt = #tbl local set = {} local s = 0 for _, addr in ipairs(results) do for i, v in ipairs(tbl) do if v ~= "??" and v ~= "**" then s = s + 1 set[s] = { ["address"] = addr + i, ["value"] = v.."r", ["flags"] = gg.TYPE_BYTE, } end end end if s ~= 0 then gg.setValues(set) end ok = true end gg.clearResults() t = gg.getListItems() gg.removeListItems(t) function SE( libil2cpp = "13073.3740234375;9.219563e-41;3.6734241e-39;1.4012985e-45;4.8808683e-39::25" libunity = "13073.3740234375;9.219563e-41;3.6734241e-39;1.4012985e-45;7.286752e-44;2.7887936e-38::33"  
      This is a code usually Free Fire hackers(me too) use in their scripts.
       
      We use these functions to hack LIBIL2CPP.SO offsets.
       
      For example if we want to hack free fire gold then we take "get_userCoins();" offset from dump.cs using il2cppdumper.exe by Prefare and then use it like this
       
      gg.setRanges(gg.REGION_CODE_APP | gg.REGION_C_DATA) name("libil2cpp.so") myoffset = 0x.... --lib offset of original("7F 45 4C 46 01 01 01 00") replaced("68 00 A0 E3 1E FF 2F E1") gg.clearResults()  
      This way we hack it! The replaced hex will return 68 values of coins(maybe it's for client side and fake).
       
      @Enyby and @d2dyno please help me on finding these offsets from game guardian. Many of the hackers use GG to get offsets from libil2cpp.so
       
      Can anyone please tell me how to find hacks from this lib and find offsets from GG ?
       
      THANK YOU
    • By n3kitOzz
      Im going to write aim, its freezing enemy position in one place with my coords. But i need to freeze all cords without my coords.
       
      x_cord = {} y_cord = {} z_cord = {} x_cord[1] = {} y_cord[1] = {} z_cord[1] = {} function aim() gg.clearResults() gg.setRanges(gg.REGION_C_ALLOC) gg.searchNumber('1.0;0.65000009537;0.15000000596::18', gg.TYPE_FLOAT) gravitation = gg.getResults(1) x_cord[1].address = gravitation[1].address - 28 y_cord[1].address = gravitation[1].address - 24 z_cord[1].address = gravitation[1].address - 20 --[[here is only mine coords, x, y and z]] x_cord[1].flags = gg.TYPE_FLOAT y_cord[1].flags = gg.TYPE_FLOAT z_cord[1].flags = gg.TYPE_FLOAT gg.toast('finded your xyz') gg.clearResults() gg.setRanges(gg.REGION_C_ALLOC) gg.searchNumber('1 028 443 341;1 956 496 814;1 000 593 162;992 204 554;1 053 609 164;1 052 938 075::60', gg.TYPE_DWORD) --[[this one can find coords of all players, and mine]] gg.refineNumber('1 052 938 075', gg.TYPE_DWORD) vals = gg.getResults(500) --[[here i need a cycle for, this cycle offsets to +30, +34, +38 address from refined, checks with x_cord[1], y_cord..., if equal - ignore, becouse i dont need to freeze myself, else - edit and freeze it to my coords. I tried to do this manually, this is working. Help me with this cycle]] end  
    • By TansoGaming
      Guys is it possible to hack World of Dragon Nest using game guardian? Also if any of you have scripts that can help, I'd appreciate it.
×
×
  • Create New...