Jump to content
  • 0
Rebel

Custom Status Icon not Showing

Question

I followed Dastgir guide on how to add new status icon..

status.h
before SC_MAX

SC_MINDBREAKER,
SC_SERVICEFORYOU,
SC_DONTFORGETME,
SC_ASSNCROS,
SC_POEMBRAGI,
SC_APPLEIDUN,

before SI_MAX

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;
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.6440cfbef787eba0148097bcf86fe124.png

Share this post


Link to post
Share on other sites

10 answers to this question

Recommended Posts

  • 0
1 hour ago, Myriad said:

remember songs/dances don't affect yourself unless you are linked.

Untitled.png.c34ffff7a0ed7b3f9071b7fb77b7a447.png

Linked but the status icon is still not showing.

Edited by Rebel

Share this post


Link to post
Share on other sites
  • 0

try add In: src/map/constants.inc

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

Change MYSTATUS to your status name

Edited by luizragna

Share this post


Link to post
Share on other sites
  • 0
16 hours ago, luizragna said:

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.

Share this post


Link to post
Share on other sites
  • 0

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?

 

Share this post


Link to post
Share on other sites
  • 0
1 hour ago, 4144 said:

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.

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

×
×
  • Create New...

Important Information

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