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 RONO_PLAYS
      View File HOW TO MAKE A LUA SCRIPT FOR ANY GAME
       More scripts from the creator
      This is a  template that will help you create a script menu for any game
      Download the apps used in this video:
      lua editor
      GG tester
       
      WATCH THESE VIDEOS TO KNOW HOW TO MAKE A LUA SCRIPT FOR ANY GAME
      PART 1
      WATCH THIS VIDEO TO KNOW HOW TO MAKE A LUA SCRIPT FOR ANY GAME
       
      PART 2:
       
       
      PART 3
       
      Submitter RONO_PLAYS Submitted 04/27/2019 Category Templates  
    • By RONO_PLAYS
      More scripts from the creator
      This is a  template that will help you create a script menu for any game
      Download the apps used in this video:
      lua editor
      GG tester
       
      WATCH THESE VIDEOS TO KNOW HOW TO MAKE A LUA SCRIPT FOR ANY GAME
      PART 1
      WATCH THIS VIDEO TO KNOW HOW TO MAKE A LUA SCRIPT FOR ANY GAME
       
      PART 2:
       
       
      PART 3
       
    • By YeetMeister
      Hello,
      Please help me with Offset Editing.
      Don't do it for me though, j want to learn that, so if someone is able to help me please help me.
       
      I got here a List, maybe that helps a but more
       
      Including: Values, Offsets, Names(for Chams Hack), and Flags.
       
      Much appreciated, for those who can help! 😄
    • By Itschavan
      View File Pubg Mobile S8 Safe Script Antireport
      Pubg Mobile Safe Script 100% Antiban + Antireport 
       
       
      MORE NO ROOT TOLLS CLICK HERE
      join Telegram CLICK HERE
       
      Safe FEATURES
      • WALLHACK
      • ANTICRASH
      • ANTIREPORT
      • COLOR HACK
      • MAGIC BULLET
      • AUTO HEADSHOT
      AND MORE...
       
       
      FULL BRUTAL SCRIPT
      Submitter Itschavan Submitted 07/18/2019 Category PUBG  
    • By Itschavan
      Pubg Mobile Safe Script 100% Antiban + Antireport 
       
       
      MORE NO ROOT TOLLS CLICK HERE
      join Telegram CLICK HERE
       
      Safe FEATURES
      • WALLHACK
      • ANTICRASH
      • ANTIREPORT
      • COLOR HACK
      • MAGIC BULLET
      • AUTO HEADSHOT
      AND MORE...
       
       
      FULL BRUTAL SCRIPT
×
×
  • Create New...