Last active
October 12, 2017 09:59
-
-
Save cydh/3de25359d88da03edb0a99a75d077c98 to your computer and use it in GitHub Desktop.
just for new costume field
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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