Jump to content
  • 0

Usable Items bug After Relog


Question

Posted

Hello guys.

 

I know this is a rAthena community and it has nothing to do with eAthena/eAmod buti was hoping that someone of you all would help me with this, if you had a small idea about how to resolve this problem.

 

Well, i'm using latest version of eAthena. When i grab and item from the floor or get it from a command, i can use the item with no problem, but, when i relog or restart the server, i cannot longer use that item (i'm talking about Consumables/Usables items only) The equipments work fine and also Misc. It's just the usable items.

 

The console doesn't show any errors, either the client. And it does exist the table Inventory on my SQL.

 

I've been investigating the whole yesterday and part of today and i have found no answers to this.

 

I was wondering if one of you would have a clue.

 

Thank you guys.

2 answers to this question

Recommended Posts

  • 0
Posted (edited)

Hello!

 

Open ../src/char_sql/char.c and in the function "mmo_char_fromsql" before:

  memset(p, 0, sizeof(struct mmo_charstatus));

add:

  memset(&tmp_item, 0, sizeof(tmp_item));

Save it and re-compile the server.

Edited by Functor
  • Upvote 1
  • 0
Posted
On 1/18/2016 at 6:30 AM, Functor said:

Hello!

 

Open ../src/char_sql/char.c and in the function "mmo_char_fromsql" before:

  memset(p, 0, sizeof(struct mmo_charstatus));

add:

  memset(&tmp_item, 0, sizeof(tmp_item));

Save it and re-compile the server.

thank its working

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...