HT Move - Lua
HT Move - Lua
function say(teks)
SendPacket(2, "action|input\n|text|"..teks)
Sleep(200)
end
function tele(id)
for k,v in pairs(GetTiles()) do
if v.fg == id or v.bg == id then
FindPath(v.x, v.y)
Sleep(700)
end
end
end
seed = block + 1
function check(id)
for _, inv in pairs(GetInventory()) do
if inv.id == id then
return inv.amount
end
end
return 0
end
function drop(id)
SendPacket(2, "action|drop\n|itemID|"..id)
Sleep(200)
end
function pos()
return {x = math.floor(GetLocal().posX//32), y = math.floor(GetLocal().posY//32)}
end
function ht()
say("/wp "..worldfarm)
Sleep(3500)
for k,v in pairs(GetTiles()) do
if v.fg == seed and v.readyharvest == true then
FindPath(v.x, v.y)
if (v.x-pos().x) >= 3 and v.y ~= pos().y then
delayy = 50
else
delayy = delayht
end
Sleep(delayy)
p(pos().x, pos().y, 18)
Sleep(delayht)
if check(block) == 200 then
save()
end
if pos().x == 99 and pos().y == 53 then
break
end
end
end
end
function save()
if check(block) == 200 then
say("/wp "..worlddrop)
Sleep(3500)
tele(sign)
drop(block)
Sleep(delaydrop)
if check(block) == 200 then
drop(block)
Sleep(delaydrop)
end
ht()
end
end
function pp()
if pcall(function()
ht()
end) == false then
pp()
end
end
pcall(pp, 1)