anjasoleil0
New member
- Messages
- 77
- Points
- 0
Hello people! As we all know this is the main function
Now the question is, What should be the 'code' be for the main_function? is this even possible?
Why am I doing this? To save space + for easier addition/editing of items!
Thanks in advance for the help! Hercules truly has a great community!
-Anjo
Now, My server doesnt 'drop' unidentified items, so there is no means for the unidentifiedDisplayName, unidentifiedResourceName, unidentifiedDescriptionName, variable.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 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
Now the question is, What should be the 'code' be for the main_function? is this even possible?
Why am I doing this? To save space + for easier addition/editing of items!
Thanks in advance for the help! Hercules truly has a great community!
-Anjo