Jump to content
  • 0

How to change these 0 values in my script?


Buffo

Question

I made a script where I change these values (from 2850D to 0,05F). 

IMG_20220407_014219_610.thumb.jpg.63f4afb5290c4087b0a5d7c9735ebff8.jpg 

I must say I am not familiar with the LUA language, I just tried to understand how basics work, but my script works.

Now I realized that I also want to change the zeros after these values I changed, except for the first two zeros. 
The point is that I don't know how to do it.

This is my script:

gg.setRanges(gg.REGION_ANONYMOUS)

gg.searchNumber("2,850;300;940;420;1,028,443,341;1,028,443,341;101;101;6:89",gg.TYPE_DWORD)

-- 101, 101 and 6 are values I found, they're always after the zeros and helped me to find these exact values in this exact part of memory and not other similiar values

gg.refineNumber("2,850;300;940;420;1,028,443,341;1,028,443,341",gg.TYPE_DWORD)

gg.getResults(10)

gg.editAll("30,000;5,000;30,000;30,000;1,050,253,722;1,036,831,949",gg.TYPE_DWORD)

gg.clearResults()

How do I also change the zeros starting with the third zero? How can I modify this code and only take values starting with the third zero?

Thanks in advance

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

2 hours ago, Buffo said:

I made a script where I change these values (from 2850D to 0,05F). 

IMG_20220407_014219_610.thumb.jpg.63f4afb5290c4087b0a5d7c9735ebff8.jpg 

I must say I am not familiar with the LUA language, I just tried to understand how basics work, but my script works.

Now I realized that I also want to change the zeros after these values I changed, except for the first two zeros. 
The point is that I don't know how to do it.

This is my script:

gg.setRanges(gg.REGION_ANONYMOUS)

gg.searchNumber("2,850;300;940;420;1,028,443,341;1,028,443,341;101;101;6:89",gg.TYPE_DWORD)

-- 101, 101 and 6 are values I found, they're always after the zeros and helped me to find these exact values in this exact part of memory and not other similiar values

gg.refineNumber("2,850;300;940;420;1,028,443,341;1,028,443,341",gg.TYPE_DWORD)

gg.getResults(10)

gg.editAll("30,000;5,000;30,000;30,000;1,050,253,722;1,036,831,949",gg.TYPE_DWORD)

gg.clearResults()

How do I also change the zeros starting with the third zero? How can I modify this code and only take values starting with the third zero?

Thanks in advance

In the gameguardian help page, look for the gg.getResults() command. You will see it lets you specify which values to get - you can skip over some results if you configure it right!

 

Hopefully this helps you out.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

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