Jump to content
  • 0

saving by script and already adding the offset!


Question

13 answers to this question

Recommended Posts

  • 0
Posted
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)

Ā 

  • 0
Posted
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!

  • 0
Posted
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.

  • 0
Posted
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!

  • 0
Posted

Ā 

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?)

  • 0
Posted
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!

  • 0
Posted
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.

  • 0
Posted
12 minutes ago, Alexxagra said:

Erro in line ->Ā gg.addListItems(a)

Help!

for i=1, 100 do 
  a = {
    {
  	address = t1[1].address + offset ,
    address = t1[1].address + offset2, 
    -- do until you satisfied
      }
  }
  end

Ā 

  • 0
Posted

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

  • 0
Posted
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

Ā 

  • 0
Posted
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 ?

Ā 

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