Jump to content
Sign in to follow this  
Daisy123

Search and edit a big hex number.

Recommended Posts

Hello. I am learning to write lua script for GG. I have a question. If you know please help me.
I want to search a big hex number for example: 02390D000000026FC90801066FAB0701A66B2A22000000402A  and then edit it to 00000000000000000000000000000000000000220000C8422A in memory.
To search I use this :

gg.clearResults()
gg.clearList()

gg.searchNumber('h02390D000000026FC90801066FAB0701A66B2A22000000402A', gg.TYPE_BYTE)

But I dont know how to edit results to 00000000000000000000000000000000000000220000C8422A.
Please help me. Thank you.

 

Share this post


Link to post
Share on other sites

It is not a number. It is text in hex view. So you need search text, not a number.

See examples for searchNumber in API help.

[added 1 minute later]
-- search for HEX '5C E3 0B 4B 90 9B 11 7B'
gg.searchNumber('h 5C E3 0B 4B 90 9B 11 7B')

For edit use editAll

-- edit HEX
gg.searchNumber('h 5C E3 0B')
gg.getResults(30)
gg.editAll('h 4B 90 9B', gg.TYPE_BYTE)

 

Share this post


Link to post
Share on other sites
10 minutes ago, Enyby said:

It is not a number. It is text in hex view. So you need search text, not a number.

See examples for searchNumber in API help.

[added 1 minute later]

-- search for HEX '5C E3 0B 4B 90 9B 11 7B'
gg.searchNumber('h 5C E3 0B 4B 90 9B 11 7B')

For edit use editAll


-- edit HEX
gg.searchNumber('h 5C E3 0B')
gg.getResults(30)
gg.editAll('h 4B 90 9B', gg.TYPE_BYTE)

 

Oh. I didn't read the editAll in API help carefully. Sorry for that and thank for your help.

Btw, What happend if I ignore space character when put hex value like 'h5CE30B' instead of 'h 5C E3 0B'

Edited by Daisy123

Share this post


Link to post
Share on other sites

Spaces between bytes not necessary. Both is same as above.

-- edit HEX
gg.searchNumber('h 5CE30B')
gg.getResults(30)
gg.editAll('h 4B909B', gg.TYPE_BYTE)

-- edit HEX
gg.searchNumber('h5CE30B')
gg.getResults(30)
gg.editAll('h4B909B', gg.TYPE_BYTE)

 

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
      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 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 Collen
      Hello, I have recently created some scripts, I know the basics of how to build one, but I have problems with values, for example, if I want to create an infinite money script, how should I do?
    • By RONO_PLAYS
      More scripts from the creator
       
      This script can be used to acquire:
      *Unlimited diamonds
      *Unlimited money
      *Always win blackjack+activate big win
      *Always win diamond slots/money slots
      *Always win video poker
      WARNING:Spending too much diamonds and money will get you banned
      WATCH THIS VIDEO TO KNOW HOW TO USE THE SCRIPT:
      WATCH THIS VIDEO TO KNOW HOW TO USE THE SCRIPT:
       
    • By RONO_PLAYS
      View File Gangster vegas hack unlimited diamonds+money
       
      More scripts from the creator
       
      This script can be used to acquire:
      *Unlimited diamonds
      *Unlimited money
      *Always win blackjack+activate big win
      *Always win diamond slots/money slots
      *Always win video poker
      WARNING:Spending too much diamonds and money will get you banned
      WATCH THIS VIDEO TO KNOW HOW TO USE THE SCRIPT:
      WATCH THIS VIDEO TO KNOW HOW TO USE THE SCRIPT:
       
      Submitter RONO_PLAYS Submitted 04/20/2019 Category LUA scripts  
×
×
  • Create New...