Skip to content

Instantly share code, notes, and snippets.

@cydh
Last active October 12, 2017 09:59
Show Gist options
  • Save cydh/3de25359d88da03edb0a99a75d077c98 to your computer and use it in GitHub Desktop.
Save cydh/3de25359d88da03edb0a99a75d077c98 to your computer and use it in GitHub Desktop.
just for new costume field
function main()
for ItemID, DESC in pairs(tbl) do
if not (DESC.costume) then
DESC.costume = false
end
result, msg = AddItem(ItemID, DESC.unidentifiedDisplayName, DESC.unidentifiedResourceName, DESC.identifiedDisplayName, DESC.identifiedResourceName, DESC.slotCount, DESC.ClassNum, DESC.costume)
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
return true, "good"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment