Jump to content
  • 0

Enchant icon doesn't show


Question

8 answers to this question

Recommended Posts

Posted

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.

  • Upvote 2

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...