local authkey = '26C12CCBE0D5AB04021ABF3F090D419EA21A4CAD171'
local clientversion = '0.3.7-R3'
function onSendRpc(id, data, size)
if id == 25 then
bs = bitStreamInit(data, size)
bitStreamSetReadOffset(bs, 5)
nickname_len = bitStreamReadByte(bs)
bitStreamSetWriteOffset(bs, 6 + nickname_len + 4)
bitStreamWriteByte(bs, #authkey)
bitStreamWriteString(bs, authkey, #authkey)
bitStreamSetWriteOffset(bs, 6 + nickname_len + 5 + #authkey)
bitStreamWriteByte(bs, #clientversion)
bitStreamSetWriteOffset(bs, 6 + nickname_len + 5 + #authkey + 1)
bitStreamWriteString(bs, clientversion, #clientversion)
bitStreamDelete(bs)
defCallAdd(200, false, function()
local packet = bitStreamNew()
bitStreamWriteByte(packet, 108)
sendPacket(packet)
bitStreamDelete(packet)
end)
end
end