-- This Script Downloaded From Risun Community
-- Link Join: [Link]
-- Join For More Free Tons of Free Script updates!
-- CHANGE HERE --
BlockID = 2 -- ID BLOCK
delay = 280 -- Delay AUTOHT/PLANT
Trash1 = 5028 -- TRASHITEM
Trash2 = 5030 -- TRASHITEM2
seed = BlockID + 1 -- NO CHANGE
-- DONT CHANGE code below. if u dont know things what you're do!--
dialog = [[add_label_with_icon|big|`0Free AutoRotation`9By Anyone yahaha |
left|]]..BlockID..[[|
add_spacer|small|
add_textbox|`0Script Information |left|
add_textbox|`0BlockID :`c ]] .. BlockID .. [[|left|
add_textbox|`0SeedID :`c ]] .. seed .. [[|left|
add_textbox|`0Delay HT/PLANT :`c ]] .. delay .. [[|left|
add_textbox|`0Trash Slot 1 :`c ]] .. Trash1 .. [[|left|
add_textbox|`0Trash Slot 2 :`c ]] .. Trash2 .. [[|left|
add_spacer|small|
add_textbox|`b- ENJOY SCRIPT! tons free script at discord and telegram|left|
add_textbox|`9Free GrowLauncher And Script Join Telegram or Discord, Link Below!!|
left|
add_url_button||`$LinkTree Risun
Community``|NOFLAGS|[Link] Link Risun Community?|0|0|
add_spacer|small|
add_button||`$Ah yamete onii chan<3``|add_quick_exit|0|0|
add_quick_exit|]]
var = {}
var.v0 = "OnDialogRequest"
var.v1 = dialog
SendVariant(var)
function t(teks)
p={}
p.v0 = "OnTextOverlay"
p.v1 = ""..teks..""
SendVariant(p)
end
for _, plr in pairs(GetPlayerList ()) do
var = {}
var.v0 = "OnTalkBubble"
var.v2 = "CP:0_PL:4_OID:_`cRisun Community"
var.v1 = [Link]
SendVariant(var);
var.v0 = "OnTextOverlay"
var.v1 = "Edit By Dimas Turu"
SendVariant(var);
end
LogToConsole("`9Enjoy Tons Of Free Script at Risun Community")
LogToConsole("`cJoin Link [Link]/risunofficial")
Sleep(2000)
LogToConsole("`0[`9RISUN`0] Script Started!")
Sleep(400)
EditToggle("AntiBan", true)
EditToggle("ModFly", true)
EditToggle("Anti Lag", true)
EditToggle("Anti Punch", true)
EditToggle("Anti Lava", true)
EditToggle("Auto Leave", true)
EditToggle("Use Warn Text", true)
EditToggle("Can See Ghost", true)
function drop(itemID)
SendPacket(2, "action|drop\n|itemID|"..itemID)
SendPacket(2, "action|dialog_return\ndialog_name|drop_item\nitemID|"..itemID.."|\
ncount|80")
Sleep(1000)
end
function trash(itemID)
for _, v in pairs(GetInventory())
do
if [Link] == itemID then
SendPacket(2, "action|trash\n|itemID|"..itemID)
SendPacket(2, "action|dialog_return\ndialog_name|trash_item\nitemID|"..itemID.."|\
ncount|"..[Link])
Sleep(1000)
end
end
end
function place(id)
pkt = {}
pkt.x = GetLocal().posX
pkt.y = GetLocal().posY
[Link] = [Link](GetLocal().posX/32)
[Link] = [Link](GetLocal().posY/32)
[Link] = 3
[Link] = id;
SendPacketRaw(false, pkt)
end
function Punch()
pkt = {}
[Link] = 3
[Link] = 18
[Link] = [Link](GetLocal().posX/32)
[Link] = [Link](GetLocal().posY/32)
pkt.x = GetLocal().posX
pkt.y = GetLocal().posY
SendPacketRaw(false,pkt)
end
function put(x, y)
pkt = {}
pkt.x = GetLocal().posX
pkt.y = GetLocal().posY
[Link] = x
[Link] = y
[Link] = 3
[Link] = BlockID
SendPacketRaw(false, pkt)
end
function hit(x, y)
pkt = {}
[Link] = 3
[Link] = 18
[Link] = x
[Link] = y
pkt.x = GetLocal().posX
pkt.y = GetLocal().posY
SendPacketRaw(false,pkt)
end
function cek(id)
for _, item in pairs(GetInventory()) do
if ([Link] == id) then
return [Link]
end
end
return 0
end
function take(x,y,id)
local pkt = {}
[Link] = 11;
[Link] = id;
pkt.x = x;
pkt.y = y;
SendPacketRaw(false, pkt)
end
function takes()
for _, obj in pairs(GetObjectList()) do
if([Link](GetLocal().posX - [Link]) < 70 and [Link](GetLocal().posY -
[Link]) < 32) then
Sleep(50)
take([Link],[Link],[Link])
end
end
end
function takes_1()
for _, obj in pairs(GetObjectList()) do
if([Link](GetLocal().posX - [Link]) < 70 and [Link](GetLocal().posY -
[Link]) < 32) then
take([Link],[Link],[Link])
end
end
end
function plant()
Sleep(1000)
t("Bot Status [`2PLANT`0]")
Sleep(500)
for _, tile in pairs (GetTiles()) do
if ([Link] == 0) and GetTiles(tile.x, tile.y + 1).coltype ~= 0 then
FindPath(tile.x, tile.y)
Sleep(delay)
place(seed)
Sleep(200)
if cek(seed) == 0 then
harvest()
end
end
end
end
function harvest()
Sleep(200)
t("Bot Status [`2HARVEST`0]")
Sleep(5700)
if cek(BlockID) <= 130 then
for _, tile in pairs(GetTiles()) do
if([Link] == seed) and ([Link] == true) then
FindPath(tile.x,tile.y)
Sleep(delay)
Punch()
takes_1()
Sleep(200)
if cek(BlockID) >= 130 then
Sleep(900)
pnb()
end
end
end
end
end
function pnb_1()
while GetTiles(GetLocal().posX//32-1, GetLocal().posY//32).fg == BlockID do
Sleep(175)
hit([Link](GetLocal().posX/32-1),[Link](GetLocal().posY/32))
end
if GetTiles(GetLocal().posX//32-1, GetLocal().posY//32).fg == 0 then
Sleep(180)
put([Link](GetLocal().posX/32-1),[Link](GetLocal().posY/32))
Sleep(10)
hit([Link](GetLocal().posX/32-1),[Link](GetLocal().posY/32))
end
end
function pnb()
Sleep(200)
t("Bot Status [`2BREAKING`0]")
Sleep(500)
FindPath(1, 1)
Sleep(400)
if cek(BlockID) >= 130 then
Sleep(1300)
run = true
pnb_block = tonumber(cek(BlockID))
Sleep(200)
t("Breaking [`2"..pnb_block.."`0] Block")
while run do
pnb_1()
takes()
if cek(BlockID) == 0 then
Sleep(400)
run = false
Sleep(200)
t("Succes Breaking [`2"..pnb_block.."`0] Block")
Sleep(500)
plant()
elseif cek(seed) >= 180 then
run = false
Sleep(400)
t("Bot Status [`2DROP SEED`0]")
FindPath(3, 1)
Sleep(1000)
drop(seed)
Sleep(1000)
FindPath(1, 1)
Sleep(2000)
t("Back Breaking [`2"..cek(BlockID).."`0] Block")
run = true
end
end
end
end
function main()
if cek(Trash1) >= 30 or cek(Trash2) >= 30 then
t("Bot Status [`2TRASHING ITEM`0]")
Sleep(200)
trash(Trash1)
Sleep(500)
trash(Trash2)
Sleep(500)
end
Sleep(200)
harvest()
Sleep(200)
pnb()
Sleep(200)
plant()
end
function AvoidException()
if pcall(function()
main()
end) == false then
AvoidException()
end
end
AvoidException()