Shaiya packet data field about 0x0205

08/12/2023 18:06 momo314_#1
Hi guys
I am working at a shaiya server project, and now I got a problem:

What does each byte in the 0x0205 (inventory item added) data packet (sent from server) represent?

Is there anyone who can help me? thank you!

Here is my guess:

HTML Code:
0-1    :0x0205 (packet header)
---------------------------------
2      : (byte)      BagIndex
3      : (byte)      SlotIndex
4      : (byte)      Item Type
5      : (byte)      Item TypeId
6      : (byte)      Item Quantity
7-8    : (ushort)    Item Quality (for equipment item, or 0 for other item)
9-12   : (uint)      Gold (If the character picks up the gold)
13-36  : (int[6])    Linked Gems (for equipment item)
37-59  : (byte[23])  Unkown Bytes, what do these bytes mean?
60     : (bool)      Has been dyed (for equipment item)
61-64  : (byte[4])   Equipment Color: Alpha, R, G, B
65-86  : (byte[22])  Unkown Bytes, what do these bytes mean?
87-106 : (byte[20])  CraftName (for equipment item) (orange stat)
107    : (bool)      always true, not sure, what does this byte mean?
Does anyone know what the bytes in these three areas represent?
  • 37-59
  • 65-86
  • 107
08/16/2023 15:31 momo314_#2
Quote:
Originally Posted by Bowie View Post
Code:
107    : (bool)      always true, not sure, what does this byte mean?
that byte is supposed to be a null-terminator for the craftname string.

Code:
30 30 30 31 30 30 30 32 30 31 30 30 30 30 30 30 30 30 30 30 00 // null
Yes,I just tried setting it to 0 forever, but no game function seems to be affected, I think you are right
01/04/2024 12:59 Shaiya Galaxy#3
* Removed because solved.