urutan = 1
world = {"SET THIS"}
logToConsole("`2Auto Clear World Started")
sleep(4000)
logToConsole("`9Sc Remaked by zaidan#0157 and Fixed by: RaymarkGTX")
sleep(4000)
function punch(x, y)
local pkt = {}
[Link] = 3
[Link] = 18
[Link] = x
[Link] = y
pkt.x = getLocal().pos.x
pkt.y = getLocal().pos.y
sleep(200)
sendPacketRaw(false, pkt)
end
function join(name)
sleep(10)
sendPacket(2, "action|join_request\nname|" .. name .. "")
sendPacket(3, "action|join_request\nname|" .. name .. "\ninvitedWorld|0")
sleep(4000)
end
function side()
for x = 0, 99 do
for y = 0, 53 do
local k = checkTile(x, y)
if [Link] == 14 then
sleep(250)
findPath([Link].x, [Link].y - 1, 120)
sleep(200)
while checkTile(x, y).bg == 14 do
punch(x, y)
end
end
end
end
for x = 98, 99 do
for y = 0, 53 do
local k = checkTile(x, y)
if [Link] == 14 then
sleep(250)
findPath([Link].x, [Link].y - 1, 120)
sleep(200)
while checkTile(x, y).bg == 14 do
punch(x, y)
end
end
end
end
end
function main()
for y = 1, 53, 2 do
for x = 0, 99 do
local bg = checkTile(x, y)
if [Link] == 14 then
sleep(250)
findPath([Link].x, [Link].y - 2, 140)
sleep(200)
while checkTile([Link].x, [Link].y).bg == 14 do
punch([Link].x, [Link].y)
end
end
end
end
end
n = urutan
while true do
join(world[n])
side()
main()
n = n + 1
if n > #world then
n = 1
end
end