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
-- 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
ItemConverter
in Client Releases
Posted · Edited by skyiing
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
-- 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