AutoDFu23 Lua
AutoDFu23 Lua
worldID = "BAR"
TotalWorld = 1
StoragePlatform = "StoragePlat"
StoragePlatformID = "DoorID"
platformID = 102 -- ID Platform
sendVariant({
[0] = "OnDialogRequest",
[1]= string.format([[
add_label_with_icon|big|`3Auto Dirt Farm GENTA HAX|left|11816|
add_spacer|small|
add_image_button|banner|interface/large/news_banner.rttex|bannerlayout|OPENSURVEY|
add_spacer|small|
add_label_with_icon|small|`2Auto Dirt Farm Version 1.2|left|2376|
add_smalltext|`9Finally finished even though there are still lots of bugs|left|
add_spacer|small|
add_label_with_icon|small|`9Script Info & Rules :|left|3524|
add_label_with_icon|small|`0Thanks for using This Script|left|482|
add_label_with_icon|small|`0Script By `2[ `#SpeedBar#9652 Community `2]|left|482|
add_label_with_icon|small|`0Please Do not `4Resell `0This Script|left|482|
add_label_with_icon|small|`0If you have any questions? feel free to ask me|left|
482|
add_label_with_icon|small|`0Join my discord for the next update|left|482|
add_spacer|small|
add_smalltext|`0My Sosial Media!!|
add_image_button|gazette_DiscordServer|interface/large/gazette/
gazette_5columns_social_btn01.rttex|7imageslayout20|https://discord.gg/VjBfp8xKxE|
Would you like to join my Discord Server?|
add_image_button|gazette_Tiktok|interface/large/gazette/
gazette_5columns_social_btn03.rttex|7imageslayout20|https://www.tiktok.com/
@speedbar.id?_t=8m4pD7cyRso&_r=1|Would you like to open this in Tiktok?|
add_image_button|gazette_Youtube|interface/large/gazette/
gazette_5columns_btn04.rttex|7imageslayout20|https://youtube.com/@SpeedBar9652|
Would you like to open this in YouTube?|
add_spacer|big|
add_spacer|big|
add_quick_exit
end_dialog|loginpend||Okey|]]),
}, -1, 3500)
worldFound = {}
toggleCheat(26,true)
toggleCheat(4,true)
function bar03772_19377(bar83648_83739,bar83649_92639)
local packet = {}
packet.type = 3
packet.state = 2592
packet.value = 18
packet.punchx = bar83648_83739
packet.punchy = bar83649_92639
packet.x = (getLocal().pos.x)
packet.y = (getLocal().pos.y)
sendPacketRaw(false,packet)
end
function bar_suka_cathy_92729_92639(bar83648_83739,bar83649_92639,bar19451_19452)
local packet = {}
packet.type = 3
packet.value = bar19451_19452
packet.punchx = bar83648_83739
packet.punchy = bar83649_92639
packet.x = (getLocal().pos.x)
packet.y = (getLocal().pos.y)
sendPacketRaw(false,packet)
end
function bar_UUD_1945_73662(object)
local packet = {}
packet.type = 11
packet.value = object.oid
packet.x = object.pos.x
packet.y = object.pos.y
sendPacketRaw(false,packet)
end
function ketoy_toya_82724(bar83648_83739,bar83649_92639)
for _,object in pairs(getWorldObject()) do
if math.floor((object.pos.x + 8) / 32) == bar83648_83739 or
math.floor((object.pos.y + 8) / 32) == bar83649_92639 then
bar_UUD_1945_73662(object)
sleep(10)
end
end
end
function cathy_bar_michie_92737_02727(bar19451_19452)
for _,item in pairs(getInventory()) do
if item.id == bar19451_19452 then
return item.amount
end
end
return 0
end
function tableInventory()
local itemTable = {}
for i,item in pairs(getInventory()) do
itemTable[item.id] = {count = item.amount}
end
return itemTable
end
function clearInventory()
local inventory = tableInventory()
local trashList = {2914,5024,5026,5028,5030,5032,5034,5036,5038,5040,5042,5044}
for _,trash in pairs(trashList) do
if inventory[trash] and inventory[trash].count > 0 then
sendPacket(2, "action|trash\n|itemID|"..trash)
sendPacket(2, "action|dialog_return\ndialog_name|trash_item\
nitemID|"..trash.."|\ncount|"..inventory[trash].count)
sleep(2000)
end
end
local bar_suka_cathy_74628_93629 = {2,3,4,5,14,15,11}
for _,trash in pairs(bar_suka_cathy_74628_93629) do
if inventory[trash] and inventory[trash].count > 195 then
if trash ~= 3 and trash ~= 5 and trash ~= 11 and trash ~= 15 then
sendPacket(2, "action|trash\n|itemID|"..trash)
sendPacket(2, "action|dialog_return\ndialog_name|trash_item\
nitemID|"..trash.."|\ncount|".. (trash == 2 and 20 or 100))
sleep(2000)
else
if not bar_suka_michie_92619_82639 then
sendPacket(2, "action|trash\n|itemID|"..trash)
sendPacket(2, "action|dialog_return\ndialog_name|trash_item\
nitemID|"..trash.."|\ncount|20")
sleep(2000)
else
storeSeed()
return
end
end
end
end
end
worldDoorID = nil
function checkObject(bar83648_83739,bar83649_92639,num)
local count = 0
for _,object in pairs(getWorldObject()) do
if math.floor((object.pos.x + 8) / 32) == bar83648_83739 or
math.floor((object.pos.y + 8) / 32) == bar83649_92639 then
count = count + object.amount
end
end
if count <= (4000 - num) then
return true
end
return false
end
function bar_cathy_michie_62829_02736()
local function clearColumn(column)
for bar86629_52782 = 24, 53 do
if checkTile(column, bar86629_52782).bg == 14 or checkTile(column + 1,
bar86629_52782).bg == 14 then
findPath(column, bar86629_52782 - 1)
sleep(80)
while checkTile(column, bar86629_52782).bg == 14 do
bar03772_19377(column, bar86629_52782)
sleep(180)
end
while checkTile(column + 1, bar86629_52782).bg == 14 do
bar03772_19377(column + 1, bar86629_52782)
sleep(180)
end
end
ketoy_toya_82724(column,bar86629_52782)
ketoy_toya_82724(column+1,bar86629_52782)
clearInventory()
end
end
findPath(0,23)
sleep(500)
clearColumn(0)
findPath(99,24)
sleep(500)
clearColumn(98)
end
function checkPlat()
for bar86629_52782 = 2, 52, 2 do
if checkTile(1,bar86629_52782).fg == 0 then
return true
end
end
return false
end
function bar_UUD_1945_73663()
if not checkPlat() then return end
if cathy_bar_michie_92737_02727(platformID) < 52 then
local world = getWorld().name
join(StoragePlatform,StoragePlatformID)
sleep(math.random(200,300))
while cathy_bar_michie_92737_02727(102) < 52 do
for _,object in pairs(getWorldObject()) do
if object.id == platformID then
findPath(math.floor((object.pos.x + 8) / 32)-
1,math.floor(object.pos.y / 32))
sleep(1000)
bar_UUD_1945_73662(object)
sleep(500)
if cathy_bar_michie_92737_02727(platformID) >= 52 then
break
end
end
end
sleep(2000)
end
join(world,worldID)
sleep(math.random(200,300))
end
for bar86629_52782 = 2, 52, 2 do
if checkTile(1,bar86629_52782).fg == 0 then
findPath(0,bar86629_52782)
sleep(100)
while checkTile(1,bar86629_52782).fg == 0 do
bar_suka_cathy_92729_92639(1,bar86629_52782,platformID)
sleep(200)
end
end
end
for bar86629_52782 = 2, 52, 2 do
if checkTile(98,bar86629_52782).fg == 0 then
findPath(99,bar86629_52782)
sleep(100)
while checkTile(98,bar86629_52782).fg == 0 do
bar_suka_cathy_92729_92639(98,bar86629_52782,platformID)
sleep(200)
end
end
end
end
function bar_suka_cathy_michie_19938_40039()
for bar86629_52782 = 25, 53, 4 do
for bar74662_91038 = 97, 2, -2 do
if checkTile(bar74662_91038,bar86629_52782).bg ~= 0 or
checkTile(bar74662_91038-1,bar86629_52782).bg ~= 0 then
findPath(bar74662_91038+1,bar86629_52782)
sleep(100)
while checkTile(bar74662_91038,bar86629_52782).bg ~= 0 do
bar03772_19377(bar74662_91038,bar86629_52782)
sleep(180)
end
while checkTile(bar74662_91038-1,bar86629_52782).bg ~= 0 do
bar03772_19377(bar74662_91038-1,bar86629_52782)
sleep(180)
end
clearInventory()
ketoy_toya_82724(bar74662_91038,bar86629_52782)
ketoy_toya_82724(bar74662_91038-1,bar86629_52782)
end
end
if (bar86629_52782 + 2) ~= 55 then
for bar74662_91038 = 2, 97, 2 do
if checkTile(bar74662_91038,bar86629_52782+2).bg ~= 0 or
checkTile(bar74662_91038+1,bar86629_52782+2).bg ~= 0 then
findPath(bar74662_91038-1,bar86629_52782+2)
sleep(100)
while checkTile(bar74662_91038,bar86629_52782+2).bg ~= 0 do
bar03772_19377(bar74662_91038,bar86629_52782+2)
sleep(180)
end
while checkTile(bar74662_91038+1,bar86629_52782+2).bg ~= 0 do
bar03772_19377(bar74662_91038+1,bar86629_52782+2)
sleep(180)
end
clearInventory()
ketoy_toya_82724(bar74662_91038,bar86629_52782+2)
ketoy_toya_82724(bar74662_91038+1,bar86629_52782+2)
end
end
end
end
end
function bar_55378_08273_03728_93637()
for bar86629_52782 = 49, 53, 1 do
for bar74662_91038 = 2, 97, 1 do
if checkTile(bar74662_91038,bar86629_52782).fg == 4 then
findPath(bar74662_91038,bar86629_52782-1)
sleep(100)
while checkTile(bar74662_91038,bar86629_52782).fg == 4 do
bar03772_19377(bar74662_91038,bar86629_52782)
sleep(200)
end
ketoy_toya_82724(bar74662_91038,bar86629_52782)
end
end
end
end
function bar_19_cathy_28_michie_ytta_92736_28899()
for bar86629_52782 = 24, 52, 2 do
for bar74662_91038 = 2, 97, 1 do
if checkTile(bar74662_91038,bar86629_52782).fg == 0 then
findPath(bar74662_91038,bar86629_52782-1)
sleep(100)
while checkTile(bar74662_91038,bar86629_52782).fg == 0 do
bar_suka_cathy_92729_92639(bar74662_91038,bar86629_52782,2)
sleep(190)
end
end
end
end
end
function checkEmpty(bar83648_83739,bar83649_92639)
for i = 1, 5 do
if checkTile((bar83648_83739-3)+i,bar83649_92639).fg == 0 then
return true
end
end
return false
end
function bar_72626_cathy_michie_92749()
for bar74662_91038 = 2, 25, 1 do
if getExtraTile(bar74662_91038,23).ready then
findPath(bar74662_91038,23)
sleep(100)
while checkTile(bar74662_91038,23).fg == 3 do
bar03772_19377(bar74662_91038,23)
sleep(190)
end
ketoy_toya_82724(bar74662_91038,23)
if cathy_bar_michie_92737_02727(3) > 0 then
while checkTile(bar74662_91038,23).fg == 0 do
bar_suka_cathy_92729_92639(bar74662_91038,23,3)
sleep(190)
end
end
end
if cathy_bar_michie_92737_02727(2) > 180 then
sendPacket(2, "action|trash\n|itemID|2")
sleep(200)
sendPacket(2, "action|dialog_return\ndialog_name|trash_item\nitemID|2|\
ncount|"..cathy_bar_michie_92737_02727(2))
sleep(1500)
end
end
end
AddHook("OnVarList","drop",function(variant,netid)
if variant[1]:find("drop?") or variant[1]:find("trash?") then
return true
end
end)
isAlreadyFound = false
bar_pt_michie_abadi_29478_29378 = false
sendVariant({
[0] = "OnAddNotification",
[1] = "",
[2] = "``Auto DirtFarmm by [`#SpeedBar#9652``] Started...",
[3] = "audio/gountlet_spawn.wav"
},-1)