0% found this document useful (0 votes)
141 views2 pages

SC Counter

The document defines a list of world names, a door ID, and item ID. It then contains a function to warp to a world and ID, and a function to get a floating teleport object. The main code loops through each world, warps there, checks for the item ID on a tile, and if found will punch it and replace with a dirt block until the tile is clear.

Uploaded by

Papa Izan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
141 views2 pages

SC Counter

The document defines a list of world names, a door ID, and item ID. It then contains a function to warp to a world and ID, and a function to get a floating teleport object. The main code loops through each world, warps there, checks for the item ID on a tile, and if found will punch it and replace with a dirt block until the tile is clear.

Uploaded by

Papa Izan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

WorldList =

{ "BOGBW","BOGBE","BOGBP","BOGBS","BOGBZ","BOGBN","BOGBM","BOGBD","BOGBX","BOGBL" }
DoorID = "papa1994"
ItemID = 4584

-- in your bot backpack must have dirt block

function Warp(world,id)
sendPacket(3, "action|join_request\nname|"..world.."\ninvitedWorld|O")
sleep(6000)
sendPacket(3, "action|join_request\nname|"..world.."|"..id.."\ninvitedWorld|O")

sleep(3000)
end

local function get_floating_teleport()


for _, object in pairs(getObjects()) do
if math.floor(object.x/32) > 20 and math.floor(object.x/32) < 24 and
math.floor(object.y/32) == 23 then
collect(3)
sleep(500)
break
end
end
end

for _,list in pairs(WorldList) do


Warp(list,DoorID)
sleep(2000)
findPath(20,23)
sleep(500)
if getTile(21,23).fg == 0 or getTile(21,23).fg == ItemID or getTile(21,23).fg
== ItemID+1 then
findPath(20,23)
sleep(500)
if math.floor(getposx()/32) ~= 20 or math.floor(getposy()/32) ~= 23 then
findPath(20,23)
sleep(500)
end
if getTile(21,23).fg == 0 then
while getTile(21,23).fg == 0 do
if math.floor(findItem(2)) <= 0 then
removeBot(getBot().name)
return
end
get_floating_teleport()
place(2,1,0)
sleep(300)
end
end
if getTile(21,23).fg == ItemID then
while getTile(21,23).fg == ItemID do
while getTile(21,23).fg == ItemID do
punch(1,0)
sleep(300)
end
if math.floor(findItem(2)) <= 0 then
removeBot(getBot().name)
return
end
get_floating_teleport()
place(2,1,0)
sleep(300)
end
end
if getTile(21,23).fg == ItemID+1 then
while getTile(21,23).fg == ItemID+1 do
while getTile(21,23).fg == ItemID+1 do
punch(1,0)
sleep(300)
end
if math.floor(findItem(2)) <= 0 then
removeBot(getBot().name)
return
end
get_floating_teleport()
place(2,1,0)
sleep(300)
end
end
end
end

You might also like