Difference between revisions of "UO.SetShop"
From OpenEUO
Line 4: | Line 4: | ||
* 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. | * 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. | * 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. | ||
+ | |||
+ | [[UO.GetShop]] |
Latest revision as of 13:31, 8 October 2010
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.