Jump to content
  • 0
Legato

pc_unequipitem

Question

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

4 answers to this question

Recommended Posts

Support for costumes has recently been added into rAthena. Try downloading the latest revision. Editing your costume items to suit the changes and see if it is fixed.

Link to comment
Share on other sites

Mind sending me / posting here a link?

I downloaded 15036 revision from here. But I doubt that's the correct link for the latest rAthena's revisions.

Edited by Legato
Link to comment
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.   Paste as plain text instead

  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.



×
×
  • Create New...

Important Information

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