You are on page 1of 4

Setting = {

-- Script CopyDesign made by @ExLibur on Telegram and @altknight on Discord


-- note : if i see someone reselling this script, next update i will upload it
with enc
-- note : jika aku melihat seseorang menjual ulang script ini, next update aku
akan upload dengan enc

World = {
Type = "normal",
-- int = string;
-- Enter your type world to be copied and paste
-- Masukan tipe worldmu yang ingin di copy dan paste

Copy = "bglpixel",
-- int = string;
-- Enter the name world that you want to copied
-- Masukan nama world yang ingin di copy

Paste = "exclbgl"
-- int = string;
-- Enter the name world to be pasted
-- Masukan nama world yang ingin di paste
},
}
inv = function(a)
for _, inv in pairs(GetInventory()) do
if inv.id == a then
return inv.amount
end
end
return 0
end
raw = function(a, b, c, d)
SendPacketRaw(false, {type = a, value = b, px = c, py = d, x = c * 32, y = d *
32})
Sleep(80)
end
path = function(x, y)
plx, ply = GetLocal().posX // 32, GetLocal().posY // 32
EditToggle("ModFly", true)
while plx ~= x or ply ~= y do
if plx > x then
plx = plx - 6
if plx <= x then
plx = x
end
elseif plx < x then
plx = plx + 6
if plx >= x then
plx = x
end
end
if ply > y then
ply = ply - 6
if ply <= y then
ply = y
end
elseif ply < y then
ply = ply + 6
if ply >= y then
ply = y
end
end
FindPath(plx, ply)
Sleep(120)
end
Sleep(50)
end
warp = function(a)
SendVariant({v0 = "OnTextOverlay", v1 = "[`cExCL`w] Warping to " .. a })
SendPacket(3, "action|join_request|\nname|" .. a .. "\nInvitedWorld|0")
Sleep(5 * 10^3)
end
copy = function()
gb = {}
for b = 0, y do
for a = 0, x do
gt = GetTile(a, b)
if (gt.fg ~= 0) then
id = gt.fg
table.insert(gb, {z = id, x = a, y = b})
elseif (gt.bg ~= 0) then
id = gt.bg
table.insert(gb, {z = id, x = a, y = b})
end
end
end
flb, lb = {}, {}
table.insert(lb, "add_label_with_icon|big|`wListed Block|left|1796|\
nadd_spacer|small|\nadd_smalltext|`9Note : Click the icon to unlist a block|left|\
nadd_spacer|small|")
for _, v in pairs(gb) do
if not flb[v.z] then
table.insert(lb, "\ntext_scaling_string|exclcopydesign\nadd_checkicon|"
.. v.z .. "|`wOn Copy List|staticframe|" .. v.z .. "||1|")
flb[v.z] = true
z = z + 1
if z % 5 == 0 then
table.insert(lb, "add_button_with_icon||END_LIST||0||")
end
end
end
if z % 2 == 1 then
table.insert(lb, "add_button_with_icon||END_LIST||0||")
end
table.insert(lb, "add_spacer|small|\nadd_smalltext|`9Note : If theres any error
occured dm @ExLibur|left|\nadd_spacer|small|\nend_dialog|ExCaLibur| Cancel | START
|")
SendVariant({ v0 = "OnDialogRequest", v1 = table.concat(lb, "\n")})
end
filter = function(a)
local fulb = {}
for _, v in pairs(gb) do
local ex = false
for _, id in ipairs(a) do
if tostring(v.z) == id then
ex = true
break
end
end
if not ex then
table.insert(fulb, v)
end
end
return fulb
end
AddHook(function(type, p)
if p:find("\n(%d+)|0") then
ulb = {}
for id in p:gmatch("\n(%d+)|0") do
table.insert(ulb, id)
end
sc = 1
return true
end
return false
end, "OnSendPacket")
paste = function()
c = 0
for _, a in pairs(gb) do
if inv(a.z) > 0 then
gt = GetTile(a.x, a.y)
if (gt.fg ~= a.z and gt.bg ~= a.z) then
c = c + 1
LogToConsole("`w[`cExCL`w] Placing `9" .. a.z .. " `wat x : `9" ..
a.x .. " `wy : `9" .. a.y)
path(a.x, a.y + 1)
raw(3, a.z, a.x, a.y)
Sleep(200)
end
else
LogToConsole("`w[`cExCL`w] /Finding " .. a.z)
SendPacket(2, "action|dialog_return\ndialog_name|item_search\n" ..
a.z .. "|1")
Sleep(2000)
for _, b in pairs(GetObjectList()) do
if b.itemid == a.z then
LogToConsole("`w[`cExCL`w] Collecting " .. a.z)
path(b.posX // 32, b.posY // 32)
raw(11, 0, b.id, b.posX, b.posY)
Sleep(1000)
end
end
end
if c == #gb then
error("`w[`cExCL`w] Finish")
break
end
end
end
EditToggle("ModFly", true)
sc, scp = 0, 1
z, x, y = 0, (Setting.World.Type == "island" and 199 or 99), (Setting.World.Type ==
"island" and 199 or 54)
while true do
Sleep(200)
if sc == 0 then
if GetWorldName() ~= Setting.World.Copy:upper() then
warp(Setting.World.Copy:upper())
scp = 1
else
if scp == 1 then
scp = 0
copy()
end
end
else
gb = filter(ulb)
if GetWorldName() ~= Setting.World.Paste:upper() then
warp(Setting.World.Paste:upper())
Sleep(200)
else
paste()
end
end
end

You might also like