нууууууу здееееелай ботика для рыболовли, я нашел небольшой фрагмент, он самостоятельно вводит капчу на рыболовлю
function sendCustomPacket(text)
local bs = raknetNewBitStream()
raknetBitStreamWriteInt8(bs, 220)
raknetBitStreamWriteInt8(bs, 18)
raknetBitStreamWriteInt32(bs, #text)
raknetBitStreamWriteString(bs, text)
raknetBitStreamWriteInt32(bs, 0)
raknetSendBitStream(bs)
raknetDeleteBitStream(bs)
end
function bitStreamToString(bs)
local arr, t = {}, {}
for i = 1, raknetBitStreamGetNumberOfBytesUsed(bs) do
table.insert(arr, raknetBitStreamReadInt8(bs))
end
for k, v in ipairs(arr) do
if v >= 33 and v <= 255 then
table.insert(t, string.char(v))
end
end
return table.concat(t, ''), table.concat(arr, ', ')
end
function onReceivePacket(id, bs)
wait(500)
if id == 220 then
local text, ids = bitStreamToString(bs)
local countKeys = tonumber(text:match('"miniGameKeysCount":(%d+)'))
if countKeys then
wait(500)
lua_thread.create(function()
for i = 1, countKeys do
wait(500)
sendCustomPacket('miniGame.DebugKeyID|74|74|true')
end
wait(500)
sendCustomPacket('miniGame.keyReaction.finish|' .. countKeys)
end)
return false
end
end
end