Adding New Status Icons

stiflerxx

New member
Messages
125
Points
0
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.

 
Last edited by a moderator:
the default status is stone curse, maybe it cant find the status you added

 
Last edited by a moderator:
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

 
Last edited by a moderator:
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;

 
Back
Top