Hi! I added a custom status icon (VIP Users). But I have trouble implementing them. This is what I did.
1. src/map/status.cpp
Added case SC_VIPSTATE:
After
case SC_JEXPBOOST:
2. src/map/status.hpp
Added SC_VIPSTATE = 1500,
Before
SC_MAX,
3. src/map/status.hpp
Added EFST_VIPSTATE = 1500,
Before
EFST_MAX,
4. src/map/script_constants.hpp
Added the following on their respective lines. export_constant(SC_VIPSTATE);
export_deprecated_constant2("SI_VIPSTATE",1500);
export_constant(EFST_VIPSTATE);
Question
funtwocrasher
Hi! I added a custom status icon (VIP Users). But I have trouble implementing them. This is what I did.
1. src/map/status.cpp
Added
case SC_VIPSTATE:
After
case SC_JEXPBOOST:
2. src/map/status.hpp
Added
SC_VIPSTATE = 1500,
Before
SC_MAX,
3. src/map/status.hpp
Added
EFST_VIPSTATE = 1500,
Before
EFST_MAX,
4. src/map/script_constants.hpp
Added the following on their respective lines.
export_constant(SC_VIPSTATE);
export_deprecated_constant2("SI_VIPSTATE",1500);
export_constant(EFST_VIPSTATE);
5. efstids.lub
EFST_VIPSTATE = 1500,
stateiconimginfo.lub
[EFST_IDs.EFST_VIPSTATE] = "vip.tga",
stateiconinfo.lub
StateIconList[EFST_IDs.EFST_VIPSTATE] = { haveTimeLimit = 1, posTimeLimitStr = 2, descript = { { "VIP MEMBER", COLOR_TITLE_BUFF }, { "Exp Bonus 10%" }, { "Job Exp Bonus 10%" }, { "Drop Rate Bonus 10%" }, { "Additional 300 Storage Slot" }, { "Can use command" }, { "@autoattack" }, { "@autotrade" }, { "@autoloot" }, { "Can get Fairy Buff for +5 All stats" } } }
6. Iteminfo.yml
Script: | vip_time(1440); sc_start SC_VIPSTATE,-1,0;
I did all these things but i still receive an error and nothing works,
If anyone can help me, I would really appreciate it. Thank you very much!
Edited by funtwocrasherLink to comment
Share on other sites
27 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.