Jump to content
  • 0
Sign in to follow this  
Alayne

Display skill icone

Question

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!

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

I only know sc_start can make it NOT display a buff icon

but I never heard a script command (beside sc_start) can display a buff icon ...

 

correct me if I'm wrong :X

 

hint -

https://github.com/HerculesWS/Hercules/blob/master/src/map/status.h#L752

 

 

EDIT: suddenly I'm reminded that rathena has bonus_script command

https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L5373

which their custom command can display an icon

Edited by AnnieRuru

Share this post


Link to post
Share on other sites
  • 0

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.

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.