Advertisement
Guest User

Untitled

a guest
May 27th, 2015
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.46 KB | None | 0 0
  1. packet = self.parseByte.ByteArray(data)
  2.             key = packet.readShort()
  3.             down = packet.readBoolean()
  4.             x = packet.readShort()
  5.             y = packet.readShort()
  6.             keyid = struct.unpack("!h", data[:2])[0]
  7.            
  8.             if self.room.isMiniGame:
  9.                 try:
  10.                     self.room.GameScript.eventKeyboard(self.username, key, down, x, y)
  11.                 except Exception as error:
  12.                     pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement