Alright, first you have to prepare your .TGA files (24bit/pixel) and put it in /data/texture/effect/
Open up status.c and add these line before line 761.
StatusIconChangeTable[sC_ENCHANTARMS] = SI_ENCHANTARMS;
StatusIconChangeTable[sC_ARMOR_ELEMENT] = SI_ARMOR_ELEMENT;
StatusIconChangeTable[sC_ARMOR_RESIST] = SI_ARMOR_RESIST;
Then open up status.h and add these line after line 1348.
SI_ENCHANTARMS = 900, // Elemental Converter
SI_ARMOR_ELEMENT = 901, // Resist Potion
SI_ARMOR_RESIST = 902, // Undead Scroll
Now you will need a clean stateiconinfo.lua, efstids.lua and stateiconimginfo.lua from here.
For efstids.lua
EFST_ENCHANTARMS = 900,
EFST_ARMOR_ELEMENT = 901,
EFST_ARMOR_RESIST = 902,
Now stateiconinfo.lua
StateIconList[EFST_IDs.EFST_ENCHANTARMS] = {
haveTimeLimit = 1, posTimeLimitStr = 2, descript = {
{"Enchant Weapon", COLOR_TITLE_BUFF},
{"%s", COLOR_TIME},
{"Temporarily enchants property to the user's weapon."},
}
}
StateIconList[EFST_IDs.EFST_ARMOR_ELEMENT] = {
haveTimeLimit = 1, posTimeLimitStr = 2, descript = {
{"Enchant Armor", COLOR_TITLE_BUFF},
{"%s", COLOR_TIME},
{"Temporarily enchants property to the user's armor."}
}
}
StateIconList[EFST_IDs.EFST_ARMOR_RESIST] = {
haveTimeLimit = 1, posTimeLimitStr = 2, descript = {
{"Enchant Resistance", COLOR_TITLE_BUFF},
{"%s", COLOR_TIME},
{"Temporarily grants resistance to Fire/Water/Wind/Earth property attack."}
}
}
Now is stateiconimginfo.lua
[EFST_IDs.EFST_ENCHANTARMS] = "ENCHANTARMS.TGA",
[EFST_IDs.EFST_ARMOR_ELEMENT] = "ARMOR_ELEMENT.TGA",
[EFST_IDs.EFST_ARMOR_RESIST] = "ARMOR_RESIST.TGA",
P/S: Not sure why it has to be added in stateiconimginfo.lua but last time I tested without adding field into it the images wouldn't show.