Jump to content

Question

Posted (edited)

Im working on a script where i want to change the prices of all items in the shop (Which is ez). But i want to change the amount u get to which is one address under the price. I can change one at the time but that will take ages.

My question is there a way to change all at the same time. 

Thx

Edited by SAGEPAPI

9 answers to this question

Recommended Posts

  • 0
Posted (edited)

use offsets maybe...?

= price address + offset

something like this..

local t = gg.getResults(1)--price address found

local p = {}
p[1] = {}
p[1].address = t[1].address --price address
p[1].flags = gg.TYPE_DWORD --value type
p[1].value = 0--edit to your value
gg.setValues(p)

p[1].address = t[1].address + 0x4-- add offset for amount address below it.
p[1].flags = gg.TYPE_DWORD --value type
p[1].value = 999999--edit to your value
gg.setValues(p)

or

local t = gg.getResults(1)

gg.setValues({
    {address = t[1].address,flags = gg.TYPE_DWORD,value = 0},
    {address = t[1].address + 0x4,flags = gg.TYPE_DWORD,value = 999999} })

 

Edited by MonkeySAN
  • 0
Posted

I know how to do it for one result, but is there a way to do (like say) 20 results at once? Becuz i dont want my script to be too long for no reason

  • 0
Posted (edited)

hmm..maybe add more offsets down the line but with 20 results more..its still long to write.

since i had no idea how the initial search is done or how the said codes appear structurely in the game of yours..i'll say you wait for someone else to give their inputs.

Edited by MonkeySAN
  • 0
Posted

The game is tailed demon slayer.

so as u can see in the first picture there are 12 values from the store.1643038478_Screenshot_20220113-212036_VMOSPro.thumb.jpg.05bc986fe3864b2457e7ae1f1e5bda2c.jpg

In the second picture u see the price in FLOAT and the amount in Dword one address under it.710213864_Screenshot_20220113-212031_VMOSPro.thumb.jpg.534bb3c2a8969408925b180d9c9fabe4.jpg

  • 0
Posted (edited)

oh man..thats the game.

i made a script for myself..

its slow(group search),long(offsets) but its worked everytime.

perhaps using pointers is a good idea.

libs(dump.cs) hack maybe?

---------------------------------------

you could just hack only the 3rd option for each category.

that can make the script less long than hack all of them.

Edited by MonkeySAN
  • 0
Posted
1 hour ago, MonkeySAN said:

you could just hack only the 3rd option for each category.

Thought abt that too. 

 

1 hour ago, MonkeySAN said:

that can make the script less long than hack all of them.

I try to hack all sorts of games ( that i know how to hack) with scripts. But making those scripts as compact as possible. 

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.