Jump to content
  • 0

Help with scipt.


SAGEPAPI
 Share

Question

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
Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0

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
Link to comment
Share on other sites

  • 0

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
Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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
Link to comment
Share on other sites

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

Link to comment
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
 Share

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