library change

This commit is contained in:
Manuel Simon Hirsig
2016-11-08 06:07:52 +01:00
parent 18300e3d1b
commit 14a9ba3ef8
9 changed files with 86 additions and 94 deletions
+2 -1
View File
@@ -144,7 +144,8 @@ function merchant_buy_scan()
end
function merchant_sell_scan()
for slot in info.inventory do auto_release(slot, true)
for slot in info.inventory do
temp(slot)
local item_info = temp-info.container_item(unpack(slot))
if item_info then
aux_merchant_sell[item_info.item_id] = item_info.tooltip_money / item_info.aux_quantity
+2 -1
View File
@@ -209,7 +209,8 @@ end
function game_tooltip_hooks:SetAuctionSellItem()
local name, _, quantity = GetAuctionSellItemInfo()
if name then
for slot in info.inventory do auto_release(slot, true)
for slot in info.inventory do
temp(slot)
local link = GetContainerItemLink(unpack(slot))
if link and select(5, info.parse_link(link)) == name then
extend_tooltip(GameTooltip, link, quantity)