Jump to content
  • 0
Sign in to follow this  
stiflerxx

Adding New Status Icons

Question

where I went wrong?

 

status.c

status->IconChangeTable[sC_DECORATION_OF_MUSIC] = SI_DECORATION_OF_MUSIC;
status->IconChangeTable[sC_STATUS_CONVERT_AGUA] = SI_STATUS_CONVERT_AGUA;
 
status.h

SI_STATUS_CONVERT_AGUA                   = 2000,
 
SI_MAX,
};
recompiled
data:
efstids.lub:

EFST_AKAITSUKI = 660,
EFST_STATUS_CONVERT_AGUA = 2000,
__newindex = function()
error("unknown state")
end
}
stateiconinfo.lub:

StateIconList[EFST_IDs.EFST_STATUS_CONVERT_AGUA] = {
  haveTimeLimit = 1,
  posTimeLimitStr = 2,
  descript = {
    {"Conversor de água Ativado",COLOR_TITLE_BUFF},
    {"%s", COLOR_TIME},
    {"Bônus contra a propriedade Fogo"},
    {"Penalidade de Dano contra água by:Ravnos"}
  }
}
stateiconimginfo.lub:
PRIORITY_BLUE = {
[EFST_IDs.EFST_STATUS_CONVERT_AGUA] = "STATUSAGUA.TGA"
item_db.conf

{
Id: 12115
AegisName: "Elemental_Water"
Name: "Elemental Converter"
Type: 11
Buy: 2
Weight: 10
BuyingStore: true
Script: <" sc_start SC_STATUS_CONVERT_AGUA,10000,0; itemskill ITEM_ENCHANTARMS,2; ">
},
db/const.txt:
SC_FALLENEMPIRE 579
SC_STATUS_CONVERT_AGUA 580
 
poatRhL.jpg
?

thank you

 

link guide>>>http://herc.ws/board/topic/7526-guide-adding-new-status-icons/#entry46157

 

@edit

petrifies but he did not put the status icon does not appear.

Edited by stiflerxx

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

You forgot to add sc in status.h,so you got stone curse

 

btw, your custom icon number is too big ,I think  801  is enough

 

and it would be better if icon number is the same as  sc number

Edited by Angelmelody

Share this post


Link to post
Share on other sites
  • 0

the default status is stone curse, maybe it cant find the status you added

 

You forgot to add sc in status.h,so you got stone curse

 

btw, your custom icon number is too big ,I think  801  is enough

 

and it would be better if icon number is the same as  sc number

 

status.h:
SC_CONVERT_AGUA,
SC_CONVERT_FOGO,
SC_CONVERT_VENTO,
SC_CONVERT_TERRA,
SI_CONVERT_AGUA                          = 801,
SI_CONVERT_FOGO                          = 802,
SI_CONVERT_VENTO                         = 803,
SI_CONVERT_TERRA                         = 804,
 
status.c:
status->IconChangeTable[sC_DECORATION_OF_MUSIC] = SI_DECORATION_OF_MUSIC;
status->IconChangeTable[sC_CONVERT_AGUA] = SI_CONVERT_AGUA;
status->IconChangeTable[sC_CONVERT_FOGO] = SI_CONVERT_FOGO;
status->IconChangeTable[sC_CONVERT_VENTO] = SI_CONVERT_VENTO;
status->IconChangeTable[sC_CONVERT_TERRA] = SI_CONVERT_TERRA;
 
stateiconimginfo.lua:
[EFST_IDs.EFST_CONVERT_AGUA] = "STATUSAGUA.TGA",
[EFST_IDs.EFST_CONVERT_FOGO] = "statusfogo.TGA",
[EFST_IDs.EFST_CONVERT_VENTO] = "statusterra.TGA",
[EFST_IDs.EFST_CONVERT_TERRA] = "statusvento.tga",
 
stateiconinfo.lua:
StateIconList[EFST_IDs.EFST_CONVERT_AGUA] = {
haveTimeLimit = 1,
posTimeLimitStr = 2,
descript = {
{ "the great totem of ancient spirit", COLOR_TITLE_BUFF },
{ "%s", COLOR_TIME },
{ "Bônus em ataque mágico e físico" },
{ "em 10% contra monstros do tipo demônio" }
}
}
 
efstds.lua:
EFST_CONVERT_AGUA = 801,
EFST_CONVERT_FOGO = 802,
EFST_CONVERT_VENTO = 803,
EFST_CONVERT_TERRA = 804,
 
item_bd.conf
 
 sc_start SC_CONVERT_AGUA,10000,0;
 sc_start SC_CONVERT_FOGO,10000,0;
 sc_start SC_CONVERT_VENTO,10000,0;
 sc_start SC_CONVERT_TERRA,10000,0;
I think the error is in item_db.conf
I think it wrong to write! alright so?
 
 sc_start SC_CONVERT_AGUA,10000,0;
 sc_start SC_CONVERT_FOGO,10000,0;
 sc_start SC_CONVERT_VENTO,10000,0;
 sc_start SC_CONVERT_TERRA,10000,0;

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.