Display skill icone

Alayne

New member
Messages
345
Points
0
Hi guys,

I've got a script that can apply a bonus to player for a certain duration.

is it possible to display a skill icon (one of those displayed on the right of the screen) with scripts?

Thanks!

 
Last edited by a moderator:
Sc_start display buff icon only if the buff/debuff has an Icon, anyways you can add buff icon:

1.- You must ensure that SC_START you want to add has a SI_START. Go to status.h and find it.

2.- In status.c find "//Status that don't have a skill associated" and below add this:

status->dbs->IconChangeTable[SC_TO ADD] = SI_TO ADD;

4.- In db/const.txt find your sc_start, and remember the number of this.

3.- Go to luafiles514/lua files/stateicon/efstids.lub and above of "__newindex = function()" add EFST_TOADDWITHOUT"SC_" = NumberOfThisSC,

example: "EFST_STUN = 2,"

4.- In the same folder open stateiconimginfo.lub and select priority of this Icon add this [EFST_IDs.EFST_TOADDWITHOUT"SC_"] = "NameOfIcon.tga",below 

of "[PRIORITY_GOLD/RED/BLUE/GREEN or WHITE] = {".

example: [EFST_IDs.EFST_STUN] = "ZANGETSU.tga",

5.- Open stateiconinfo.lub,in the final add this:

StateIconList[EFST_IDs.EFST_TOADDWITHOUT"SC_"] = {
haveTimeLimit = 1,
posTimeLimitStr = 1,
descript = {  
{ "Description bla bla blah..." }
{ "Description bla bla blah..." }
{ "Description bla bla blah..." }
{ "Description bla bla blah..." }
{ "Description bla bla blah..." }
{ "Description bla bla blah..." }
        { "%s", COLOR_TIME },
}
}
 
6.- Build GRF and recompile emulator.
 
Back
Top