Instantly share code, notes, and snippets.

Embed
What would you like to do?
Part of Multi itemInfo File supports, replace the itemInfo function with one of this. Related to https://gist.github.com/cydh/92678470008b3eccc37fab254a3c7228. Guide: https://pservero.com/multi-iteminfo-files-with-costume-slots-name-fixes-from-item_db/

These are functions that use for multi itemInfo files

Force ClassNum

Means use ClassNum from this file. Somehow old files or auto generated itemInfo from item table files (idnum2...) doesn't have this value

for ItemID,DESC in pairs(tbl) do
	CheckItem(ItemID, DESC, true)
end

Basic addition

Just to add the missing item. Example itesms from kRO maybe aren't exists if rAthena (your item_db.txt) is using iRO items, and so.

for ItemID,DESC in pairs(tbl) do
	CheckItem(ItemID, DESC, false)
end

Costume Fixes!

This is to alter costume column, also fix the identifiedDisplayName and slotCount to use from your item_db.txt entries!

for ItemID,DESC in pairs(tbl) do
	setDESC(ItemID,DESC)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment