I think he wants 2 things
1. he wants to show the [0]
yes most item already can show [1] [2] [3], but if the item has no slot, he still wants to show the [0]
2. Alt+Q equipment doesn't show [0], [1], [2], [3]
old item file can do that no.2 ?
interesting
newer one that use itemInfo_Sak.lub has these
function main()
for ItemID, DESC in pairs(tbl) do
result, msg = pcall(AddItem, ItemID, DESC.unidentifiedDisplayName, DESC.unidentifiedResourceName, DESC.identifiedDisplayName, DESC.identifiedResourceName, DESC.slotCount, DESC.ClassNum)
if not msg then
result, msg = pcall(AddItem, ItemID, DESC.unidentifiedDisplayName, DESC.unidentifiedResourceName, DESC.identifiedDisplayName, DESC.identifiedResourceName, DESC.slotCount, DESC.ClassNum, DESC.costume)
end
if not result then
return false, msg
end
for k, v in pairs(DESC.unidentifiedDescriptionName) do
result, msg = AddItemUnidentifiedDesc(ItemID, v)
if not result then
return false, msg
end
end
for k, v in pairs(DESC.identifiedDescriptionName) do
result, msg = AddItemIdentifiedDesc(ItemID, v)
if not result then
return false, msg
end
end
if nil ~= DESC.EffectID and nil ~= AddItemEffectInfo then
result, msg = AddItemEffectInfo(ItemID, DESC.EffectID)
if not result then
return false, msg
end
end
if nil ~= DESC.costume and nil ~= AddItemIsCostume then
result, msg = AddItemIsCostume(ItemID, DESC.costume)
if not result then
return false, msg
end
end
end
return true, "good"
end
function main_server()
for ItemID, DESC in pairs(tbl) do
result, msg = AddItem(ItemID, DESC.identifiedDisplayName, DESC.slotCount)
if not result then
return false, msg
end
end
return true, "good"
end
DESC.slotCount .... but doesn't seem to have anything to do here