diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-08-18 00:55:12 +0200 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-08-18 00:55:12 +0200 |
commit | 10fd0338203a46cec913859fd5e38b61fa24a30f (patch) | |
tree | 8bb8b15d69f4823104d27b135330e8455665b2c1 /src/common | |
parent | caf715fc482e700d80eab7592a4e61e4a0417294 (diff) | |
download | manaserv-10fd0338203a46cec913859fd5e38b61fa24a30f.tar.gz manaserv-10fd0338203a46cec913859fd5e38b61fa24a30f.tar.bz2 manaserv-10fd0338203a46cec913859fd5e38b61fa24a30f.tar.xz manaserv-10fd0338203a46cec913859fd5e38b61fa24a30f.zip |
Change the unequip function to make use of the item instance id.
It will make the client capable to tell which item
is to be unequipped when there are several item equipped
within a slot type, for instance.
The client has now yet to be upgraded to follow the new protocol.
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/manaserv_protocol.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/manaserv_protocol.h b/src/common/manaserv_protocol.h index 6c51aef9..25dd7c77 100644 --- a/src/common/manaserv_protocol.h +++ b/src/common/manaserv_protocol.h @@ -91,11 +91,11 @@ enum { PGMSG_PICKUP = 0x0110, // W*2 position
PGMSG_DROP = 0x0111, // W slot, W amount
PGMSG_EQUIP = 0x0112, // W inventory slot
- PGMSG_UNEQUIP = 0x0113, // W equipment slot
+ PGMSG_UNEQUIP = 0x0113, // W item Instance id
PGMSG_MOVE_ITEM = 0x0114, // W slot1, W slot2, W amount
GPMSG_INVENTORY = 0x0120, // { W slot, W item id [, W amount] (if item id is nonzero) }*
GPMSG_INVENTORY_FULL = 0x0121, // W inventory slot count { W slot, W itemId, W amount }, { W equip slot, W item Id, W item Instance}*
- GPMSG_EQUIP = 0x0122, // W item Id, W equip slot type count { W equip slot, W capacity used}*
+ GPMSG_EQUIP = 0x0122, // W item Id, W equip slot type count //{ W equip slot, W capacity used}*//<- When equipping, //{ W item instance, W 0}*//<- When unequipping
GPMSG_PLAYER_ATTRIBUTE_CHANGE = 0x0130, // { W attribute, D base value (in 1/256ths), D modified value (in 1/256ths)}*
GPMSG_PLAYER_EXP_CHANGE = 0x0140, // { W skill, D exp got, D exp needed }*
GPMSG_LEVELUP = 0x0150, // W new level, W character points, W correction points
|