helpme understand this script

wafuboe

Intermediate OT User
Joined
Dec 24, 2010
Messages
809
Reaction score
13
well im trying to configure warzone 4 5 6 to my map but i have problems with this one in particular
i really dont know what the part of clearing should the positions go

can anyone help me out describing what the positions do?

thank you!


Code:
local stalagmites = Tile(Position(236, 84, 11)):getItemById(386) 
                if stalagmites then
                    stalagmites:remove()
                    local teleport = Game.createItem(1387, 1, Position(236, 84, 11))
                    teleport:setActionId(57243)
                    addEvent(function()
                        if teleport then
                            teleport:remove(1)
                            Game.createItem(386, 1, Position(236, 84, 11))
                        end
                    end, 30*1000)
                    addEvent(clearForgotten, 30*60*1000, Position(33684, 32293, 15), Position(33724, 32314, 15), Position(33275, 32318, 15), GlobalStorage.DangerousDepths.Geodes.WarzoneVI)
                    startWarzoneVI()
                end
            end
        else
            player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "The crystal geode can't carry any more crystals.")
        end
    end

    return true
end
 
Last edited:

Encrypt

New Member
Joined
Jan 30, 2019
Messages
8
Reaction score
0
Here, location of stalagmites
Lua:
 stalagmites locais = Mosaico (Posição (236, 84, 11)): getItemById (386)
Here, location of teleport
Lua:
 local teleport = Game.createItem(1387, 1, Position(236, 84, 11))
Here, location of create item 386 in position 236, 84, 11
Lua:
 Game.createItem(386, 1, Position(236, 84, 11))
Here need more explanation:
Lua:
 addEvent(clearForgotten, 30*60*1000, Position(33684, 32293, 15), Position(33724, 32314, 15), Position(33275, 32318, 15), GlobalStorage.DangerousDepths.Geodes.WarzoneVI)
To clean :
Lua:
Position(33684, 32293, 15)
Lua:
Position(33724, 32314, 15))
Lua:
Position(33275, 32318, 15)
And you need see what is this:
Lua:
GlobalStorage.DangerousDepths.Geodes.WarzoneVI)
Post entire code.
 
Top