Page 1 of 1

buyable items

Posted: Mon Jun 17, 2013 5:29 am
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?

Re: buyable items

Posted: Mon Jun 17, 2013 4:38 pm
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 ;)