tbl = {
[50402] = {
ClassNum = 7502,
identifiedDescriptionName = { "Enchanted Kingdom Hat", "Kings used to wear a hat like this before getting to sleep." },
identifiedDisplayName = "Enchanted Kingdom Hat",
identifiedResourceName = "_Enchanted_Kingdom_Hat",
slotCount = 0,
unidentifiedDescriptionName = { "Enchanted Kingdom Hat", "Kings used to wear a hat like this before getting to sleep." },
unidentifiedDisplayName = "Enchanted Kingdom Hat",
unidentifiedResourceName = "_Enchanted_Kingdom_Hat"
}
}
for ItemID,DESC in pairs(tbl) do
result, msg = AddItem(ItemID, DESC.unidentifiedDisplayName, DESC.unidentifiedResourceName, DESC.identifiedDisplayName, DESC.identifiedResourceName, DESC.slotCount, DESC.ClassNum)
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
end