Skip to content

Instantly share code, notes, and snippets.

@cydh
Last active April 26, 2018 23:22
Show Gist options
  • Save cydh/bbae6aa8b2ae9e36cd71d07f7a696046 to your computer and use it in GitHub Desktop.
Save cydh/bbae6aa8b2ae9e36cd71d07f7a696046 to your computer and use it in GitHub Desktop.
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