buyable items

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.
Post Reply
RusseL
Forum Regular
Posts: 375
Joined: Fri Feb 20, 2009 8:30 pm

buyable items

Post by RusseL »

How can i set items to buy for every type of merchant?

As docs says:

Code: Select all

SendSellWindow( character, vendor, i1, i2, i3, flags := 0 )
 i1 = vendor's "For sale" item containter. i2 = vendor's "Bought from player" item container. i3 = vendor's "Buyable" item container.
so i use
res := SendSellWindow( ev.source, self(), inv_fs, inv_pb, inv_1c, VENDOR_SEND_AOS_TOOLTIP );

my inv_1c container is empty, so if i right understand my vendor has no items to buy?
But that is wrong. Merchant is able to buy every item with item.buyprice > 0

How can i control it?
RusseL
Forum Regular
Posts: 375
Joined: Fri Feb 20, 2009 8:30 pm

Re: buyable items

Post by RusseL »

fixed in revision 630
Fixed: OpenSellWindow() "Buyable" container wasn't actually restricting what entries showed.
Pass flag VENDOR_BUYABLE_CONTAINER_FILTER to enable this filter.
thanks to Kevin ;)
Post Reply