And take advantage of this function:
But it does not work correctly.
Every minute I call a function claims and immediately spawn new items.
Result: Things are removed, and new ones are not spawn
Help me
Scripts
Remove all items on ground
Remove all items on ground
1

Yates: Thanks, I'll wait.
HESY: I think if you put spawnitems in a timer function (try 1, 15, 20, 25, 50ms delay) it might fix the issue.
VADemon: With the delay was a good idea, but unfortunately does not work.
HESY has written
HESY has writtenfunction clearitems()
	for _, i in pairs(item(0,"table")) do -- LOL I forgot
		parse("removeitem "..i)
	end
end
HESY has written
Cure Pikachu has writtenfunction clearitems()
	for _, i in item(0,"table") do
		parse("removeitem "..i)
	end
end
:function clearitems()
	local itemlist=item(0,"table")
		for _,i in pairs(itemlist) do
parse ("removeitem "..i)
	end
end
Yates has written
HESY: it should work exactly the same, without explicitly defining a local ...=table. Whatever.
VADemon: in pairs
HESY has written
:
1
