0% found this document useful (0 votes)
32 views

Findworldv 2

This script generates a random string of letters of a specified length and attempts to join a world with that name. It will continue trying random names until it finds an unlocked world matching one of the lock codes provided. The script logs information to the console and includes attribution and instructions not to modify or redistribute the script.

Uploaded by

Muhammad Farid
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views

Findworldv 2

This script generates a random string of letters of a specified length and attempts to join a world with that name. It will continue trying random names until it finds an unlocked world matching one of the lock codes provided. The script logs information to the console and includes attribution and instructions not to modify or redistribute the script.

Uploaded by

Muhammad Farid
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 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