Jump to content
  • 0

Question

Posted

Hello, I need help with editing value in upper address. I know how to find the lower one and the distance between them are always 0x10. Can you help me get to this address(upper) and edit it value with mine?( mine value is selective )

IMG_20210615_161445.jpg

15 answers to this question

Recommended Posts

  • 0
Posted (edited)

how about the lower one...?

does the value is the same all the time?

or any value below or above the 2 address that is fixed?

Edited by MonkeySAN
  • 0
Posted
Just now, MonkeySAN said:

how about the lower one...?

does the value is the same all the time?

Yes, i know how to find it every time

  • 0
Posted
1 minute ago, MonkeySAN said:

oh..wait 

you not talking about making a script here are you?

No, i'm about making a script. I already made a search lower value script, the next step what I need is what I said in description

  • 0
Posted
1 minute ago, MonkeySAN said:

can you upload that part of your script here?

so i may have a clear picture..

function Generate(F)
gg.setRanges(gg.REGION_ANONYMOUS | gg.REGION_C_ALLOC) 
gg.clearResults() 
gg.startFuzzy(gg.TYPE_DOUBLE)
gg.searchFuzzy()
gg.toast('Выбросьте один предмет и нажмите на значок GG')
gg.setVisible(false)
while true do
if gg.isVisible() then
gg.setVisible(false)
Generate2(F)
break
end
end
end

function Generate2(F)
gg.searchFuzzy('0', gg.SIGN_FUZZY_NOT_EQUAL)
gg.refineNumber('0.06;2.0:512', gg.TYPE_DOUBLE)
if gg.getResultsCount() ~= 2 then
gg.toast('⚠️Ошибка, повторите попытку⚠️')
gg.clearResults()
else
gg.getResults(2)
Generate3(F)
end
end

 

P.S. toast in russian, it needs user to drop item

 

[added 0 minutes later]

And Generate3(F) shall be this script that i asked in description

[added 1 minute later]

I tried this, but this is not working properly.

function Generate3(F)
result = gg.getResults(2)
address1 = result[1].address
minus1 = 0x10
address2 = address1 - minus1
gg.gotoAddress(address2)

  • 0
Posted
1 minute ago, MonkeySAN said:

so im  believe you use value 0.06 as base address to get to the upper address?

Yes, this value means that there is 1 item in stack, there is tons of those values, but I using fuzzy search and it work good, when you drop item

[added 1 minute later]

And now i have to change the upper value(the id of item) it generate a random like offset or idk every time i launch game.

  • 0
Posted

try this..

function Generate3(F)
local p = gg.getResults(2)

local t = {}
t[1] = {}
t[1].address = p[1].address - 0x10
t[1].flags = --value type here--
t[1].value = --new value here--
gg.setValues(t)
gg.toast("Done")
gg.clearResults()
end

 

  • 0
Posted (edited)
15 minutes ago, MonkeySAN said:

try this..


function Generate3(F)
local p = gg.getResults(2)

local t = {}
t[1] = {}
t[1].address = p[1].address - 0x10
t[1].flags = --value type here--
t[1].value = --new value here--
gg.setValues(t)
gg.toast("Done")
gg.clearResults()
end

 

Yes, It works great, but i need one more. How can i instead of replacing value, add to it number from some variable? Cause this is the only way i can change it for something correct

Edited by 1Klas
  • 0
Posted
Just now, MonkeySAN said:

example?

Like i have a variable ID, it changes depending of choise menu, so in the t.value it put automatically this value from ID, and instead of replacing adding to upper address value

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.