Fix incorrect packet id

This commit is contained in:
Ammar Askar 2013-07-24 22:45:56 +05:00
parent 33f143d8be
commit 490fd6df69
2 changed files with 13 additions and 11 deletions

View File

@ -305,14 +305,14 @@ class PacketListener(threading.Thread):
packet = PacketListenerManager.handle6A(self.FileObject)
elif (response == "\x6B"):
packet = PacketListenerManager.handle6B(self.FileObject)
elif (response == "\x78"):
packet = PacketListenerManager.handle78(self.FileObject)
elif (response == "\x82"):
packet = PacketListenerManager.handle82(self.FileObject)
elif (response == "\x83"):
packet = PacketListenerManager.handle83(self.FileObject)
elif (response == "\x84"):
packet = PacketListenerManager.handle84(self.FileObject)
elif (response == "\x85"):
packet = PacketListenerManager.handle85(self.FileObject)
elif (response == "\xC8"):
packet = PacketListenerManager.handleC8(self.FileObject)
elif (response == "\xC9"):

View File

@ -737,15 +737,6 @@ def handle6B(FileObject):
'ClickedItem': ClickedItem
}
def handle78(FileObject):
EntityID = DataUtil.readByte(FileObject)
X = DataUtil.readInt(FileObject)
Y = DataUtil.readInt(FileObject)
Z = DataUtil.readInt(FileObject)
return {'EntityID': EntityID,
'x': X,
'y': Y,
'z': Z}
def handle82(FileObject):
X = DataUtil.readInt(FileObject)
@ -798,6 +789,17 @@ def handle84(FileObject):
}
def handle85(FileObject):
EntityID = DataUtil.readByte(FileObject)
X = DataUtil.readInt(FileObject)
Y = DataUtil.readInt(FileObject)
Z = DataUtil.readInt(FileObject)
return {'EntityID': EntityID,
'x': X,
'y': Y,
'z': Z}
def handleC8(FileObject):
StatID = DataUtil.readInt(FileObject)
Amount = DataUtil.readInt(FileObject)