0% found this document useful (0 votes)
63 views5 pages

AutoRotation DC DimasTuru

Uploaded by

starries.real
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)
63 views5 pages

AutoRotation DC DimasTuru

Uploaded by

starries.real
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/ 5

-- This Script Downloaded From Risun Community

-- Link Join: https://www.linktr.ee/risunofficial


-- 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|https://linktr.ee/risunofficial|Open 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 = plr.netID
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 www.linktr.ee/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 v.id == itemID then
SendPacket(2, "action|trash\n|itemID|"..itemID)
SendPacket(2, "action|dialog_return\ndialog_name|trash_item\nitemID|"..itemID.."|\
ncount|"..v.amount)
Sleep(1000)
end
end
end

function place(id)
pkt = {}
pkt.x = GetLocal().posX
pkt.y = GetLocal().posY
pkt.px = math.floor(GetLocal().posX/32)
pkt.py = math.floor(GetLocal().posY/32)
pkt.type = 3
pkt.value = id;
SendPacketRaw(false, pkt)
end

function Punch()
pkt = {}
pkt.type = 3
pkt.value = 18
pkt.px = math.floor(GetLocal().posX/32)
pkt.py = math.floor(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
pkt.px = x
pkt.py = y
pkt.type = 3
pkt.value = BlockID
SendPacketRaw(false, pkt)
end

function hit(x, y)
pkt = {}
pkt.type = 3
pkt.value = 18
pkt.px = x
pkt.py = y
pkt.x = GetLocal().posX
pkt.y = GetLocal().posY
SendPacketRaw(false,pkt)
end

function cek(id)
for _, item in pairs(GetInventory()) do
if (item.id == id) then
return item.amount
end
end
return 0
end

function take(x,y,id)
local pkt = {}
pkt.type = 11;
pkt.value = id;
pkt.x = x;
pkt.y = y;
SendPacketRaw(false, pkt)
end

function takes()
for _, obj in pairs(GetObjectList()) do
if(math.abs(GetLocal().posX - obj.posX) < 70 and math.abs(GetLocal().posY -
obj.posY) < 32) then
Sleep(50)
take(obj.posX,obj.posY,obj.id)
end
end
end

function takes_1()
for _, obj in pairs(GetObjectList()) do
if(math.abs(GetLocal().posX - obj.posX) < 70 and math.abs(GetLocal().posY -
obj.posY) < 32) then
take(obj.posX,obj.posY,obj.id)
end
end
end

function plant()
Sleep(1000)
t("Bot Status [`2PLANT`0]")
Sleep(500)
for _, tile in pairs (GetTiles()) do
if (tile.fg == 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(tile.fg == seed) and (tile.readyharvest == 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(math.floor(GetLocal().posX/32-1),math.floor(GetLocal().posY/32))
end
if GetTiles(GetLocal().posX//32-1, GetLocal().posY//32).fg == 0 then
Sleep(180)
put(math.floor(GetLocal().posX/32-1),math.floor(GetLocal().posY/32))
Sleep(10)
hit(math.floor(GetLocal().posX/32-1),math.floor(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()

You might also like