PTHT
PTHT
world = "island"
plantid = 5640
harvestid = 13905
delayPT = 100
delayHT = 50
EditToggle("ModFly", true)
EditToggle("Anti Lag", true)
EditToggle("Antibounce", true)
function uws()
if getTree() == 0 then
Sleep(500)
SendPacket(2, "action|dialog_return\ndialog_name|ultraworldspray")
Sleep(2000)
harvest()
elseif getTree() ~= 0 then
plant()
Sleep(1000)
end
end
function plant()
if getReady() < 20000 then
for y = ey, 0, -1 do
for x = 0, ex, 10 do
if GetTile(x,y).fg == 0 and (GetTile(x,y+1).fg ~= 0 and
GetTile(x,y+1).fg %2 == 0) then
path(x, y, 32)
Sleep(1)
h2(x, y, plantid)
Sleep(delayPT)
end
end
for x = ex, 0, -1 do
if GetTile(x,y).fg == 0 and (GetTile(x,y+1).fg ~= 0 and
GetTile(x,y+1).fg %2 == 0) then
path(x, y, 48)
Sleep(1)
h2(x, y, plantid)
Sleep(delayPT)
end
end
end
end
uws()
end
function main()
Sleep(200)
harvest()
Sleep(200)
plant()
end
function AvoidError()
if pcall(function()
main()
end) == false then
Sleep(100)
AvoidError()
end
Sleep(100)
AvoidError()
end
for i = 1, 5 do
SendPacket(2, [[action|input
|text|`2 Ptht `4 dr.tristi `0 Start ]])
Sleep(1000)
end
AvoidError()