-- Instructions:
-- 1. Place itemInfo.lua and packageitem.lub in this directory.
-- 2. Run run_update.bat
-- 3. The script will update only the name field in packageitem.lub based on itemInfo.lua.
-- 4. A success message will be printed if changes are made.
-- 5. If no matching item IDs are found, no changes will be made.
here is the simple script that I made to automatically translate the item name in Probability from itemInfo
data\luafiles514\lua files\probabilityinfo\packageitem.lub
https://www.mediafire.com/file/h0v2wv3vrkpijf3/converter.zip/file
This topic is from 2021. Please, create a new topic detailing what you did. It will be better for support, while it may be similar, it may also be a completely different thing and without knowing what you have, it is hard to help.
I don't remember much of this script, but I think you can simply add it to "setarray .ChanceItems[0],":
setarray .ChanceItems[0],
0, 0, // Armor (Level 0) <-- Armor
0, 0, // Level 1
0, 0, // Level 2
7620, 3, // Level 3
7620, 1; // Level 4