SphereCommunity
vendor exceeded their stock limit! - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: vendor exceeded their stock limit! (/Thread-vendor-exceeded-their-stock-limit)



vendor exceeded their stock limit! - Skul - 07-05-2012 02:36 PM

Code:
Vendor 02e2f81 'Edna' has exceeded their stock limit! (179/115 items)
I see this in the console when players are buying items from the blacksmith, I know it means the vendor has exceeded the maximum amount of items it can carry in their stock, but what I'm wondering is how can I alter this amount to allow all 179/115 items to show in the vendor stock list.

If anyone can shed some light on this scenario I will gladly appreciated it. Thanks.
Maybe if there is no option/method of doing so would I be able to request a sphere.ini option for max items a vendor can sell/buy/sold-to (options for layers 26, 27, 28)? This would help me out very much!
sold-to = bought... well anyways I'll be waiting for a response! Thanks.


RE: vendor exceeded their stock limit! - Gil Amarth - 07-05-2012 08:10 PM

It would be nice if we could set the number of items for a vendor.

The only solution I think is trying to regulate with @ITEMBUY the number of items to never exceed 115 items.
Or scripting a whole vendor system who uses his bankbox (unlimited space).


RE: vendor exceeded their stock limit! - Skul - 07-06-2012 04:30 PM

Ouch, totally not worth it, I already wrote a simple script to add regular blacksmithing items to the vendors 'sell' layer, but the script exceeds the 'maximum items' the vendor can hold within that layer. That's too bad, any sphere developers around? I think it would make a good addition to have 3 sphere.ini options for this.

maxvendorbuyitems //maximum items stored in the vendor's buy layer
maxvendorsellitems //maximum items stored in the vendor's sell layer
maxvendorboughtitems //maximum items stored in the vendor's bought layer

these are layers 26,27,28 (not in any particular order) - recoding a whole new vendor buy/sell system is alot of effort, possible, but too much for me.