SRL Archive - OSR Help

Looking for a good way to accurately get Shop Stock Amounts


Simbanoobie

2014-06-18 17:57:18

I've been experimenting with getting the stock of a shop's inventory to no avail.

Everything I do seems to be able to detect the shop's stock, but not 100% accurately, it seems like it will read the stock accurately for the most part, but every once and a while read a "5" or a "52" instead of say "520", think the shop doesn't have enough stock and

So far I've tried using the ItemAmount function and GetTextAtExWrap, and both when using writeln return the correct amt 99% of the time, but that 1% where it returns 0 or only the first digit or so of a number makes it disrupt my buying.

What is the best way to get the inventory of a shop? Or how should I go about making it ignore those few inaccuracies?

KeepBotting

2014-06-18 19:53:16

Easiest way I can think of is get the shop amount twice in a row, if they match, you're good; if they don't, check again.

Wetish

2014-06-18 20:41:18

A message probably appears in the chatbox if you try to buy something and there is nothing left in stock.

Flight

2014-06-18 22:00:47

I'm not sure about this because it's been a while since I looked at item amounts in the shop interface. If come across this again to where the numbers are read incorrectly could you please take a screenshot and post it here? Along with what Simba thinks the correct numbers are.