Custom Status Icon not Showing

Rebel

New member
Messages
149
Points
0
Github
shadow-mo0n
Emulator
I followed Dastgir guide on how to add new status icon..

status.h
before SC_MAX

Code:
SC_MINDBREAKER,
SC_SERVICEFORYOU,
SC_DONTFORGETME,
SC_ASSNCROS,
SC_POEMBRAGI,
SC_APPLEIDUN,
before SI_MAX

Code:
SI_MINDBREAKER   = 1085,
SI_SERVICEFORYOU = 1086,
SI_DONTFORGETME  = 1087,
SI_ASSASSINCROSS = 1088,
SI_POEMBRAGI     = 1089,
SI_APPLEIDUN     = 1090,
status.c
after

status->dbs->IconChangeTable[SC_BLOSSOM_FLUTTERING] = SI_BLOSSOM_FLUTTERING;

Code:
status->dbs->IconChangeTable[SC_MINDBREAKER] = SI_MINDBREAKER;
status->dbs->IconChangeTable[SC_SERVICEFORYOU] = SI_SERVICEFORYOU;
status->dbs->IconChangeTable[SC_DONTFORGETME] = SI_DONTFORGETME;
status->dbs->IconChangeTable[SC_ASSNCROS] = SI_ASSASSINCROSS;
status->dbs->IconChangeTable[SC_POEMBRAGI] = SI_POEMBRAGI;
status->dbs->IconChangeTable[SC_APPLEIDUN] = SI_APPLEIDUN;

efstids.lub

EFST_MINDBREAKER = 1085,
EFST_SERVICEFORYOU = 1086,
EFST_DONTFORGETME = 1087,
EFST_ASSASSINCROSS = 1088,
EFST_POEMBRAGI = 1089,
EFST_APPLEIDUN = 1090,


stateiconinfo.lub

StateIconList[EFST_IDs.EFST_MINDBREAKER] = {
haveTimeLimit = 1, posTimeLimitStr = 2, descript = {
{"Mind Breaker", COLOR_TITLE_BUFF},
{"%s", COLOR_TIME},
{"Increase MATK by 100%"}
}
}
StateIconList[EFST_IDs.EFST_SERVICEFORYOU] = {
descript = {
{"Service For You", COLOR_TITLE_TOGGLE},
{"Your under Service For You Song."},
{"Increase SP"}
}
}
StateIconList[EFST_IDs.EFST_DONTFORGETME] = {
descript = {
{"Please Dont Forget Me", COLOR_TITLE_TOGGLE},
{"Your under Please Don't Forget Me Song."},
{"Decrease ASPD & Movement Speed"}
}
}
StateIconList[EFST_IDs.EFST_ASSASSINCROSS] = {
descript = {
{"Assassin Cross of Sunset", COLOR_TITLE_TOGGLE},
{"Your under Assassin Cross of Sunset Song."},
{"Increase ASPD & Movement Speed"}
}
}
StateIconList[EFST_IDs.EFST_POEMBRAGI] = {
descript = {
{"A Poem of Bragi", COLOR_TITLE_TOGGLE},
{"Your under A Poem of Bragi Song."},
{"Reduce Aftercast Delay"}
}
}
StateIconList[EFST_IDs.EFST_APPLEIDUN] = {
descript = {
{"The Apple of Idun", COLOR_TITLE_TOGGLE},
{"Your under The Apple of Idun Song."},
{"Increase HP"}
}
}


stateiconimginfo.lub
in [PRIORITY_WHITE] = {

[EFST_IDs.EFST_MINDBREAKER] = "pf_mindbreaker.tga",
[EFST_IDs.EFST_SERVICEFORYOU] = "dc_serviceforyou.tga",
[EFST_IDs.EFST_DONTFORGETME] = "dc_dontforgetme.tga",
[EFST_IDs.EFST_ASSASSINCROSS] = "ba_assassincross.tga",
[EFST_IDs.EFST_POEMBRAGI] = "ba_poemofbragi.tga",
[EFST_IDs.EFST_APPLEIDUN] = "ba_appleofidun.tga",


should I add also in constants.conf?

Untitled.png

 
try add In: src/map/constants.inc

script->set_constant("SI_MYSTATUS", SI_MYSTATUS, false, false);


Change MYSTATUS to your status name

 
Last edited by a moderator:
try add In: src/map/constants.inc

script->set_constant("SI_MYSTATUS", SI_MYSTATUS, false, false);


Change MYSTATUS to your status name
My version of hercules doesnt have constants.inc.. though I added the commit on that.. It still doesn't show the custom status icon.

 
Okay now I get what Myriad said. sorry for being stupid. :pat:

 
Can any one help me to add status icon?

i m not able to find below lines in status.c file

"SI_MAX"

"status->dbs->IconChangeTable[SC_BLOSSOM_FLUTTERING] = SI_BLOSSOM_FLUTTERING;"

or is there any new / updated guide for the same?

 
probably you should add it in sc_config.conf

 
SC_POEMBRAGI: { Icon: "SI_POEMBRAGI" } added in sc_config and data\texture\effect\POEMBRAGI.tga file but still not not working.

HELP anyone??

 
Back
Top