Jump to content
  • 0

Automatically change/add value if drops


Slaughtermind

Question

Posted

The game I'm playing supports very low amount of objects you can carry, up to 350. I tried to freeze it to 350, but I can't spend the items. The only way to make it work is to change the value to 350 before I enter a mission. This method is too slow, because the missions last about 20 seconds to craft the items I want. I'm spending more time GG than actual playing.

Is there an option to automatically change or add a value if drops below particular number? In my case it's 350.

6 answers to this question

Recommended Posts

  • Moderators
Posted
10 hours ago, Slaughtermind said:

The game I'm playing supports very low amount of objects you can carry, up to 350. I tried to freeze it to 350, but I can't spend the items. The only way to make it work is to change the value to 350 before I enter a mission. This method is too slow, because the missions last about 20 seconds to craft the items I want. I'm spending more time GG than actual playing.

Is there an option to automatically change or add a value if drops below particular number? In my case it's 350.

You can use a loop.

Posted

I guess you are talking about a LUA script. I'm not familiar with this language. However, if you provide me an example with WHILE(TRUE) loop that modifies a single address, would be very valuable for me.

Posted

Unbelievable! I spend 2 hours in anger trying to write a working LUA script. This language is a pure masochism. Anyway, this is the code.

local t = {}
t[1] = {}
t[1].address = 0x7F37319C -- memory address
t[1].flags = gg.TYPE_WORD -- data type

while true do
 r = gg.getValues(t)
 
 if r[1].value < 340 then 
  t[1].value = 340
  gg.setValues(t)
 end
 
 gg.sleep(100)
end

 

Posted

@Slaughtermind for better help for u in first what u use for locate your value ( do u use group search - value inside search or group search + offset or u use offset from lib ? and adress change when value change or just the value who change after that it be must clear to writte code

Posted
13 minutes ago, blocx said:

@Slaughtermind for better help for u in first what u use for locate your value ( do u use group search - value inside search or group search + offset or u use offset from lib ? and adress change when value change or just the value who change after that it be must clear to writte code

Fist what I do is a manual address search (filter the values multiple times) as per my game progress. After I got the exact address, it remains static for my inventory items. I can't write a complex script that dynamically search for the right address every time I open the game.

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.