summaryrefslogtreecommitdiff
path: root/src/map/packets_struct.h
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-04-12 00:14:34 -0300
committershennetsind <ind@henn.et>2013-04-12 00:14:34 -0300
commit4d89aa6e1c733618b720170a0979d895689b1d1e (patch)
treed85e6353363c6800dc0ce085e1670d01e8344fb8 /src/map/packets_struct.h
parent57b5943b55e8b8bcede9b4aa944ff855687a366a (diff)
downloadhercules-4d89aa6e1c733618b720170a0979d895689b1d1e.tar.gz
hercules-4d89aa6e1c733618b720170a0979d895689b1d1e.tar.bz2
hercules-4d89aa6e1c733618b720170a0979d895689b1d1e.tar.xz
hercules-4d89aa6e1c733618b720170a0979d895689b1d1e.zip
Hercules Renewal: Phase Two: Starting~!
http://hercules.ws/board/topic/383-hercules-renewal-phase-two/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r--src/map/packets_struct.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h
new file mode 100644
index 000000000..9a872926f
--- /dev/null
+++ b/src/map/packets_struct.h
@@ -0,0 +1,52 @@
+// Copyright (c) Hercules Dev Team, licensed under GNU GPL.
+// See the LICENSE file
+
+/* Hercules Renewal: Phase Two http://hercules.ws/board/topic/383-hercules-renewal-phase-two/ */
+
+#ifndef _PACKETS_STRUCT_H_
+#define _PACKETS_STRUCT_H_
+
+enum packet_headers {
+#if PACKETVER < 20080102
+ authokType = 0x73,
+#else
+ authokType = 0x2eb,
+#endif
+ maptypeproperty2Type = 0x99b,
+};
+
+#pragma pack(push, 1)
+
+struct packet_authok {
+ short PacketType;
+ unsigned int startTime;
+ char PosDir[3];
+ unsigned char xSize;
+ unsigned char ySize;
+#if PACKETVER >= 20080102
+ short font;
+#endif
+} __attribute__((packed));
+
+struct packet_maptypeproperty2 {
+ short PacketType;
+ short type;
+ struct {
+ unsigned int party : 1;
+ unsigned int guild : 1;
+ unsigned int siege : 1;
+ unsigned int mineffect : 1;
+ unsigned int nolockon : 1;
+ unsigned int countpk : 1;
+ unsigned int nopartyformation : 1;
+ unsigned int bg : 1;
+ unsigned int noitemconsumption : 1;
+ unsigned int usecart : 1;
+ unsigned int summonstarmiracle : 1;
+ unsigned int SpareBits : 15;
+ } flag;
+} __attribute__((packed));
+
+#pragma pack(pop)
+
+#endif /* _PACKETS_STRUCT_H_ */