-- hit block
function hit_tile(x, y)
pkt = {}
pkt.type = 3
pkt.int_data = 18
pkt.int_x = x
pkt.int_y = y
pkt.pos_x = getLocal().pos.x
pkt.pos_y = getLocal().pos.y
sleep(50)
sendPacketRaw(pkt)
end
-- main
x = getLocal().pos.x / 32
tileY = getLocal().pos.y / 32
tileX = x - 1
while true do
if((getLocal().pos.x / 32) == x and (getLocal().pos.y / 32) == tileY) then
for i=0,2 do
hit_tile(tileX, tileY)
sleep(50)
end
end
sleep(100)
end