bag type fix, status bar change
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user