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?


Reply With Quote








