summaryrefslogtreecommitdiff
path: root/src/map/packets_struct.h
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-11-15 03:32:45 -0200
committershennetsind <ind@henn.et>2013-11-15 03:32:45 -0200
commit1f5161a2bd3c7934373146d8cac3c131536758ba (patch)
treee788177258e61e81b5d20dc7eb43c2d7c6cd8ff5 /src/map/packets_struct.h
parentcdf6dc90768b1b524c78e3a172c7a844dd88a943 (diff)
downloadhercules-1f5161a2bd3c7934373146d8cac3c131536758ba.tar.gz
hercules-1f5161a2bd3c7934373146d8cac3c131536758ba.tar.bz2
hercules-1f5161a2bd3c7934373146d8cac3c131536758ba.tar.xz
hercules-1f5161a2bd3c7934373146d8cac3c131536758ba.zip
Official Item BindOnEquip Support
Implements the 'BindOnEquip' item db field which determines whether the piece of equipment should bind to the character upon being equipped. When a character tries to equip such a item for the first time a dialog shows up asking the character to confirm whether to equip the item or not, and notifying the character that by equipping the item it will become bound to the character, and therefore unable to be used by another character. Special Thanks to Beret for all the information, Haruna for testing. Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r--src/map/packets_struct.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h
index 813aebee0..fa947a163 100644
--- a/src/map/packets_struct.h
+++ b/src/map/packets_struct.h
@@ -99,7 +99,8 @@ enum packet_headers {
bgqueue_revokereqType = 0x8da,
bgqueue_battlebeginackType = 0x8e0,
bgqueue_notify_entryType = 0x8d9,
- bgqueue_battlebegins = 0x8df,
+ bgqueue_battlebeginsType = 0x8df,
+ notify_bounditemType = 0x2d3,
#if PACKETVER > 20130000 /* not sure date */
dropflooritemType = 0x84b,
#else
@@ -181,6 +182,7 @@ enum packet_headers {
#else
viewequipackType = 0x2d7,
#endif
+ notifybindonequip = 0x2d3,
monsterhpType = 0x977,
maptypeproperty2Type = 0x99b,
};
@@ -804,6 +806,10 @@ struct packet_viewequip_ack {
struct EQUIPITEM_INFO list[MAX_INVENTORY];
} __attribute__((packed));
+struct packet_notify_bounditem {
+ short PacketType;
+ unsigned short index;
+} __attribute__((packed));
#pragma pack(pop)