def TalkAscii(text, type=0, hue=0x34, font=1): p = PacketWriter(0x03) p.byte(type) p.ushort(hue) p.ushort(font) p.cstring(text) return p.finish()
def TalkAscii(text, type=0, hue=0x34, font=1): p = PacketWriter(0x03) p.byte(type) p.ushort(hue) p.ushort(font) p.cstring(text) return p.finish()
def TalkUnicode(text, keyword, type=0xc0, hue=0x34, font=1): p = PacketWriter(0xad) p.byte(type) p.ushort(hue) p.ushort(font) p.fixstring('Eng', 4) p.byte(0x00) p.byte(0x10) p.byte(keyword) p.cstring(text) return p.finish()
def TalkUnicode(text, keyword, type=0xc0, hue=0x34, font=1): p = PacketWriter(0xad) p.byte(type) p.ushort(hue) p.ushort(font) p.fixstring('Eng', 4) p.byte(0x00) p.byte(0x10) p.byte(keyword) p.cstring(text) return p.finish()
def TextCommand(type, command): p = PacketWriter(0x12) p.byte(type) p.cstring(command) return p.finish()
def ClientVersion(version): p = PacketWriter(0xbd) p.cstring(version) return p.finish()
def TextCommand(type, command): p = PacketWriter(0x12) p.byte(type) p.cstring(command) return p.finish()