Jump to content

Recommended Posts

Posted

Hmm.. Well, I have drew 3 icons for Cursed Water, Elemental Resist Potions and Undead Scrolls and decided to share with rA community.

DNn3a.png

Also, this is not really what so call 'design'. My skills are very limited in Photoshop :P

Requirement

  • Basic knowledge on text editing.
  • Basic knowledge on compiling your rA source code.
Installation Guide

Server Side

1. Open status.c, go to line 761 and add these lines:

StatusIconChangeTable[SC_ENCHANTARMS] = SI_ENCHANTARMS;
StatusIconChangeTable[SC_ARMOR_ELEMENT] = SI_ARMOR_ELEMENT;
StatusIconChangeTable[SC_ARMOR_RESIST] = SI_ARMOR_RESIST;
2. Open status.h, go to line 1348 and add these lines:
SI_ENCHANTARMS = 900, // Elemental Converter
SI_ARMOR_ELEMENT = 901, // Resist Potion
SI_ARMOR_RESIST = 902, // Undead Scroll
3. Compile your source.

Client Side

1. Download clean stateiconinfo.lua, efstids.lua and stateiconimginfo.lua files from here. (Credits to the SVN owner.)

2. Open efstids.lua, go to line 669 and add these lines:

EFST_ENCHANTARMS = 900,
EFST_ARMOR_ELEMENT = 901,
EFST_ARMOR_RESIST = 902,

3. Open stateiconinfo.lua, go to line 2297 and and these lines:

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."}
}
}

4. Open stateiconimginfo.lua, go to line 39 and add these lines:

[EFST_IDs.EFST_ENCHANTARMS] = "ENCHANTARMS.TGA",
[EFST_IDs.EFST_ARMOR_ELEMENT] = "ARMOR_ELEMENT.TGA",
[EFST_IDs.EFST_ARMOR_RESIST] = "ARMOR_RESIST.TGA",
Downloads

Link - http://rathena.org/b...a-status-icons/

Mirror - MediaFire

Do not take credit for my work as if they were your own.

  • Upvote 10
Posted

Thank you! By the way do you have any idea with stateiconimginfo.lua? I don't see any other icons dir in the file (Only Kagerou's Exists), didn't know how those old status icons hooked in client.

Posted

Hmm in my opinion, it's too Kagerou & Oboro like, because it's in kanji

For the Armor Element, I thought of something similar to 'i_resist_cold.tga' in default grf, but instead of "RST COLD" it says "RST ELE".

Posted

Oh, I don't know anything about Kanji. I'm a chinese actually (Malaysia is multicultural country), and these words are Chinese :P

Well, the Armor Element didn't have any state icons so I just simply drew one and add in. I actually only do this for Cursed Water haha.

Posted

The old statuses are read from stateicon\stateiconinfo.lua

StateIconList[EFST_IDs.EFST_OVERTHRUSTMAX] = {
haveTimeLimit = 1, posTimeLimitStr = 2, descript = {
{"Maximum Over Thrust", COLOR_TITLE_BUFF},
{"%s", COLOR_TIME},
{"Increases weapon damage."},
{"Increases the possibility of breaking the weapon."}
}
}
StateIconList[EFST_IDs.EFST_SUFFRAGIUM] = {
haveTimeLimit = 1, posTimeLimitStr = 2, descript = {
{"Suffragium", COLOR_TITLE_BUFF},
{"%s", COLOR_TIME},
{"Reduces cast time."}
}
}
StateIconList[EFST_IDs.EFST_OVERTHRUST] = {
haveTimeLimit = 1, posTimeLimitStr = 2, descript = {
{"Over Thrust", COLOR_TITLE_BUFF},
{"%s", COLOR_TIME},
{"Increases weapon damage."},
{"Increases the possibility of breaking the weapon."}
}
}
StateIconList[EFST_IDs.EFST_AUTOBERSERK] = {
descript = {
{"Auto Berserk", COLOR_TITLE_BUFF},
{"Rage when close to death"}
}
}

Is that what you mean darristan?

Oh I thought the icons in the screenshot was your custom icons :P

Posted (edited)

Yeah that's my guess too, but I'm not sure why it wouldn't bring up custom icons so I have to define those location with stateiconimginfo.lua.

Edit: Those are my custom icons :)

Edited by darristan
Posted

Old status icons are embedded in the client. In old Ragexe, you need to hexed the client in order to add custom status icons.

Here is my example of custom icons, using 2010-28-07aRagexe.

screenEscaped002.jpg

  • Upvote 2
Posted (edited)

@darristan

nice xD

@others...

here is a small pack of status icon taken from Official KRO Grf...xD

you might wanna give it a try ....

http://www.mediafire.com/?oz29u521dwcy3f1

some icon might have existed in latest server ... i just upload part of icon that we seldom seen it.

ofmfO.png

forget to inform you guys....

my computer cant read Korean text by default....so..some of these file's name might be broken.

you can choose to rename the file / extract it from ur kRO grf.

Edited by Emistry
  • Upvote 4
Posted (edited)

@^ Thanks.

Btw, that 캐시갑옷속성부여.tga looks great and very suitable for Undead Scroll and Resist Potions.

Edit: 스트라이킹.tga looks good for Cursed Water too!

Edited by darristan
Posted (edited)

-smacks self- I should have known that! Thanks!

EDIT: You have a couple errors in your edits. The edit in stateiconimginfo.lua should have no comma after the last entry and the previous entry needs to have a comma added (before the new lines). Also, when editing the source file status.c it should be:

StatusIconChangeTable[sC_ENCHANTARMS] = SI_ENCHANTARMS;
StatusIconChangeTable[sC_ARMOR_ELEMENT] = SI_ARMOR_ELEMENT;
StatusIconChangeTable[sC_ARMOR_RESIST] = SI_ARMOR_RESIST;

Sorry if that came off rude or anything, just wanted to help. /ok

Edited by Vach
Posted

in LUA is fine to have comma in last line, that would prevent people from adding new entry forgets to add comma to previous line and in your status.c I don't see what is the different .__.

Posted

Your paste lines have "StatusIconchangeTable" it needs to be "StatusIconChangeTable" (captial C).

In regards to LUA, really? I always get errors when I don't edit the commas... perhaps I am using the improper compiler or something. =/ Thanks for the heads up.

  • 1 month later...
  • 3 weeks later...
  • 3 weeks later...
  • 2 weeks later...
Posted (edited)

i tried this and it seems to work, but on the console it says something about

status_type2relevant_bl_types: Unsupported type 900

the icons i set show up fine. and the effects are still right, but i get that error.

Edited by mofo
  • 1 month later...
  • 2 weeks later...
  • 1 month later...
Posted

i tried this and it seems to work, but on the console it says something about

status_type2relevant_bl_types: Unsupported type 900

the icons i set show up fine. and the effects are still right, but i get that error.

 

Make sure that when you paste this line of codes:

SI_ENCHANTARMS = 900, // Elemental Converter
SI_ARMOR_ELEMENT = 901, // Resist Potion
SI_ARMOR_RESIST = 902, // Undead Scroll

It should be before

SI_MAX,

Join the conversation

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

Guest
Reply to this topic...

×   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...