summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/packet.py12
-rw-r--r--net/protocol.py14
2 files changed, 21 insertions, 5 deletions
diff --git a/net/packet.py b/net/packet.py
index ef48094..232cd52 100644
--- a/net/packet.py
+++ b/net/packet.py
@@ -11,7 +11,7 @@ packet_lengths = [
#0x0040
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 50, 3, -1, 55, 17, 3, 37, 46, -1, 23, -1, 3,108, 3, 2,
+ 0, 50, 3, -1, 55, 17, 3, 37, 46, -1, 23, -1, 3,108, 3, 2,
3, 28, 19, 11, 3, -1, 9, 5, 54, 53, 58, 60, 41, 2, 6, 6,
#0x0080
7, 3, 2, 2, 2, 5, 16, 12, 10, 7, 29, 23, -1, -1, -1, 0,
@@ -42,10 +42,12 @@ packet_lengths = [
2, 14, 10, -1, 22, 22, 4, 2, 13, 97, 0, 9, 9, 29, 6, 28,
8, 14, 10, 35, 6, 8, 4, 11, 54, 53, 60, 2, -1, 47, 33, 6,
30, 8, 34, 14, 2, 6, 26, 2, 28, 81, 6, 10, 26, 2, -1, -1,
- -1, -1, 20, 10, 32, 9, 34, 14, 2, 6, 48, 56, -1, 4, 5, 10,
-#0x2000
- 26, 0, 0, 0, 18, 0, 0, 0, 0, 0, 0, 19, 10, 0, 0, 0,
- 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
+ -1, -1, 20, 10, 32, 9, 34, 14, 2, 6, 48, 56, -1, 4, 5, 4,
+#0x0200
+ 26, 0, 0, 0, 18, 0, 0, 0, 0, 0, 0, 19, 10, 0, 0, 0,
+ 0, 0, 16, 0, 8, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, -1, 10, -1, -1, -1, 0, 0, 0, 0, 0, 0,
+ -1, 34, 10, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
]
class PacketOut:
diff --git a/net/protocol.py b/net/protocol.py
index fc64767..a6dcb4c 100644
--- a/net/protocol.py
+++ b/net/protocol.py
@@ -1,5 +1,6 @@
SMSG_LOGIN_DATA = 0x0069
SMSG_CHAR_LOGIN = 0x006b
+SMSG_QUEST_SET_VAR = 0x0214
SMSG_QUEST_PLAYER_VARS = 0x0215
SMSG_CHAR_MAP_INFO = 0x0071
SMSG_MAP_LOGIN_SUCCESS = 0x0073
@@ -60,6 +61,19 @@ SMSG_TRADE_COMPLETE = 0x00f0
SMSG_ITEM_VISIBLE = 0x009d
SMSG_ITEM_DROPPED = 0x009e
SMSG_ITEM_REMOVE = 0x00a1
+SMSG_PVP_SET = 0x019a
+SMSG_PVP_MAP_MODE = 0x0199
+
+SMSG_NPC_COMMAND = 0x0212
+SMSG_BEING_MOVE3 = 0x0225
+SMSG_MAP_MASK = 0x0226
+SMSG_MAP_MUSIC = 0x0227
+SMSG_NPC_CHANGETITLE 0x0228
+SMSG_SCRIPT_MESSAGE = 0x0229
+SMSG_PLAYER_CLIENT_COMMAND = 0x0230
+SMSG_MAP_SET_TILES_TYPE = 0x0231
+SMSG_PLAYER_HP = 0x0232
+SMSG_PLAYER_HP_FULL = 0x0233
inventory_offset = 2
storage_offset = 1