Jump to content
  • 0

saving by script and already adding the offset!


Alexxagra
 Share

Question

13 answers to this question

Recommended Posts

  • 0
5 minutes ago, ItsSC said:

x = -- the address you want edit
y = --the address as reference
offset = --your offset
local x[1].value = y[1].address + offset 

--What you want is this 
gg.addListItems(x)

 

but I want to do a search and at the same time save that address using the script! In the case of your script, I would like you to increase by putting the search in it too! if possible!

Link to comment
Share on other sites

  • 0
1 minute ago, Alexxagra said:

but I want to do a search and at the same time save that address using the script! In the case of your script, I would like you to increase by putting the search in it too! if possible!

x = --value you want
gg.searchNumber(x,gg.TYPE_DWORD)
local t1 = gg.getResults(100)
gg.addListItems(t1)

This is what you can do , after searching the value, save all result you want to saved list. You can't run both action simultaneously.

Link to comment
Share on other sites

  • 0
Just now, ItsSC said:

 

Isto é o que você pode fazer, depois de pesquisar o valor, salvar todos os resultados que deseja salvar na lista. Você não pode executar as duas ações simultaneamente.

I understand, I can't save an address multiple times by adding the different offsets to each item! thank you!

Link to comment
Share on other sites

  • 0

 

x = --value you want
gg.searchNumber(x,gg.TYPE_DWORD)
local t1 = gg.getResults(100)
for i=1, 100 do 
  a = {
  	address = t1[1].address + offset ,
    address = t1[1].address + offset2, 
    -- do until you satisfied
  }
  end
gg.addListItems(a)

This can save address of different offset. (MAYBE?)

Link to comment
Share on other sites

  • 0
8 minutes ago, ItsSC said:

 


 

    
    
  
  

Isso pode salvar o endereço do deslocamento diferente. (TALVEZ?)

thank you! I will test and see if I can use it for my goal! Is there a good script to study? I'm starting now, but I already have a programming logic! i go test!

Link to comment
Share on other sites

  • 0
1 minute ago, Alexxagra said:

thank you! I will test and see if I can use it for my goal! Is there a good script to study? I'm starting now, but I already have a programming logic! i go test!

Basically I dont see any advanced script have open source. Learn lua from google is easier and fastest way to learn.

Link to comment
Share on other sites

  • 0

didn't work!

 

Erro:

 

 

 

Script terminado:
Talvez este script precise da versão mais recente do GameGuardian. Tente atualizar para a versão mais recente.

Script error: luaj.LuaError: @/storage/emulated/0/Download/Lua/testes.lua:23
`gg.addListItems(a)`
Failed parse item { -- table(ceaaf3d)
    ['address'] = 0x96080db4,
} on key '1': bad argument for key 'flags': int expected, got nil
level = 1, const = 14, proto = 0, upval = 1, vars = 8, code = 33
CALL v1..v2
 ; PC 31 CODE 0100405D OP 29 A 1 B 2 C 1 Bx 1025 sBx -130046
stack traceback:
    /storage/emulated/0/Download/Lua/testes.lua:23 in main chunk
    [Java]: in ?
    at android.ext.Script.failedParse(Script.java:5251)
    at android.ext.Script$addListItems.invoke2(Script.java:4393)
    at android.ext.Script$ApiFunction.invoke(Script.java:1296)
    at luaj.lib.VarArgFunction.call(VarArgFunction.java:58)
    at luaj.LuaValue.callNotNull(LuaValue.java:3131)
    at luaj.LuaClosure.execute(LuaClosure.java:508)
    at luaj.LuaClosure.call(LuaClosure.java:159)
    at android.ext.Script.runScript(Script.java:5600)
    at android.ext.Script$ScriptThread.run(Script.java:5370)
Caused by: luaj.LuaError: bad argument for key 'flags': int expected, got nil
    at android.ext.Script.badArg(Script.java:5259)
    at android.ext.Script.checkint(Script.java:5292)
    at android.ext.Script.toItem(Script.java:5174)
    at android.ext.Script.toSavedItem(Script.java:5238)
    at android.ext.Script$addListItems.invoke2(Script.java:4391)
    ... 7 more

Link to comment
Share on other sites

  • 0
Just now, Alexxagra said:

didn't work!

 

Erro:

 

 

 

Script terminado:
Talvez este script precise da versão mais recente do GameGuardian. Tente atualizar para a versão mais recente.

Script error: luaj.LuaError: @/storage/emulated/0/Download/Lua/testes.lua:23
`gg.addListItems(a)`
Failed parse item { -- table(ceaaf3d)
    ['address'] = 0x96080db4,
} on key '1': bad argument for key 'flags': int expected, got nil
level = 1, const = 14, proto = 0, upval = 1, vars = 8, code = 33
CALL v1..v2
 ; PC 31 CODE 0100405D OP 29 A 1 B 2 C 1 Bx 1025 sBx -130046
stack traceback:
    /storage/emulated/0/Download/Lua/testes.lua:23 in main chunk
    [Java]: in ?
    at android.ext.Script.failedParse(Script.java:5251)
    at android.ext.Script$addListItems.invoke2(Script.java:4393)
    at android.ext.Script$ApiFunction.invoke(Script.java:1296)
    at luaj.lib.VarArgFunction.call(VarArgFunction.java:58)
    at luaj.LuaValue.callNotNull(LuaValue.java:3131)
    at luaj.LuaClosure.execute(LuaClosure.java:508)
    at luaj.LuaClosure.call(LuaClosure.java:159)
    at android.ext.Script.runScript(Script.java:5600)
    at android.ext.Script$ScriptThread.run(Script.java:5370)
Caused by: luaj.LuaError: bad argument for key 'flags': int expected, got nil
    at android.ext.Script.badArg(Script.java:5259)
    at android.ext.Script.checkint(Script.java:5292)
    at android.ext.Script.toItem(Script.java:5174)
    at android.ext.Script.toSavedItem(Script.java:5238)
    at android.ext.Script$addListItems.invoke2(Script.java:4391)
    ... 7 more

for i=1, 100 do 
  a = {
    {
  	address = t1[1].address + offset ,
    flags = 4 --dword
      },
    {
      address = t1[1].address + offset2 ,
    flags = 4 --dword
      },
    --repeat this until you insert everything you want
  }
  end

 

Link to comment
Share on other sites

  • 0
On 9/2/2019 at 10:24 PM, ItsSC said:
for i=1, 100 do 
  a = {
    {
  	address = t1[1].address + offset ,
    flags = 4 --dword
      },
    {
      address = t1[1].address + offset2 ,
    flags = 4 --dword
      },
    --repeat this until you insert everything you want
  }
  end

here if i have one number and i have limited result after searching 
it can be any 5 or 90 or 500 or 100000 i mean any
and than i want to save them and than i want to apply -9C offset on them and add in save 
can you tell me code ?

 

Link to comment
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
 Share

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