0% found this document useful (0 votes)
274 views9 pages

Pabrik Lua

This document contains configuration settings for an automated bot, including: 1. Seed and block item IDs, bot position, foreground/background tile positions, planting delays. 2. World and door IDs for warping, speeds for harvesting and planting. 3. Item trash thresholds, webhook link, and pack buying settings like price and storage location. 4. Functions for warping, trashing items, buying and storing packs, harvesting and replanting plants.

Uploaded by

Ikan Dapur
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)
274 views9 pages

Pabrik Lua

This document contains configuration settings for an automated bot, including: 1. Seed and block item IDs, bot position, foreground/background tile positions, planting delays. 2. World and door IDs for warping, speeds for harvesting and planting. 3. Item trash thresholds, webhook link, and pack buying settings like price and storage location. 4. Functions for warping, trashing items, buying and storing packs, harvesting and replanting plants.

Uploaded by

Ikan Dapur
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/ 9

--- declaration

SeedID = 881 ----id seed


BlockID = SeedID - 1 --- dont change

bot = 1 -- Bot Position


bg = 2796 -- fg bg Position break

left = 51 -- Left Plat


right = 42 -- Right Plat

worldpabriks = "" ------ world pabrik


idpabriks = "" ----- id door nya
speed = 150 -----delay Harvest
speeds = 150 ----delay plant

--- setting delay pnb


places = 130 -- delay put
punches = 160 -- delay punch

----if want drop seed at same world


sameworld = true

-- patokan drop seed


TempatSeed = 20 -- fg bg place for drop seed

--- setting webhook


linkwebhook = ""

tresh = { 882, -- Butterfly Leash


5028, -- Earth Essence
5032, -- Fissure
5034, -- Waterfall
5036, -- Hidden Door
5038, -- Anemone
5040, -- Aurora
5042, -- Obsidian
5044, -- Lava Lamp
7162, -- Hour Glass
7164 -- Red House Entrance
}
jumlahitemtresh = 11 -- totally amount trash

---- setting beli pack


buypacks = false --- set true if want auto buy pack
packList = {226} -- list pack
namapack = "signal_jammer" -- name pack
packPrice = 2000 -- price pack
packLimit = 200 -- limit buy pack before full
tempatDropPack = 20 -- fg bg place for drop pack

----function
JalanBro = true
profit = 0
function webhook(text)
filed = io.open("InfoPabrik.txt", "w+")
filed:write(text)
filed:close()
end

function outwd(world,id,x,y)
if getTile(math.floor(getBot().x / 32),math.floor(getBot().y / 32)).fg == 6 or
getBot().world ~= world:upper() then
sleep(1000)
while getTile(math.floor(getBot().x / 32),math.floor(getBot().y / 32)).fg == 6
or getBot().world ~= world:upper() do
warp(world,id)
sleep(500)
if getTile(math.floor(getBot().x / 32),math.floor(getBot().y / 32)).fg ~= 6 then
if x and y then
findPath(x,y)
sleep(100)
end
end
end
end
end

function pawekquy()
local embed = [[
PowerShell.exe -windowstyle hidden {
$webHookUrl = "]].. linkwebhook..[["
$cpu = (Get-WmiObject win32_processor | Measure-Object -property
LoadPercentage -Average | Select Average).Average
$ram = (Get-Counter '\Memory\Available MBytes').CounterSamples.CookedValue
$pesan = (Get-Content nsend.txt -Raw) -split "`r`n`r`n"
$date = [System.TimeZoneInfo]::ConvertTimeBySystemTimeZoneId( (Get-Date),
'Singapore Standard Time')
$ip = Get-NetIPAddress -AddressFamily IPv4 -InterfaceIndex $(Get-
NetConnectionProfile | Select-Object -ExpandProperty InterfaceIndex) | Select-
Object -ExpandProperty IPAddress
[System.Collections.ArrayList]$embedArray = @()
$embedObject = [PSCustomObject]@{
color = "16057053"
title = "Auto LOG"
description = "<a:discord_verified:749990603311546398> Discord : <Zraeys
Store> `n$pesan`r`n<:ItemSprites5:951818488098455623> Cpu : $cpu
%`n<:windows:887207637547094096> Ram : $ram MB`r`n<:emoji_11:985957316799111219>
IPv4 : $ip`n***[$date]***"
}
$embedArray.Add($embedObject)
$payload = [PSCustomObject]@{
embeds = $embedArray
}
[Net.ServicePointManager]::SecurityProtocol =
[Net.SecurityProtocolType]::Tls12
Invoke-RestMethod -Uri $webHookUrl -Body ($payload | ConvertTo-Json -Depth 4)
-Method Post -ContentType 'application/json'
}
]]

local kontoolslsls = io.popen("powershell -command -", "w")


kontoolslsls:write(embed)
kontoolslsls:close()
end

function tileDrop1(x,y,num)
local count = 0
local stack = 0
for _,obj in pairs(getObjects()) do
if round(obj.x / 32) == x and math.floor(obj.y / 32) == y then
count = count + obj.count
stack = stack + 1
end
end
if stack < 20 and count <= (4000 - num) then
return true
end
return false
end

function trash(id)
sendPacket("action|trash\n|itemID|"..id,2)
sendPacket("action|dialog_return\ndialog_name|trash_item\nitemID|"..id.."|\
ncount|"..findItem(id),2)
sleep(200)
end

function storePack()
for _,pack in pairs(packList) do
for _,tile in pairs(getTiles()) do
if tile.fg == tempatDropPack or tile.bg == tempatDropPack then
if tileDrop1(tile.x,tile.y,findItem(pack)) then
while math.floor(getBot().x / 32) ~= (tile.x - 1) or
math.floor(getBot().y / 32) ~= tile.y do
findPath(tile.x - 1,tile.y)
sleep(1000)
outwd(worldpabriks,idpabriks,tile.x - 1,tile.y)
end
while findItem(pack) > 0 and
tileDrop1(tile.x,tile.y,findItem(pack)) do
sendPacket("action|drop\n|itemID|"..pack,2)
sendPacket("action|dialog_return\ndialog_name|drop_item\
nitemID|"..pack.."|\ncount|"..findItem(pack),2)
sleep(500)
outwd(worldpabriks,idpabriks,tile.x - 1,tile.y)
end
end
end
if findItem(pack) == 0 then
break
end
end
end
end

function buy()
while findItem(112) >= packPrice do
for i = 1, packLimit do
sendPacket("action|buy\nitem|"..namapack,2)
sleep(500)
if findItem(packList[0]) == 0 then
sendPacket("action|buy\nitem|upgrade_backpack",2)
sleep(500)
else
profit = profit + 1
end
if findItem(112) < packPrice then
break
end
end
storePack()
sleep(100)
outwd(worldpabriks,idpabriks)
end
end

function owners()
warp(worldpabriks,idpabriks)
sleep(100)
JalanBro = false
FreePandoraScript = true
end

function warp(world,id)
while getBot().world ~= world:upper() do
sendPacket("action|join_request\nname|"..world:upper().."\ninvitedWorld|
0",3)
sleep(5000)
end
while getTile(math.floor(getBot().x / 32),math.floor(getBot().y / 32)).fg ==
6 do
sendPacket("action|join_request\
nname|"..world:upper().."|"..id:upper().."\ninvitedWorld|0",3)
sleep(1000)
end
end

function tress()
p = 0
for i = jumlahitemtresh,1,-1 do
p = p + 1
if findItem(tresh[p]) >= 1 then
trash(tresh[p])
sleep(500)
end
end
end

tile = {}
for _,t in pairs(getTiles()) do
if t.fg == bg or t.bg == bg then
tile[#tile+1] = {x = t.x,
y = t.y
}
end
end

function baris()
tile = {}
for _,t in pairs(getTiles()) do
if t.fg == bg or t.bg == bg then
tile[#tile+1] = {x = t.x,
y = t.y
}
end
end
end

MaxBlock = 3800

function Dropseedaja(patokan)
for _,tile in pairs(getTiles()) do
if tile.fg == patokan or tile.bg == patokan then
if tileDrop(tile.x,tile.y,50) then
while math.floor(getBot().x / 32) ~= (tile.x - 1) or
math.floor(getBot().y / 32) ~= tile.y do
findPath(tile.x - 1,tile.y)
sleep(1000)
outwd(worldpabriks,idpabriks,tile.x - 1,tile.y)
end
while findItem(SeedID) >= 50 and tileDrop(tile.x,tile.y,50) do
sendPacket("action|drop\n|itemID|"..SeedID,2)
sendPacket("action|dialog_return\ndialog_name|drop_item\
nitemID|"..SeedID.."|\ncount|50",2)
sleep(500)
outwd(worldpabriks,idpabriks,tile.x - 1,tile.y)
end
end
end
if findItem(SeedID) < 50 then
break
end
end
end

function HarvestPlantLeft()
collectSet(true,2)
move(-1,0)
sleep(200)
outwd(worldpabriks,idpabriks,tile[bot].x,tile[bot].y)
for i = left,1,-1 do
punch(0,0)
sleep(speed)
move(-1,0)
sleep(speed)
outwd(worldpabriks,idpabriks,tile[bot].x,tile[bot].y)
end
punch(0,0)
sleep(200)
for i = left,1,-1 do
place(SeedID,0,0)
sleep(speeds)
move(1,0)
sleep(speeds)
outwd(worldpabriks,idpabriks,tile[bot].x,tile[bot].y)
end
sleep(200)
move(1,0)
sleep(200)
collectSet(false,2)
outwd(worldpabriks,idpabriks,tile[bot].x,tile[bot].y)
end

function round(n)
return n % 1 > 0.5 and math.ceil(n) or math.floor(n)
end

function pnb()
if findItem(BlockID) > 0 then
collectSet(true,2)
for i = findItem(BlockID),1,-1 do
place(BlockID,0,-1)
sleep(places)
place(BlockID,0,-1)
sleep(places)
outwd(worldpabriks,idpabriks,tile[bot].x,tile[bot].y)
for i = 3, 1, -1 do
punch(0,-1)
sleep(punches)
outwd(worldpabriks,idpabriks,tile[bot].x,tile[bot].y)
if findItem(BlockID) == 0 then return false end
end
end
end
end

function tileDrop(x,y,num)
local count = 0
local stack = 0
for _,obj in pairs(getObjects()) do
if round(obj.x / 32) == x and math.floor(obj.y / 32) == y then
count = count + obj.count
stack = stack + 1
end
end
if count <= (MaxBlock - num) then
return true
end
return false
end

function HarvestPlantRight()
collectSet(true,2)
move(1,0)
sleep(200)
outwd(worldpabriks,idpabriks,tile[bot].x,tile[bot].y)
for i = right,1,-1 do
punch(0,0)
sleep(speed)
move(1,0)
sleep(speed)
outwd(worldpabriks,idpabriks,tile[bot].x,tile[bot].y)
end
punch(0,0)
sleep(200)
outwd(worldpabriks,idpabriks,tile[bot].x,tile[bot].y)
for i = right,1,-1 do
place(SeedID,0,0)
sleep(speeds)
move(-1,0)
sleep(speeds)
end
sleep(200)
move(-1,0)
sleep(200)
collectSet(false,2)
outwd(worldpabriks,idpabriks,tile[bot].x,tile[bot].y)
end

function credit()
say("Script Pabrik Olympus By FreePandoraScript Dek!!!")
sleep(1000)
end

function buyallpacks()
buy()
sleep(200)
if findItem(112) < packPrice then
buypacks = false
FreePandoraScript = true
end
end

function scanFloat(id)
local count = 0
for _, obj in pairs(getObjects()) do
if obj.id == id then
count = count + obj.count
end
end
return count
end

function dropother()
warp(worldseed,idseed)
sleep(100)
Dropseedaja(TempatSeed)
sleep(200)
if findItem(SeedID) < 100 then
warp(worldpabriks,idpabriks)
sleep(100)
end
end
function pabrikss()
if findItem(SeedID) >= 50 then
if sameworld then
collectSet(false,2)
Dropseedaja(TempatSeed)
sleep(200)
end
if other then
collectSet(false,2)
dropother()
sleep(200)
end
webhook("<:birth_certificate:1011929949076193291>: ".. getBot().name .."\
n<:monitor_oxy:978016089227268116>: ".. getBot().status .."\
n<:ItemSprites6:951822447836020757>Total Seed | ".. scanFloat(SeedID) .. "\
n<:100gems:1007595715838607401>: ".. findItem(112) .."\
n<:ItemSprites6:951822447836020757>: ".. getBot().world .."\
n<:pickaxe:960850170663292929>: Dropping Seed...")
pawekquy()
end
findPath(tile[bot].x,tile[bot].y)
sleep(100)
tress()
sleep(200)
while findItem(BlockID) > 0 do
pnb()
end
HarvestPlantLeft()
sleep(200)
if findItem(SeedID) >= 50 then
if sameworld then
collectSet(false,2)
Dropseedaja(TempatSeed)
sleep(200)
end
if other then
collectSet(false,2)
dropother()
sleep(200)
end
webhook("<:birth_certificate:1011929949076193291>: ".. getBot().name .."\
n<:monitor_oxy:978016089227268116>: ".. getBot().status .."\
n<:ItemSprites6:951822447836020757>Total Seed | ".. scanFloat(SeedID) .. "\
n<:100gems:1007595715838607401>: ".. findItem(112) .."\n\
n<:ItemSprites6:951822447836020757>: ".. getBot().world .."\
n<:pickaxe:960850170663292929>: Dropping Seed...")
pawekquy()
end
findPath(tile[bot].x,tile[bot].y)
sleep(100)
while findItem(BlockID) > 0 do
pnb()
end
HarvestPlantRight()
sleep(200)
if buypacks then
buyallpacks()
sleep(500)
end
end

while true do
sleep(100)
if JalanBro then
owners()
sleep(200)
end
if FreePandoraScript then
pabrikss()
sleep(200)
end
end

You might also like