Você configura o uniqueid na tag.
local config = {
itemid = xxx, --ID da MW.
remove_time = 60, --Tempo em segundos para as MW serem removidas.
positions = {
{x = x, y = y, z = z}, --Posições onde as MW serão criadas.
{x = x, y = y, z = z},
{x = x, y = y, z = z},
--etc
}
}
function onStepIn(cid)
if not isPlayer(cid) then return true end
for i = 1, #config.positions do
local item = getTileItemById(config.positions[i], config.itemid).uid
if item == 0 then
doCreateItem(config.itemid, 1, config.positions[i])
addEvent(function()
doRemoveItem(getTileItemById(config.positions[i], config.itemid).uid)
end, config.remove_time * 1000)
end
end
return true
end