Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Sandbox/Soreness: Difference between revisions

From Growtopia Wiki
Sorenesss (talk | contribs)
mNo edit summary
Sorenesss (talk | contribs)
mNo edit summary
Line 2: Line 2:


function p.ListRaritys()
function p.ListRaritys()
local s = {}
local c = {}
--[[local s = {}
for i=363, 364, 1
for i=363, 364, 1
do
do
local copy = {}
local copy = {}--]]
copy = table.unpack("[".."[Category:Rarity "..i.."]]")  
--copy = table.unpack("[".."[Category:Rarity "..i.."]]")  
if not copy == nil then
--[[if not copy == nil then
table.insert(s,"'''Rarity "..i..":'''<br>")
table.insert(s,"'''Rarity "..i..":'''<br>")
--
--
Line 17: Line 18:
end
end
end
end
return table.concat(s);
return table.concat(s);--]]
return table.concat(table.unpack(c, "[".."[Category:Rarity ".."363".."]]"))
end
end


return p
return p

Revision as of 11:37, 27 April 2022

Documentation for this module may be created at Module:Sandbox/Soreness/doc

local p = {}

function p.ListRaritys()
	local c = {}
	--[[local s = {}
	for i=363, 364, 1
	do
		local copy = {}--]]
		--copy = table.unpack("[".."[Category:Rarity "..i.."]]") 
		--[[if not copy == nil then
			table.insert(s,"'''Rarity "..i..":'''<br>")
			--
			while not next(copy) == nil
			do
				table.insert(s, next(copy))
			end
			--
		end
	end
	return table.concat(s);--]]
	return table.concat(table.unpack(c, "[".."[Category:Rarity ".."363".."]]"))
end

return p