Kejahatan Kominfo

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 3

blockid = 4570 -- set blockid

hitcounts = 3 -- set the hitcount


delay = 300 -- delay plant , harvest
delaybreak = 100 -- delay pnb
trashslot1 = 5028 -- essance
trashslot2 = 5038 -- block

seedid = 4570 + 1
WebHookURL =
"https://discord.com/api/webhooks/1053661093840564244/WzMB0l7zwxAt13XxuMf1WHvVx76m6
seDKP-NXMtY_JP_5txxOxFbwtsg6eMXkTLcvjQ2" -- URL WEBHOOK HERE
WebhookAva = "" -- Webhook avatar url HERE
WebHookName = "GENTA HAX" -- Webhook Name HERE
-- DROP
function drop()
ToggleCheat("AUTO_COLLECT",false)
SendPacket(2,"action|drop\n|itemID|"..seedid)
end
function DoWebHook()
webh = {}
webh.url = WebHookURL
webh.avatar = WebhookAva
webh.name = WebHookName
webh.title = GetLocal().name:gsub("`.",'').." Rotasi info"
webh.content = "Block: "..GetItemByID(blockid).Name.."\\nSeed:
"..GetItemByID(seedid).Name.."\\nDelay: "..delay.."\\nBreak Delay:
"..delaybreak.."\\nHitCount: "..hitcounts..""
WebHook(webh)
end
-- INVENTORY
function inv(itemid)
for _, item in pairs(GetInventory()) do
if item.id == itemid then
return item.amount
end
end
return 0
end

-- TRASH ITEM
function trash(trashing)
SendPacket(2,"action|trash\n|itemID|"..trashing.."")
SendPacket(2,"action|dialog_return\ndialog_name|trash_item\
nitemID|"..trashing.."|\ncount|180")
end

-- PLANT PKT
function plants(x,y)
pkt = {}
pkt.px = x;
pkt.py = y;
pkt.posX = x*32
pkt.posY = y*32
pkt.type = 3;
pkt.value = seedid;
SendPacketRaw (1, pkt);
end
-- PLACE PKT
function place(x,y,itemID)
pkt = {}
pkt.posX = GetLocal().posX
pkt.posY = GetLocal().posY
pkt.px = x;
pkt.py = y;
pkt.type = 3
pkt.value = itemID;
SendPacketRaw(1, pkt)
sleep(150)
end

-- PUNCH PKT
function punchs(x,y)
pkt = {}
pkt.posX = GetLocal().posX
pkt.posY = GetLocal().posY
pkt.px = x;
pkt.py = y;
pkt.type = 3;
pkt.value = 18
SendPacketRaw(1, pkt)
sleep(220)
end

-- PNB
function pnb()
sleep(50)
ToggleCheat("AUTO_COLLECT",true)
while inv(blockid) > 10 do
place(math.floor(GetLocal().posX/32-1), math.floor(GetLocal().posY/32),blockid)
for i = 1, hitcounts do
punchs(math.floor(GetLocal().posX/32-1), math.floor(GetLocal().posY/32))
end
end
end

-- PUNCH PKT
function punch(x, y)
packet = {}
packet.px = math.floor(GetLocal().posX / 32) + x
packet.py = math.floor(GetLocal().posY / 32) + y
packet.type = 3
packet.value = 18
packet.posX = GetLocal().posX
packet.posY = GetLocal().posY
SendPacketRaw(1, packet)
end

-- HARVEST
function harvest(itemid)
for _, tile in pairs(GetTile()) do
if(tile.fg == itemid) and (tile.ready == 1.0) and inv(blockid) <= 150 then
sleep(delay)
FindPath(tile.x,tile.y, 50)
sleep(delay)
ToggleCheat("AUTO_COLLECT",true)
punchs(math.floor(GetLocal().posX/32),math.floor(GetLocal().posY/32))
end
end
end

-- PLANT
function plant()
for _, tile in pairs (GetTile()) do
if tile.fg == 0 and GetTile(tile.x, tile.y + 1).fg ~= 0 and
CheckTile(tile.x, tile.y + 1).fg % 2 == 0 then
if inv(seedid) > 0 then
sleep(delay)
FindPath(tile.x, tile.y, 50)
sleep(delay)
plants(math.floor(GetLocal().posX/32),
math.floor(GetLocal().posY/32))
end
end
end
end

function main()
if inv(trashslot1) >= 180 then
trash(trashslot1)
elseif inv(trashslot2) >= 180 then
trash(trashslot2)
elseif inv(seedid) >= 150 then
sleep(300)
FindPath(1,1, 50)
sleep(300)
drop()
elseif inv(blockid) > 20 then
pnb()
plant()
elseif inv(blockid) <= 20 then
harvest(seedid)
end
end

function AvoidError()
if pcall(function()
main()
end) == false then
sleep(100)
AvoidError()
end
sleep(100)
AvoidError()
end

DoWebHook()
Log("Running!")
AvoidError()

You might also like