I'm trying to create soulwar's inundate script, does anyone know how to remove the inundate map? The lever is for reference only.
Lua:
local positions = {
Position(33862, 30999, 8)
}
function onThink(interval, lastExecution)
local item
for i = 1, #positions do
item = Tile(positions[i]):getThing(1)
if item and isInArray({1945, 1946}, item.itemid) then
item:transform(item.itemid == 1945 and 1946 or 1945)
if item.itemid == 1946 then
Game.loadMap('data/world/inundate/inundate.otbm')
end
end
end
return true
end