Hiya, everyone. Can someone help me sort my problem out.
It's the about the costume items made by Greenbox.
Here's the code for pc_unequipitem
if (sd->status.inventory[n].equip & EQP_HEAD_LOW_C)
{
int getLowLook = 0;
sd->status.costume_low = 0;
if (sd->equip_index[EQI_HEAD_LOW] > 0)
{
int d = sd->equip_index[EQI_HEAD_LOW];
getLowLook = sd->inventory_data[d]->look;
}
clif_changelook(&sd->bl, LOOK_HEAD_BOTTOM, getLowLook);
}
if (sd->status.inventory[n].equip & EQP_HEAD_LOW)
{
int getLowLook = 0;
if (sd->status.costume_low > 0)
getLowLook = sd->status.costume_low;
clif_changelook(&sd->bl, LOOK_HEAD_BOTTOM, getLowLook);
}
When I equip the costume items and then reconnect, unequip the costume items and then reconnect, the costume items are still equipped on my character while they are not. I think it has something to do with the code I posted above. [it was posted/made by r99t]
Hiya, everyone. Can someone help me sort my problem out.
It's the about the costume items made by Greenbox.
Here's the code for pc_unequipitem
if (sd->status.inventory[n].equip & EQP_HEAD_LOW_C) { int getLowLook = 0; sd->status.costume_low = 0; if (sd->equip_index[EQI_HEAD_LOW] > 0) { int d = sd->equip_index[EQI_HEAD_LOW]; getLowLook = sd->inventory_data[d]->look; } clif_changelook(&sd->bl, LOOK_HEAD_BOTTOM, getLowLook); } if (sd->status.inventory[n].equip & EQP_HEAD_LOW) { int getLowLook = 0; if (sd->status.costume_low > 0) getLowLook = sd->status.costume_low; clif_changelook(&sd->bl, LOOK_HEAD_BOTTOM, getLowLook); }When I equip the costume items and then reconnect, unequip the costume items and then reconnect, the costume items are still equipped on my character while they are not. I think it has something to do with the code I posted above. [it was posted/made by r99t]
Here's the code for pc_equipitem.
if (pos & EQP_HEAD_LOW_C) { sd->status.costume_low = id->look; clif_changelook(&sd->bl, LOOK_HEAD_BOTTOM, sd->status.costume_low); } if((pos & EQP_HEAD_LOW) && sd->status.costume_low == 0) { sd->status.head_bottom = id->look; clif_changelook(&sd->bl, LOOK_HEAD_BOTTOM, sd->status.head_bottom); }Tia and Happy Holidays to everyone!
Link to comment
Share on other sites