viewing paste Unknown #13584 | Diff

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
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
 
Viewed 312 times, submitted by unknown.