You are on page 1of 2

Letter = 5 -- how many letter to find

includeNum = true -- find with num / no


Lock = {
242, -- world lock
1796, -- diamond lock
7188 -- blue gem lock
}
delayS = 7 -- second

-- Do not resell!!
-- originall script by User404#5457
-- Don't Touch!!

Rchar = "abcdefghijklmnopqrstuvwxyz"
if includeNum then
Rchar = Rchar.."1"
end
LogToConsole("`0Script by -User404#5457")

RcharTable = {}
for Chara in Rchar:gmatch(".") do
table.insert(RcharTable, Chara)
end

function randomLetter()
LogToConsole("`0Script by -User404#5457")
Rchara = ""
for i = 1, Letter do
Rchara = Rchara..RcharTable[math.random(1, #RcharTable)]
end
return Rchara:upper()
end

function JoinWorld(worldJoin)
LogToConsole("`2Succes `0Generate "..Letter.." Letter World!!")
LogToConsole("`0Try to join world... `2"..worldJoin)
SendPacket(3, [[action|join_request
name|]]..worldJoin..[[

invitedWorld|0]])
end

function Locked()
for _, v in pairs(Lock) do
for _, tile in pairs(GetTile()) do
if tile.fg == v then
return true
end
end
end
return false
end

while true do
LogToConsole("`0Try to Find World!")
JoinWorld(randomLetter())
SleepS(delayS)
if not Locked() then
LogToConsole("`0AutoFind Off!")
error("\nScript by User404#5457")
end
SleepMS(500)
collectgarbage("collect")
end

You might also like