Ragna.roBrowser
Ragna.roBrowser copied to clipboard
Item&Skill names and descriptions
Currently we use our own translated js files to store the names, descriptions and other infos about items and skills. In older clients these are stored in txts and in newer ones they are stored in luas. We should read these files instead of using our own, since these could change from server to server, depending on language, and customizations. Skill and item descriptions also greatly changed between pre-re and re and even between some updates, like the skill rebalances, so these really should be game assets that depend on client version.
In case of items, we actually do read the
data/num2itemdisplaynametable.txt
data/num2itemresnametable.txt
data/num2itemdesctable.txt
data/idnum2itemdisplaynametable.txt
data/idnum2itemresnametable.txt
data/idnum2itemdesctable.txt
data/itemslotcounttable.txt
files, but we also need the LUA reads to be implemented based on client versions. In the light of this we should also review our https://github.com/MrAntares/roBrowserLegacy/blob/master/src/DB/Items/ItemTable.js, because it stores a ton of unused data like descriptions and so on and since we read these from resources, they are just wasted space. Also because of the different client versions, having a common table is not really great because of the different languages/versions out there. Customizing this table would make it different from the source, and the next update would overwrite it.
Items descriptions, slots, resource name.... are outside grf/data folder, there are usually in System/ItemInfo.lub. (Server owners usually convert lub to lua and they usually patch client exes to change ItemInfo path, so this should be configurable in robrowser i think)
I found that 2013-06-18aRagexe was already reading the ItemInfo file, no idea if that's the date when they introduced this or it was before.
https://raw.githubusercontent.com/zackdreaver/ROenglishPRE/master/System/itemInfo.lua https://raw.githubusercontent.com/zackdreaver/ROenglishRE/master/Ragnarok/System/itemInfo.lua