Jump to content
  • 0

Enchant icon doesn't show


Golem1988

Question


  • Group:  Members
  • Topic Count:  57
  • Topics Per Day:  0.01
  • Content Count:  162
  • Reputation:   1
  • Joined:  08/08/12
  • Last Seen:  

When Players use elemental weapon enchants the icon with timer won't show. How to fix this?

So, I just want players can see how much time left till elemental enchantment will end.

Link to comment
Share on other sites

8 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  57
  • Topics Per Day:  0.01
  • Content Count:  162
  • Reputation:   1
  • Joined:  08/08/12
  • Last Seen:  

Whoops, thanks )) But, this didn't help ((

Edited by Golem1988
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  57
  • Topics Per Day:  0.01
  • Content Count:  162
  • Reputation:   1
  • Joined:  08/08/12
  • Last Seen:  

thanks a lot sir :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

+1 darristan for this new knowledge, thanks /no1

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

I do have drew some icons for these 3 skills, might release later :P

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Until then, I'll just copy and edit the an existing tga file.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

I'm not home, maybe 2 hours later I will upload if I got home

Link to comment
Share on other sites

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.

×
×
  • Create New...