Alayne 99 Posted November 13, 2015 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! Quote Share this post Link to post Share on other sites
0 AnnieRuru 957 Posted November 13, 2015 (edited) 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 November 13, 2015 by AnnieRuru Quote Share this post Link to post Share on other sites
0 Easycore 31 Posted November 13, 2015 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. Quote Share this post Link to post Share on other sites
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