function main()
while not isSampAvailable() do
wait(0)
end
sampAddChatMessage("{8548f0}DanceSchool bot by FakeSince", -1)
sampAddChatMessage("{8548f0}blast.hk/members/442544/", -1)
end
function onReceivePacket(arg_2_0, arg_2_1)
if arg_2_0 == 215 then
local var_2_0 = raknetBitStreamReadInt16(arg_2_1)
local var_2_1 = raknetBitStreamReadInt32(arg_2_1)
local var_2_2 = raknetBitStreamReadInt8(arg_2_1)
local var_2_3 = raknetBitStreamReadInt8(arg_2_1)
local var_2_4 = raknetBitStreamReadInt32(arg_2_1)
if var_2_4 > 0 and var_2_4 < 5000 then
bitstreamtext = raknetBitStreamReadString(arg_2_1, var_2_4)
else
bitstreamtext = nil
end
if bitstreamtext then
if bitstreamtext:match("interface.*DanceTrack.*.showButton.*[0].*") then
sendKey(87)
end
if bitstreamtext:match("interface.*DanceTrack.*.showButton.*[1].*") then
sendKey(65)
end
if bitstreamtext:match("interface.*DanceTrack.*.showButton.*[2].*") then
sendKey(83)
end
if bitstreamtext:match("interface.*DanceTrack.*.showButton.*[3].*") then
sendKey(68)
end
if bitstreamtext:match("interface.*DanceTrack.*.showButton.*[4].*") then
sendKey(16)
end
if bitstreamtext:match("interface.*DanceTrack.*.showButton.*[5].*") then
sendKey(32)
end
if bitstreamtext:match("interface.*DanceTrack.*.showButton.*[6].*") then
sendKey(17)
end
end
end
end
function sendKey(arg_3_0)
bs = raknetNewBitStream()
raknetBitStreamWriteInt8(bs, 215)
raknetBitStreamWriteInt16(bs, 2)
raknetBitStreamWriteInt32(bs, 0)
raknetBitStreamWriteInt32(bs, #"OnPlayerClientSideKey")
raknetBitStreamWriteString(bs, "OnPlayerClientSideKey")
raknetBitStreamWriteInt32(bs, 2)
raknetBitStreamWriteInt8(bs, 100)
raknetBitStreamWriteInt32(bs, arg_3_0)
raknetSendBitStream(bs)
raknetDeleteBitStream(bs)
end