def sendAreaSkill(self, gamesocket, skillNum, level, x, y): #packet=struct.pack('2s9xH5xH2x4s', '\x72\x00', level, skillNum, targetID) packet='\x13\x01'+util.pad(3)+util.packWord(level) + util.pad(8) + util.packWord(skillNum) + util.pad(12) + util.packWord(x) + util.pad(7) + util.packWord(y) gamesocket.send(packet)
def sendMoveToKafra(self, gamesocket, index, quantity): packet='\x94\x00' + util.pad(3) + util.packWord(index) + util.pad(12) +util.packWord(quantity)+ util.pad(2) gamesocket.send(packet)