summaryrefslogtreecommitdiff
path: root/servergreps
diff options
context:
space:
mode:
Diffstat (limited to 'servergreps')
-rw-r--r--servergreps/hercules/20140402/clientpreferredpackets.txt1
-rwxr-xr-xservergreps/hercules/packets.py3
2 files changed, 3 insertions, 1 deletions
diff --git a/servergreps/hercules/20140402/clientpreferredpackets.txt b/servergreps/hercules/20140402/clientpreferredpackets.txt
index ff7eafb..e69de29 100644
--- a/servergreps/hercules/20140402/clientpreferredpackets.txt
+++ b/servergreps/hercules/20140402/clientpreferredpackets.txt
@@ -1 +0,0 @@
-0815 -> 0360 CMSG_PLAYER_CHANGE_DIR clif->pChangeDir
diff --git a/servergreps/hercules/packets.py b/servergreps/hercules/packets.py
index ca4b169..35ddc02 100755
--- a/servergreps/hercules/packets.py
+++ b/servergreps/hercules/packets.py
@@ -364,6 +364,9 @@ def printPackets(packetDir):
if packet in clientPackets:
packet1 = clientPacketsManaPlusClient[packet]
packet2 = clientPackets[packet]
+ if packet1[0] != name:
+ # skip if same id used for other packet already
+ continue
if packet1[2] in serverFunctionToId:
data = serverFunctionToId[packet1[2]]
if packet1[2] == packet2[1] and serverFunctionToId[packet1[2]] != packet: