UO.SetShop
From OpenEUO
local bres = UO.SetShop(id,num)
Changes the amount to purchase in a shopping gump given by an item's id. Important caveats below.
- Before calling UO.SetShop you have to add at least one item to the buy list. This means you first have to double click the item so it gets added to the buy list with amount equal to 1, then you may call UO.SetShop to change that amount.
- Despite the fact that using UO.SetShop will not update the graphics in the buy gump, the amount to sell is set in the client's memory.