summaryrefslogtreecommitdiff
path: root/src/map/packets_struct.h
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-11-25 19:35:38 -0200
committershennetsind <ind@henn.et>2013-11-25 19:35:38 -0200
commit61841e7861f63d98ecb417e2bf17135970b79c5a (patch)
tree40a9793423d523197df97ed80d5be96c1e615c20 /src/map/packets_struct.h
parent858835c54adb57c54e4870bd61caab8cfcf2f6df (diff)
downloadhercules-61841e7861f63d98ecb417e2bf17135970b79c5a.tar.gz
hercules-61841e7861f63d98ecb417e2bf17135970b79c5a.tar.bz2
hercules-61841e7861f63d98ecb417e2bf17135970b79c5a.tar.xz
hercules-61841e7861f63d98ecb417e2bf17135970b79c5a.zip
Fixed getareachar_skillunit v4 and minor cleanup
Special thanks to Rytech for pointing it out, updated to match latest data (Thanks to Yommy) and some minor cleanup Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r--src/map/packets_struct.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h
index fa947a163..882c2fe24 100644
--- a/src/map/packets_struct.h
+++ b/src/map/packets_struct.h
@@ -101,6 +101,16 @@ enum packet_headers {
bgqueue_notify_entryType = 0x8d9,
bgqueue_battlebeginsType = 0x8df,
notify_bounditemType = 0x2d3,
+#if PACKETVER < 3
+ skill_entryType = 0x11f,
+#elif PACKETVER < 20121212
+ skill_entryType = 0x8c7,
+#elif PACKETVER < 20130731
+ skill_entryType = 0x99f,
+#else
+ skill_entryType = 0x9ca,
+#endif
+ graffiti_entryType = 0x1c9,
#if PACKETVER > 20130000 /* not sure date */
dropflooritemType = 0x84b,
#else
@@ -811,6 +821,41 @@ struct packet_notify_bounditem {
unsigned short index;
} __attribute__((packed));
+struct packet_skill_entry {
+ short PacketType;
+#if PACKETVER >= 20110718
+ short PacketLength;
+#endif
+ unsigned int AID;
+ unsigned int creatorAID;
+ short xPos;
+ short yPos;
+#if PACKETVER >= 20121212
+ int job;
+#else
+ unsigned char job;
+#endif
+#if PACKETVER >= 20110718
+ char RadiusRange;
+#endif
+ unsigned char isVisible;
+#if PACKETVER >= 20130731
+ unsigned char level;
+#endif
+} __attribute__((packed));
+
+struct packet_graffiti_entry {
+ short PacketType;
+ unsigned int AID;
+ unsigned int creatorAID;
+ short xPos;
+ short yPos;
+ unsigned char job;
+ unsigned char isVisible;
+ unsigned char isContens;
+ char msg[80];
+} __attribute__((packed));
+
#pragma pack(pop)
#endif /* _PACKETS_STRUCT_H_ */