Can i request new fuction ?
costume ?
new version iteminfo.lub have costume column
add a txt file (that include costume id)
if have, lub file will add costume = true
if not have, will add costume = false
below
slotCount = 0,
ClassNum = 0,
Costume = true / Costume = false
use [=[ ]=] replace " " to prevent some chinese word problem
[13200] = {
unidentifiedDisplayName = [=[]=],
unidentifiedResourceName = [=[]=],
unidentifiedDescriptionName = {
},
identifiedDisplayName = [=[子彈]=],
identifiedResourceName = [=[綰葩]=],
identifiedDescriptionName = {
[=[系列 : ^777777彈藥^000000]=],
[=[屬性 : ^777777無^000000]=],
[=[物攻 : ^77777725^000000]=],
[=[重量 : ^7777770.1^000000]=],
[=[要求 : ^777777Lv1^000000]=],
},
slotCount = 0,
ClassNum = 0
}
-- Function #0
main = function()
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 == true then
return false, msg
end
for k, v in pairs(DESC.unidentifiedDescriptionName) do
result, msg = AddItemUnidentifiedDesc(ItemID, v)
if not result == true then
return false, msg
end
end
for k, v in pairs(DESC.identifiedDescriptionName) do
result, msg = AddItemIdentifiedDesc(ItemID, v)
if not result == true then
return false, msg
end
end
if nil ~= DESC.costume then
result, msg = AddItemIsCostume(ItemID, DESC.costume)
if not result == true then
return false, msg
end
else
continue
end
k = DESC.unidentifiedResourceName
v = DESC.identifiedDisplayName
end
return true, "good"
end
Thank you