Jump to content
  • 0

pc_unequipitem


Legato

Question


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  87
  • Reputation:   1
  • Joined:  11/20/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  1315
  • Reputation:   372
  • Joined:  12/10/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  87
  • Reputation:   1
  • Joined:  11/20/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  1315
  • Reputation:   372
  • Joined:  12/10/11
  • Last Seen:  

That's eA's SVN.

Download TortoiseSVN and do an SVN checkout of this:

https://rathena.svn..../rathena/trunk/

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  87
  • Reputation:   1
  • Joined:  11/20/11
  • Last Seen:  

Ahh. Thanks.

Alright. Someone may close this thread. I solved my problem.

Thanks, Arcenciel!

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...