fixed issue with selling suffix items

This commit is contained in:
Manuel Simon Hirsig
2015-10-09 20:37:38 +02:00
parent 3468b50c1c
commit a43a9dbe9c
2 changed files with 4 additions and 7 deletions
+2 -2
View File
@@ -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)
+2 -5
View File
@@ -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)