• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Script inundate soulwar

Azerty

Active Member
Joined
Apr 15, 2022
Messages
335
Solutions
4
Reaction score
36
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
 
Back
Top