```worldList = [[
WORLD|IDDOOR
WORLD|IDDOOR
WORLD|IDDOOR
]]
customId = true
customLabel = true
doorPrivate = true
doorLabel = "SP Store"
doorId = "PASS ID"
idseed = { 4585 }
folderName = "C:\\Users\\Administrator\\Desktop"
wlink = ""
bot = getBot()
function Log(text)
webhook = Webhook.new(wlink)
webhook.username = "SP Store"
webhook.embed1.use = true
webhook.avatar_url =
"https://cdn.discordapp.com/attachments/1249645625092476948/1265446906738376764/
Sz3vaNfQuVIpuAxoOGPO4oncv1gIqCd05eXlFhWsy8SKlueLgFsL-_oKgmkAxkNgV2Jv.png?
ex=66a18ac5&is=66a03945&hm=64e0fe1eede77baf54d93d3b0e2247a8b4622a8ed097e9f02be92db6
a252d991&"
webhook.embed1.title = ":arrow4: **SPSTORE Free Auto Change Door ID Script**\
nhttps://discord.gg/pJJB88TcRQ"
local currentTime = os.time()
description = "\n:realtime: **Processed on:** <t:" .. currentTime .. ":R>\n\n" ..
text
webhook.embed1.description = description
webhook:send()
end
function checkItems(id)
local count = 0
for _, tile in pairs(getTiles()) do
if tile.fg == id and hasAccess(tile.x, tile.y) > 0 then
count = count + 1
end
end
return count
end
function check_seed()
seed_ID = "No Seed"
seed_count = 0
for _, id in pairs(idseed) do
itemCount = checkItems(id)
if itemCount > 200 then
seed_ID = id
seed_count = itemCount
end
end
end
function split(inputstr, sep)
if sep == nil then
sep = "%s"
end
local t = {}
for str in string.gmatch(inputstr, "([^" .. sep .. "]+)") do
table.insert(t, str)
end
return t
end
worlds = split(worldList, "\n")
function editDoor(x,y,doorid,label,private)
sleep(2000)
getBot():wrench(math.floor(x),math.floor(y))
sleep(500)
getBot():sendPacket(2,"action|dialog_return\ndialog_name|door_edit\
ntilex|"..math.floor(x).."|\ntiley|"..math.floor(y).."|\ndoor_name|"..label.."\
ndoor_target|\ndoor_id|"..doorid.."\ncheckbox_locked|"..private)
sleep(200)
end
function randomString(length)
local charset = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
local randomString = ""
for i = 1, length do
local randomIndex = math.random(1, #charset)
randomString = randomString .. charset:sub(randomIndex, randomIndex)
end
return randomString
end
function checkDoor()
for _, tile in pairs(getTiles()) do
if tile.fg == 6 then
if bot.x == tile.x and bot.y == tile.y then
return false
end
end
end
return true
end
function Warp(world,id)
::warp::
id = id and id or ""
bot:warp(world, id)
sleep(4000)
if not bot:isInWorld(world:match("([^|]+)"):upper()) then sleep(7000) end
if not bot:isInWorld(world:match("([^|]+)"):upper()) then goto warp end
end
for _, world in pairs(worlds) do
doorLabel = customLabel and doorLabel or ""
doorId = customId and doorId or randomString(10)
locked = doorPrivate and "1" or ""
Warp(world)
check_seed()
if not checkDoor() then
Log(getWorld().name.."|".. doorId .. " **- WRONG ID**")
append(folderName.."/"..bot.name .. ".txt", world.."--Can't be changed".."\
n")
else
editDoor(bot.x,bot.y,doorId,doorLabel,locked)
Log(getWorld().name.."|"..doorId.."|".. seed_ID .. "|" .. seed_count)
append(folderName.."/"..bot.name .. ".txt",
getWorld().name.."|"..doorId.."\n")
end
end```
tu sc id door kasihkan ke free sc