0% found this document useful (0 votes)
9 views3 pages

Auto Splice Fixeds

This document contains a script for splicing seeds in a game world. It includes functions for joining worlds, taking seeds, planting them, and checking if the splicing is complete. The script is customizable with variables for world names, door IDs, and seed IDs.

Uploaded by

Ale XD
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)
9 views3 pages

Auto Splice Fixeds

This document contains a script for splicing seeds in a game world. It includes functions for joining worlds, taking seeds, planting them, and checking if the splicing is complete. The script is customizable with variables for world names, door IDs, and seed IDs.

Uploaded by

Ale XD
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/ 3

World_Name = "Contoh" --# Ganti Dengan Nama World Yang Ingin Di Splice

World_Save = "Contoh" --# Ganti Dengan Nama World Tempat Seed Berada
Door_ID = "Contoh" --# Ganti Dengan ID Door Yang Ada Di World, "ID Door Harus Sama
Di Kedua World"

Seed_ID1 = 4585 --# Ganti Dengan ID Seed Pertama


Seed_ID2 = 5667 --# Ganti Dengan ID Seed Kedua

Delay_Plant = 400
Delay_Warp = 5000
Delay_Find_Path = 10000

function getAmount(id)
for _, x in pairs(getInventory()) do
if x.id == id then
return x.amount
end
end
return 0
end

function send(txt)
local var = {}
var[0] = "OnTextOverlay"
var[1] = txt
sendVariant(var)
end

function join(wn, di)


sleep(1000)
sendPacket(2, "action|join_request\nname|" .. wn)
sendPacket(3, "action|join_request\nname|" .. wn .. "|" .. di .. "\
ninvitedWorld|0")
end

function takeSeed(seedID)
for _, obj in pairs(getWorldObject()) do
if obj.id == seedID then
local targetX = math.floor(obj.pos.x / 32)
local targetY = math.floor(obj.pos.y / 32)
findPath(targetX, targetY)

local reached = false


while not reached do
local playerX = math.floor(getLocal().pos.x / 32)
local playerY = math.floor(getLocal().pos.y / 32)
if playerX == targetX and playerY == targetY then
reached = true
else
findPath(targetX, targetY)
sleep(1000)
end
end

sleep(Delay_Find_Path)
join(World_Name, Door_ID)
sleep(Delay_Warp)
plant(seedID, Delay_Plant)
end
end
end

function plant(id1, id2, delay)


for y = 1, 52 do
for x = 0, 98 do
if getAmount(id1) == 0 or getAmount(id2) == 0 then
join(World_Save, Door_ID)
sleep(Delay_Warp)
sleep(500)
elseif getAmount(id1) > 0 and checkTile(x, y).fg == 0 and checkTile(x,
y + 1).fg % 2 == 0 and checkTile(x, y + 1).fg ~= 0 then
findPath(x, y, 200)
sleep(delay)
sendPacketRaw(false, {value = id1, type = 3, x = getLocal().pos.x,
y = getLocal().pos.y, punchx = getLocal().pos.x / 32, punchy = getLocal().pos.y /
32})
sleep(delay)
sendPacketRaw(false, {value = id2, type = 3, x = getLocal().pos.x,
y = getLocal().pos.y, punchx = getLocal().pos.x / 32, punchy = getLocal().pos.y /
32})
sleep(delay)
end
end
end
end

function isSpliced()
for y = 1, 52 do
for x = 0, 98 do
if checkTile(x, y).fg == 0 and checkTile(x, y + 1).fg % 2 == 0 and
checkTile(x, y + 1).fg ~= 0 then
return false
end
end
end
return true
end

function Main()
send("This Script made by Beelzebub or known as Mrhuwy")
sleep(2000)

send("`9Warping to `2" .. World_Name)


sleep(500)
join(World_Name, Door_ID)
sleep(Delay_Warp)
send("`9Starting to Splice: `#" .. getItemByID(Seed_ID1).name .. " and " ..
getItemByID(Seed_ID2).name)
sleep(500)

while not isSpliced() do


plant(Seed_ID1, Seed_ID2, Delay_Plant)
sleep(1000)
end

send("`2All tiles spliced successfully!")


end
Main()

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy