From a43a9dbe9c91615f087f715ed284f23e294e710e Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Fri, 9 Oct 2015 20:37:38 +0200 Subject: [PATCH] fixed issue with selling suffix items --- sell.lua | 4 ++-- stack.lua | 7 ++----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/sell.lua b/sell.lua index 2edde70..71d769f 100644 --- a/sell.lua +++ b/sell.lua @@ -339,8 +339,8 @@ function refresh_entries() subclass = subclass_index, }, page = 0, - on_start_page = function(k, i) - set_message('Scanning auctions: page ' .. i + 1 .. (total_pages and ' out of ' .. total_pages or '') .. ' ...') + on_start_page = function(k, page, total_pages) + set_message('Scanning auctions: page ' .. page + 1 .. (total_pages and ' out of ' .. total_pages or '') .. ' ...') return k() end, on_read_auction = function(k, i) diff --git a/stack.lua b/stack.lua index f3b0457..993545c 100644 --- a/stack.lua +++ b/stack.lua @@ -86,11 +86,8 @@ function move_item(from_slot, to_slot, amount) end function item_name(slot) - local hyperlink = GetContainerItemLink(slot.bag, slot.bag_slot) - if hyperlink then - local _, _, item_name = strfind(hyperlink, "^.-%[(.*)%].*") - return item_name - end + local container_item_info = Aux.info.container_item(slot.bag, slot.bag_slot) + return container_item_info and container_item_info.name end function item_id(slot)