Jump to content

TisNquyen

Ascended
  • Posts

    138
  • Joined

  • Last visited

  • Days Won

    5

Posts posted by TisNquyen

  1. 18 minutes ago, CmP said:

    There is one other detail regarding the comparison to "0" (string).

    Behavior of comparison operators for this case is described in the manual as follows: 

    For our case it means that the following condition

    _x[i].value ~= '0'

    will always evaluate to "true", because "value" field has value of number type.

    Correspondingly, correct comparison to check for value being not equal to zero is: 

    _x[i].value ~= 0

     it's still my fault, because I have never used this way of checking value before

    v.value = '0'

    I usually use this to set the value so it's a bit misleading =))

  2. 25 minutes ago, CmP said:

    This code is equivalent to your previous version.

    You don't make a copy of tables with this line: 

    local xValue, yValue = x, y

    Instead you create new variables that refer to the same tables, so it doesn't make any difference.

    Lua reference manual explains this pretty clearly: 

    you are right, if i do so then the result in xValue and yValue is still changed on LUA 5.3, but when i tried on gg I don't know how it worked 

    local x, y = {}, {}
    local xValue, yValue = {}, {}
    for i, v in ipairs(results) do
      if _x[i].value ~= '0' then
        x[#x+1] = _x[i]
        xValue[#x] = x[#x]--.value
      end
      if _y[i].value ~= '0' then
        y[#y+1] = _y[i]
        yValue[#y] = y[#y]--.value
      end
    end

     If you want to be more precise then try this

  3. gg.searchNumber('', gg.TYPE_FLOAT)
    gg.refineNumber('', gg.TYPE_FLOAT)
    local count = gg.getResultsCount()
    local results = gg.getResults(count)
    
    local _x, _y = {}, {}
    for i, v in ipairs(results) do
      _x[i] = {address = v.address + 0x44, flags = gg.TYPE_FLOAT}
      _y[i] = {address = v.address + 0x4C, flags = gg.TYPE_FLOAT}
    end
    _x, _y = gg.getValues(_x), gg.getValues(_y)
    
    local x, y = {}, {}
    for i, v in ipairs(results) do
      if _x[i].value ~= '0' then
        table.insert(x, x[i])
      end
      if _y[i].value ~= '0' then
       table.insert(y, y[i])
      end
    end
    
    if #x ~= #y then
      return print "the results from x and y may not be the same!"
    end
    local xValue, yValue = x, y
    
    for loop = 1, #x do
      for i, v in ipairs(x) do
        x[i].value = xValue[loop].value
        y[i].value = yValue[loop].value
      end
      gg.setValues(x)
      gg.setValues(y)
      gg.sleep(500)
    end

    if i want to have the same result of y and x then i will add it under yValue and xValue like so

  4. 1 hour ago, CmP said:

    The issue is in the code that needs to be repeated. When the code is executed for the first time, "value" fields of all sub-tables of the table ("x", for example) are set to "x[1].value", so that when the code is repeated and should set all values to second value, "x[2].value" is already modified to the value of "x[1].value", that's why each time the code is repeated, it sets all values to first value.

    To actually set all values of a table to value of different table element each time, make sure that there is a copy of values that doesn't get modified and in the code that gets repeated just use values from the copy to set "value" field of sub-tables. To make copy of values, construct a table in which indexes from original table (1, 2, 3, ...) are mapped to values of "value" field of corresponding sub-tables of the original table (x[1].value, x[2].value, x[3].value, ...), for example, like this: 

    local xValues = {}
    for i, v in ipairs(x) do
      xValues[i] = v.value
    end

    Then use values of constructed table in inner loop of the code that gets repeated (slightly modified version of the loop from @TisNquyen's post above): 

    for loop = 1, #x do
      for i = 1, #x do
        x[i].value = xValues[loop]
        y[i].value = yValues[loop]
      end
      gg.setValues(x)
      gg.setValues(y)
      gg.sleep(500)
    end

     ok buddy, this is my mistake =))

  5. 44 minutes ago, XxhentaixX said:

     

    Screenshot_2022-02-12-16-55-05-668_com.pixonic.wwr.jpg

    gg.searchNumber('', gg.TYPE_FLOAT)
    gg.refineNumber('', gg.TYPE_FLOAT)
    local count = gg.getResultsCount()
    local results = gg.getResults(count)
    
    local _x, _y = {}, {}
    for i, v in ipairs(results) do
      _x[i] = {address = v.address + 0x44, flags = gg.TYPE_FLOAT}
      _y[i] = {address = v.address + 0x4C, flags = gg.TYPE_FLOAT}
    end
    _x, _y = gg.getValues(_x), gg.getValues(_y)
    
    local x, y = {}, {}
    for i, v in ipairs(results) do
      if _x[i].value ~= '0' then
        table.insert(x, _x[i])
      end
      if _y[i].value ~= '0' then
       table.insert(y, _y[i])
      end
    end
    
    if #x ~= #y then
      return print "the results from x and y may not be the same!"
    end
    
    for loop = 1, #x do
      for i, v in ipairs(x) do
        x[i].value = x[loop].value
        y[i].value = y[loop].value
      end
      gg.setValues(x)
      gg.setValues(y)
      gg.sleep(500)
    end

     

  6. gg.searchNumber('', gg.TYPE_FLOAT)
    gg.refineNumber('', gg.TYPE_FLOAT)
    local count = gg.getResultsCount()
    local results = gg.getResults(count)
    
    local _x, _y = {}, {}
    for i, v in ipairs(results) do
      _x[i] = {address = v.address + 0x44, flags = gg.TYPE_FLOAT}
      _y[i] = {address = v.address + 0x4C, flags = gg.TYPE_FLOAT}
    end
    _x, _y = gg.getValues(_x), gg.getValues(_y)
    
    local x, y = {}
    for i, v in ipairs(results) do
      if _x[i].value ~= '0' then
        table.insert(x, _x[i])
      end
      if _y[i].value ~= '0' then
       table.insert(y, _y[i])
      end
    end
    
    if #x ~= #y then
      return print "the results from x and y may not be the same!"
    end
    
    for loop = 1, #x do
      for i, v in ipairs(x) do
        x[i].value = x[loop].value
        y[i].value = y[loop].value
      end
      gg.setValues(x)
      gg.setValues(y)
      gg.sleep(500)
    end

     

  7.  

    gg.searchNumber('', gg.TYPE_FLOAT)
    gg.refineNumber('', gg.TYPE_FLOAT)
    local count = gg.getResultsCount()
    local results = gg.getResults(count)
    
    local _x, _y = {}, {}
    for i, v in ipairs(results) do
      _x[i] = {address = v.address + 0x44, flags = gg.TYPE_FLOAT}
      _z[i] = {address = v.address + 0x4C, flags = gg.TYPE_FLOAT}
    end
    _x, _y = gg.getValues(_x), gg.getValues(_y)
    
    local x, y = {}
    for i, v in ipairs(_x) do
      if _x[i].value ~= '0' then
      	table.insert(x, x[i])
      end
      if _y[i].value ~= '0' then
     	table.insert(y, y[i])
      end
    end
    
    if #x ~= #y then
    	return print "the results from x and y may not be the same!"
    end
    
    for loop = 1, #x do
    	for i, v in ipairs(x) do
    		x[i].value = x[loop].value
    	end
    	gg.setValues(x)
    	for i, v in ipairs(z) do
    		z[i].value = z[loop].value
    	end
    	gg.setValues(z)
    	gg.sleep(500)
    end

     

  8.  This way I had [file - offset - hex patch]

    libgame-BPM-GooglePlay-Gold-Release-Module-2451.so     |     0x1d0b6d8     |     12 03 00 E3 1E FF 2F E1
    libgame-BPM-GooglePlay-Gold-Release-Module-2451.so     |     0x1d0b6d8     |     E7 03 00 E3
    libgame-BPM-GooglePlay-Gold-Release-Module-2451.so     |     0x1de62b8     |     00 00 00 00
    libgame-BPM-GooglePlay-Gold-Release-Module-2451.so     |     0x1d05504     |     00 00 0A 00
    libgame-BPM-GooglePlay-Gold-Release-Module-2451.so     |     0x1d05300     |     99 99 99 99
    libgame-BPM-GooglePlay-Gold-Release-Module-2451.so     |     0x1ca10cc     |     01 00 A0 E3 1E FF 2F E1

    Screenshot_2022-02-07-20-58-53-561_com.miniclip.eightballpool.jpg

  9. Data list to lua script


     Lua script generator tool from txt data file saved from Gameguardian

    Here is an example:

    function setvalue(address,flags,value) local tt={} tt[1]={} tt[1].address=address tt[1].flags=flags tt[1].value=value gg.setValues(tt) end
    
    so=gg.getRangesList('libil2cpp.so')[1].start
    local py=0x1B9E55C      
    setvalue(so+py,4,-484380672)

    Telegram : @tisnquyen


     

  10. On 5/23/2019 at 5:55 AM, Gzirry said:

    Hey  can you help me? When i use hide string or hide function

    The script encrypted give a error

     

     

     

     

    Script terminado:

    É possível que este script necessite da última versão do GameGuardian.

     

    Script error: luaj.LuaError: load /storage/emulated/0/Download/Graal era/hacks.luac: luaj.LuaError: /storage/emulated/0/Download/Graal era/hacks.luac:24

    `if load(string.dump(load(string.char(84,73)..string.char(83,32)..string.char(61,32)..string.char(103,103)..string.char(46,10...`

    unfinished string near '"cload(string.dump(load(string.char(84,73)..string.char(83,32)..string.char(61,32)..string.char(111,109)..string.char(46,113)..string.char(117,97)..string.char(116,116)..string.char(114,111)..string.char(112,108)..string.char(97,121)..string.char(46,71)..string.char(114,97)..string.char(97,108)..string.char(69,114)..string.char(97,115)..string.char(116,114)..string.char(105,110)..string.char(103,46)..string.char(99,104)..string.char(97,114)..string.char(40,51)..string.char(50,44)..string.char(49,49)..string.char(54,41)..string.char(46,46)..string.char(115,116)..string.char(114,105)..string.char(110,103)..string.char(46,99)..string.char(104,97)..string.char(114,40)..string.char(49,48)..string.char(52,44)..string.char(49,48)..string.char(49,41)..string.char(46,46)..string.char(115,116)..string.char(114,105)..string.char(110,103)..string.char(46,99)..string.char(104,97)..string.char(114,40)..string.char(49,49)..string.char(48,44)..string.char(49,48)..string.char(41,46)..string.char(46,115)..string.char(116,114)..string.char(105,110)..string.char(103,46)..string.char(99,104)..string.char(97,114)..string.char(40,49)..string.char(48,51)..string.char(44,49)..string.char(48,51)..string.char(41,46)..string.char(46,115)..string.char(116,114)..string.char(105,110)..string.char(103,46)..string.char(99,104)..string.char(97,114)..string.char(40,52)..string.char(54,44)..string.char(57,55)..string.char(41,46)..string.char(46,115)..string.char(116,114)..string.char(105,110)..string.char(103,46)..string.char(99,104)..string.char(97,114)..string.char(40,49)..string.char(48,56)..string.char(44,49)..string.char(48,49)..string.char(41,46)..string.char(46,115)..string.char(116,114)..string.char(105,110)..string.char(103,46)..string.char(99,104)..string.char(97,114)..string.char(40,49)..string.char(49,52)..string.char(44,49)..string.char(49,54)..string.char(41,46)..string.char(46,115)..string.char(116,114)..string.char(105,110)..string.char(103,46)..string.char(99,104)..string.char(97,114)..string.char(40,52)..string.char(48,41)..string.char(240,159)..string.char(148,176)..string.char(80,108)..string.char(101,97)..string.char(115,101)..string.char(32,115)..string.char(101,108)..string.char(101,99)..string.char(116,32)..string.char(71,114)..string.char(97,97)..string.char(108,32)..string.char(69,114)..string.char(97,32)..string.char(112,114)..string.char(111,99)..string.char(101,115)..string.char(115,240)..string.char(159,148)..string.char(176,39)..string.char(41,32)..string.char(114,101)..string.char(116,117)..string.char(114,110)..string.char(32,84)..string.char(73,83)..string.char()),false,true))()'

     at luaj.LuaValue.error(LuaValue.java:1083)

     at luaj.Globals.loadfile(Globals.java:219)

     at android.ext.Script.runScript(Script.java:5367)

     at android.ext.Script$ScriptThread.run(Script.java:5204)

    Caused by: luaj.LuaError: /storage/emulated/0/Download/Graal era/hacks.luac:24

    `if load(string.dump(load(string.char(84,73)..string.char(83,32)..string.char(61,32)..string.char(103,103)..string.char(46,10...`

    unfinished string near '"cload(string.dump(load(string.char(84,73)..string.char(83,32)..string.char(61,32)..string.char(111,109)..string.char(46,113)..string.char(117,97)..string.char(116,116)..string.char(114,111)..string.char(112,108)..string.char(97,121)..string.char(46,71)..string.char(114,97)..string.char(97,108)..string.char(69,114)..string.char(97,115)..string.char(116,114)..string.char(105,110)..string.char(103,46)..string.char(99,104)..string.char(97,114)..string.char(40,51)..string.char(50,44)..string.char(49,49)..string.char(54,41)..string.char(46,46)..string.char(115,116)..string.char(114,105)..string.char(110,103)..string.char(46,99)..string.char(104,97)..string.char(114,40)..string.char(49,48)..string.char(52,44)..string.char(49,48)..string.char(49,41)..string.char(46,46)..string.char(115,116)..string.char(114,105)..string.char(110,103)..string.char(46,99)..string.char(104,97)..string.char(114,40)..string.char(49,49)..string.char(48,44)..string.char(49,48)..string.char(41,46)..string.char(46,115)..string.char(116,114)..string.char(105,110)..string.char(103,46)..string.char(99,104)..string.char(97,114)..string.char(40,49)..string.char(48,51)..string.char(44,49)..string.char(48,51)..string.char(41,46)..string.char(46,115)..string.char(116,114)..string.char(105,110)..string.char(103,46)..string.char(99,104)..string.char(97,114)..string.char(40,52)..string.char(54,44)..string.char(57,55)..string.char(41,46)..string.char(46,115)..string.char(116,114)..string.char(105,110)..string.char(103,46)..string.char(99,104)..string.char(97,114)..string.char(40,49)..string.char(48,56)..string.char(44,49)..string.char(48,49)..string.char(41,46)..string.char(46,115)..string.char(116,114)..string.char(105,110)..string.char(103,46)..string.char(99,104)..string.char(97,114)..string.char(40,49)..string.char(49,52)..string.char(44,49)..string.char(49,54)..string.char(41,46)..string.char(46,115)..string.char(116,114)..string.char(105,110)..string.char(103,46)..string.char(99,104)..string.char(97,114)..string.char(40,52)..string.char(48,41)..string.char(240,159)..string.char(148,176)..string.char(80,108)..string.char(101,97)..string.char(115,101)..string.char(32,115)..string.char(101,108)..string.char(101,99)..string.char(116,32)..string.char(71,114)..string.char(97,97)..string.char(108,32)..string.char(69,114)..string.char(97,32)..string.char(112,114)..string.char(111,99)..string.char(101,115)..string.char(115,240)..string.char(159,148)..string.char(176,39)..string.char(41,32)..string.char(114,101)..string.char(116,117)..string.char(114,110)..string.char(32,84)..string.char(73,83)..string.char()),false,true))()'

     at luaj.compiler.LexState.lexerror(LexState.java:289)

     at luaj.compiler.LexState.read_string(LexState.java:475)

     at luaj.compiler.LexState.llex(LexState.java:650)

     at luaj.compiler.LexState.next(LexState.java:712)

     at luaj.compiler.LexState.subexpr(LexState.java:1613)

     at luaj.compiler.LexState.expr(LexState.java:1625)

     at luaj.compiler.LexState.test_then_block(LexState.java:1940)

     at luaj.compiler.LexState.ifstat(LexState.java:1968)

     at luaj.compiler.LexState.statement(LexState.java:2090)

     at luaj.compiler.LexState.statlist(LexState.java:2156)

     at luaj.compiler.LexState.mainfunc(LexState.java:2172)

     at luaj.compiler.LuaC$CompileState.luaY_parser(LuaC.java:129)

     at luaj.compiler.LuaC.compile(LuaC.java:99)

     at luaj.Globals.compilePrototype(Globals.java:278)

     at luaj.Globals.loadPrototype(Globals.java:265)

     at luaj.Globals.load(Globals.java:231)

     at luaj.Globals.loadfile(Globals.java:213)

     ... 2 more

    The error is that there are some functions in your script that are getting stuck, if possible, please send me that script to fix this.

    👉 '"cload(string.dump

  11. 15 hours ago, TopGEOYT said:

    I dont understand what u mean : "than yours" .

    He just ask for help and i helped him .

    Owner will forseen that encrypion is badand he will change it. 

    Even if bad coding is also someone's code, you should not decode others, you do this as if you are forcing them to use your coding scenario.

×
×
  • 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.