bag type fix, status bar change

This commit is contained in:
Manuel Simon Hirsig
2016-03-24 16:29:54 +01:00
parent d8c1e2fab7
commit f0997eaaf4
4 changed files with 23 additions and 6 deletions
+18 -1
View File
@@ -65,7 +65,24 @@ function public.inventory()
end
if bag <= 4 then
return { bag, slot }
return { bag, slot }, public.bag_type(bag)
end
end
end
do
local bag_types = { GetAuctionItemSubClasses(3) }
function public.bag_type(bag)
if bag == 0 then
return 1
end
local link = GetInventoryItemLink('player', ContainerIDToInventoryID(bag))
if link then
local item_id = Aux.info.parse_hyperlink(GetInventoryItemLink('player', ContainerIDToInventoryID(bag)))
local item_info = Aux.info.item(item_id)
return Aux.item_subclass_index(3, item_info.subclass)
end
end
end