• 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!

GlobalEvent Snowball War Event (TFS 1.X)

Ciroc

Member
Joined
Apr 19, 2016
Messages
37
Reaction score
17
Location
Brazil
Good morning, Otland's friends!
I bring today a very fun and different event for your server that is the snowball event, the event consists of a battle of snowballs and the player that more kill wins.

Command:
!snowball atirar - Shoot the snowball straight to hit the target

Exemple:

Note: Sorry for the spelling errors , I am Brazilian and I am using the google translator. KKK
 

Attachments

  • snowball-war-tfs1.x.zip
    9.5 KB · Views: 386 · VirusTotal
i have this error
Code:
> Broadcasted message: "[Snowball Event]: Faltam 1 minuto(s) e 1 jogador(es) par
a o jogo comeþar.".
> Broadcasted message: "[Snowball Event]: O evento foi cancelado por conta de nÒ
o ter no minimo 2 jogadores.".
> Broadcasted message: "[Snowball Event]: O evento foi aberto, vß atÚ o templo p
ara participar.".
> Broadcasted message: "[Snowball Event]: Faltam 1 minuto(s) para o jogo comeþar
.".

Lua Script Error: [Main Interface]
in a timer event called from:
(Unknown scriptfile)
attempt to index a nil value
stack traceback:
        [C]: at 0x013f7489e0
        [C]: in function 'teleportTo'
        data/globalevents/scripts/SnowBall_Event.lua:12: in function <data/globa
levents/scripts/SnowBall_Event.lua:1>
 
If you are posting scripts here you should translate them to english.
globalevent
Lua:
function startGame(rounds)
    if rounds == 0 then
        if #CACHE_GAMEPLAYERS < SnowBall_Configurations.Event_MinPlayers then
            for _, players in ipairs(CACHE_GAMEPLAYERS) do
                Player(players):teleportTo(Player(players):getTown():getTemplePosition())
            end
            broadcastMessage("[Snowball Event]: Not enough players to start Last man Standing event! Minimum: ".. SnowBall_Configurations.Event_MinPlayers.." players.")
        else
            for _, players in ipairs(CACHE_GAMEPLAYERS) do
                Player(players):setStorageValue(10109, 0)
                Player(players):setStorageValue(10108, SnowBall_Configurations.Ammo_Configurations.Ammo_Start)
                Player(players):teleportTo(CACHE_GAMEAREAPOSITIONS[math.random(1, #CACHE_GAMEAREAPOSITIONS)])
            end
            broadcastMessage("[Snowball Event]: event portal closed and event started!.")
            addEvent(Event_endGame, SnowBall_Configurations.Event_Duration * 60 * 1000)
        end

        Item(getTileItemById(SnowBall_Configurations.Area_Configurations.Position_EventTeleport, 1387).uid):remove(1)
        Item(getTileItemById(SnowBall_Configurations.Area_Configurations.Position_ExitWaitRoom, 1387).uid):remove(1)
        return true
    end

    if #CACHE_GAMEPLAYERS < SnowBall_Configurations.Event_MinPlayers then
        broadcastMessage("[Snowball Event]: will be closed in ".. rounds .. " minutes and " .. SnowBall_Configurations.Event_MinPlayers - #CACHE_GAMEPLAYERS .." players for start.")
    else
        broadcastMessage("[Snowball Event]: was opened and will be closed in ".. rounds .. " minutes.")
    end
    return addEvent(startGame, 60 * 1000, rounds - 1)
end

function onTime(interval)
    if not SnowBall_Configurations.Event_Days[os.date("%w") + 1] then
        return true
    end

    CACHE_GAMEPLAYERS = {}

    local EventTeleport = Game.createItem(1387, 1, SnowBall_Configurations.Area_Configurations.Position_EventTeleport)
    EventTeleport:setActionId(10101)

    local ExitWaitRoom = Game.createItem(1387, 1, SnowBall_Configurations.Area_Configurations.Position_ExitWaitRoom)
    ExitWaitRoom:setActionId(10102)

    broadcastMessage("[Snowball Event]: was opened, entrance through Temple of Thais!")
    addEvent(startGame, 60 * 1000, SnowBall_Configurations.Event_WaitGame)
    return true
end
lib
[Lua] SnowBall_Configurations - Pastebin.com
 
Thank you so much, I had no time for that.

globalevent
Lua:
function startGame(rounds)
    if rounds == 0 then
        if #CACHE_GAMEPLAYERS < SnowBall_Configurations.Event_MinPlayers then
            for _, players in ipairs(CACHE_GAMEPLAYERS) do
                Player(players):teleportTo(Player(players):getTown():getTemplePosition())
            end
            broadcastMessage("[Snowball Event]: Not enough players to start Last man Standing event! Minimum: ".. SnowBall_Configurations.Event_MinPlayers.." players.")
        else
            for _, players in ipairs(CACHE_GAMEPLAYERS) do
                Player(players):setStorageValue(10109, 0)
                Player(players):setStorageValue(10108, SnowBall_Configurations.Ammo_Configurations.Ammo_Start)
                Player(players):teleportTo(CACHE_GAMEAREAPOSITIONS[math.random(1, #CACHE_GAMEAREAPOSITIONS)])
            end
            broadcastMessage("[Snowball Event]: event portal closed and event started!.")
            addEvent(Event_endGame, SnowBall_Configurations.Event_Duration * 60 * 1000)
        end

        Item(getTileItemById(SnowBall_Configurations.Area_Configurations.Position_EventTeleport, 1387).uid):remove(1)
        Item(getTileItemById(SnowBall_Configurations.Area_Configurations.Position_ExitWaitRoom, 1387).uid):remove(1)
        return true
    end

    if #CACHE_GAMEPLAYERS < SnowBall_Configurations.Event_MinPlayers then
        broadcastMessage("[Snowball Event]: will be closed in ".. rounds .. " minutes and " .. SnowBall_Configurations.Event_MinPlayers - #CACHE_GAMEPLAYERS .." players for start.")
    else
        broadcastMessage("[Snowball Event]: was opened and will be closed in ".. rounds .. " minutes.")
    end
    return addEvent(startGame, 60 * 1000, rounds - 1)
end

function onTime(interval)
    if not SnowBall_Configurations.Event_Days[os.date("%w") + 1] then
        return true
    end

    CACHE_GAMEPLAYERS = {}

    local EventTeleport = Game.createItem(1387, 1, SnowBall_Configurations.Area_Configurations.Position_EventTeleport)
    EventTeleport:setActionId(10101)

    local ExitWaitRoom = Game.createItem(1387, 1, SnowBall_Configurations.Area_Configurations.Position_ExitWaitRoom)
    ExitWaitRoom:setActionId(10102)

    broadcastMessage("[Snowball Event]: was opened, entrance through Temple of Thais!")
    addEvent(startGame, 60 * 1000, SnowBall_Configurations.Event_WaitGame)
    return true
end
lib
[Lua] SnowBall_Configurations - Pastebin.com
 
i have this error
Code:
> 
Lua Script Error: [Main Interface]
in a timer event called from:
(Unknown scriptfile)
attempt to index a nil value
stack traceback:
        [C]: at 0x013f7489e0
        [C]: in function 'teleportTo'
        data/globalevents/scripts/SnowBall_Event.lua:12: in function <data/globa
levents/scripts/SnowBall_Event.lua:1>
BUMP
 
  1. >
  2. Lua Script Error: [Main Interface]
  3. in a timer event called from:
  4. (Unknown scriptfile)
  5. attempt to index a nil value
  6. stack traceback:
  7. [C]: at 0x013f7489e0
  8. [C]: in function 'teleportTo'
  9. data/globalevents/scripts/SnowBall_Event.lua:12: in function <data/globa
  10. levents/scripts/SnowBall_Event.lua:1>
i have this error too, can u help?
 
data/globalevents/scripts/SnowBall_Event.lua:12: bad argument #2 to 'random' (interval is empty)
stack traceback:
[C]: in ?
[C]: in function 'random'
data/globalevents/scripts/SnowBall_Event.lua:12: in function <data/globalevents/scripts/SnowBall_Event.lua:1>
 
Sorry to relive the topic, but would anyone help me? I'm having the same mistake as my friends up there!


  1. > Broadcasted message: "[Snowball Event]: Faltam 1 minuto(s) e 1 jogador(es) par
  2. a o jogo comeþar.".
  3. > Broadcasted message: "[Snowball Event]: O evento foi cancelado por conta de nÒ
  4. o ter no minimo 2 jogadores.".
  5. > Broadcasted message: "[Snowball Event]: O evento foi aberto, vß atÚ o templo p
  6. ara participar.".
  7. > Broadcasted message: "[Snowball Event]: Faltam 1 minuto(s) para o jogo comeþar
  8. .".

  9. Lua Script Error: [Main Interface]
  10. in a timer event called from:
  11. (Unknown scriptfile)
  12. attempt to index a nil value
  13. stack traceback:
  14. [C]: at 0x013f7489e0
  15. [C]: in function 'teleportTo'
  16. data/globalevents/scripts/SnowBall_Event.lua:12: in function <data/globa
  17. levents/scripts/SnowBall_Event.lua:1>
 
Here is the solution, for those who had this problem, I apologize because I did not have time to correct.
Lua - Snowball War Event Error

Sorry to relive the topic, but would anyone help me? I'm having the same mistake as my friends up there!


  1. > Broadcasted message: "[Snowball Event]: Faltam 1 minuto(s) e 1 jogador(es) par
  2. a o jogo comeþar.".
  3. > Broadcasted message: "[Snowball Event]: O evento foi cancelado por conta de nÒ
  4. o ter no minimo 2 jogadores.".
  5. > Broadcasted message: "[Snowball Event]: O evento foi aberto, vß atÚ o templo p
  6. ara participar.".
  7. > Broadcasted message: "[Snowball Event]: Faltam 1 minuto(s) para o jogo comeþar
  8. .".

  9. Lua Script Error: [Main Interface]
  10. in a timer event called from:
  11. (Unknown scriptfile)
  12. attempt to index a nil value
  13. stack traceback:
  14. [C]: at 0x013f7489e0
  15. [C]: in function 'teleportTo'
  16. data/globalevents/scripts/SnowBall_Event.lua:12: in function <data/globa
  17. levents/scripts/SnowBall_Event.lua:1>
 
Hi guys I need to relive this topic sorry but I have this error in the console:

data/globalevents/scripts/SnowBall_Event.lua:12: bad argument #2 to 'random' (interval is empty)
stack traceback:
[C]: in ?
[C]: in function 'random'
data/globalevents/scripts/SnowBall_Event.lua:12: in function <data/globalevents/scripts/SnowBall_Event.lua:1>
 
Same problem


Hi guys I need to relive this topic sorry but I have this error in the console:

data/globalevents/scripts/SnowBall_Event.lua:12: bad argument #2 to 'random' (interval is empty)
stack traceback:
[C]: in ?
[C]: in function 'random'


Solutions?

solved

Add in startup.lua before last end:

loadEvent()
 
At the end of event, it makes my client debugged.
Im using Nekiros 8.6 TFS

Lua:
-- This script is part of Snow Ball War
-- Copyright by Ciroc Developer
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program.  If not, see <http://www.gnu.org/licenses/>.

-- //

SnowBall_Configurations = {
    Event_Duration = 1, -- Minutes of duration of the game.
    Event_WaitGame = 1, -- Minutes waiting for the beginning of the game, inside the room.
    Event_MinPlayers = 2, -- Minimum of players for the game start, otherwise the game is canceled.
    Event_GainPoint = 1, -- Gain points for each hit in the game.
    Event_LostPoints = 1, -- Lose points with every death in the game. // To disable, value = 0.
    Event_Days = {1, 2, 3, 4, 5, 6, 7}, -- Days that will occur the event (following the order of 1 = Sunday, 7 = Saturday)

    Area_Configurations = {
        Area_Arena = {{x = 2219, y = 2364, z = 7}, {x = 2258, y = 2403, z = 7}}, -- Area of ??the game arena, ({Upper Left Corner}, {Lower Right Corner})
        Position_WaitRoom = {x = 2236, y = 2383, z = 6}, -- Position of the waiting room of the game
       Position_ExitWaitRoom = {x = 2239, y = 2380, z = 6}, -- Position of the teleport that will leave the waiting room of the game
        Position_EventTeleport = {x = 2438, y = 2491, z = 7}, -- Position where the teleport will be created for the participants to go to the waiting room.
    },

    Ammo_Configurations = {
        Ammo_Price = 1, --  Price of the game in points of the game.
        Ammo_Ammount = 100, -- Amount of gain on each purchase.
        Ammo_Start = 100, --  Amount of each player's ammo at the beginning of the game.
        Ammo_Restart = 100, -- Amount of player's ammunition in case he dies. // If you want to disable, value = 0.
        Ammo_Speed = 150, -- Speed of each shot
        Ammo_Infinity = false, --  Whether the ammunition will be infinite or not (True / False)
        Ammo_Exhaust = 1, -- Seconds waiting to re-use the command !snowball atirar
        Ammo_Distance = 5, -- Amount of tiles the shot will reach
    },

     Positions_Rewards = {
        [1] = { -- First place awards
            [2160] = 100,
            [2152] = 1,
        },
        [2] = { -- Second place awards
            [2160] = 50,
        },
        [3] = { -- Third place awards
            [2160] = 10,
        },
    
    },
}

-- ################# SnowBall Functions -- Please do not mess with it. Developed entirely by Tony Araújo (OrochiElf) ################# --
CACHE_GAMEPLAYERS = {}
CACHE_GAMEAREAPOSITIONS = {}

function loadEvent()
    print("[SnowBall Event]: Loading the arena area.")
    for newX = SnowBall_Configurations.Area_Configurations.Area_Arena[1].x, SnowBall_Configurations.Area_Configurations.Area_Arena[2].x do
        for newY = SnowBall_Configurations.Area_Configurations.Area_Arena[1].y, SnowBall_Configurations.Area_Configurations.Area_Arena[2].y do
            local AreaPos = {x = newX, y = newY, z = SnowBall_Configurations.Area_Configurations.Area_Arena[1].z}
            if getTileThingByPos(AreaPos).itemid == 0 then
                print("[SnowBall Event]: There was a problem loading the location (x = " .. AreaPos.x .. " - y = " .. AreaPos.y .." - z = " .. AreaPos.z .. ") Of the event arena, please check the conditions.")
                return false
            elseif isWalkable(AreaPos) then
                table.insert(CACHE_GAMEAREAPOSITIONS, AreaPos)
            end
        end
    end
    print("[SnowBall Event]: Loading the arena area successfully completed.")

    if getTileThingByPos(SnowBall_Configurations.Area_Configurations.Position_WaitRoom).itemid == 0 then
        print("[SnowBall Event]: There was a problem verifying the existence of the waiting room position, please check the conditions.")
        return false
    end

    if getTileThingByPos(SnowBall_Configurations.Area_Configurations.Position_ExitWaitRoom).itemid == 0 then
        print("[SnowBall Event]: There was a problem verifying the existence of the teleport position of the waiting room, please check the conditions.")
        return false
    end

    if getTileThingByPos(SnowBall_Configurations.Area_Configurations.Position_EventTeleport).itemid == 0 then
        print("[SnowBall Event]: There was a problem verifying the existence of the position to create the event teleport, please check the conditions.")
        return false
    end

    print("[SnowBall Event]: Event loading completed successfully.")
    return true
end

local sampleConfigs = {
    [0] = {dirPos = {x = 0, y = -1}},
    [1] = {dirPos = {x = 1, y = 0}},
    [2] = {dirPos = {x = 0, y = 1}},
    [3] = {dirPos = {x = -1, y = 0}},
}

local iced_Corpses = {
    [0] = {
        [0] = {7303},
        [1] = {7306},
        [2] = {7303},
        [3] = {7306},
    },
    [1] = {
        [0] = {7305, 7307, 7309, 7311},
        [1] = {7308, 7310, 7312},
        [2] = {7305, 7307, 7309, 7311},
        [3] = {7308, 7310, 7312},
    },
}

function Event_sendSnowBall(cid, pos, rounds, dir)
    local player = Player(cid)

    if rounds == 0 then
        return true
    end

    if player then
        local sampleCfg = sampleConfigs[dir]

        if sampleCfg then
            local newPos = Position(pos.x + sampleCfg.dirPos.x, pos.y + sampleCfg.dirPos.y, pos.z)

            if isWalkable(newPos) then
                if Tile(newPos):getTopCreature() then
                    local killed = Tile(newPos):getTopCreature()

                    if Player(killed:getId()) then
                        if iced_Corpses[killed:getSex()] then
                            local killed_corpse = iced_Corpses[killed:getSex()][killed:getDirection()][math.random(1, #iced_Corpses[killed:getSex()][killed:getDirection()])]

                            Game.createItem(killed_corpse, 1, killed:getPosition())
                            local item = Item(getTileItemById(killed:getPosition(), killed_corpse).uid)
                            addEvent(function() item:remove(1) end, 3000)
                        end

                        killed:getPosition():sendMagicEffect(3)
                        killed:teleportTo(CACHE_GAMEAREAPOSITIONS[math.random(1, #CACHE_GAMEAREAPOSITIONS)])
                        killed:getPosition():sendMagicEffect(50)
                        killed:setStorageValue(10109, killed:getStorageValue(10109) - SnowBall_Configurations.Event_LostPoints)
                        killed:setStorageValue(10108, SnowBall_Configurations.Ammo_Configurations.Ammo_Restart)
                        killed:sendTextMessage(29, "You've been hit by the player " .. player:getName() .. " And lost -" .. SnowBall_Configurations.Event_LostPoints .." points.\nTotal of: " .. killed:getStorageValue(10109) .. " points")

                        player:setStorageValue(10109, player:getStorageValue(10109) + SnowBall_Configurations.Event_GainPoint)
                        player:sendTextMessage(29, "You just hit the player " .. killed:getName() .. " and won +" .. SnowBall_Configurations.Event_GainPoint .." points.\nTotal of: " .. player:getStorageValue(10109) .. " points")

                        if(CACHE_GAMEPLAYERS[2] == player:getId()) and player:getStorageValue(10109) >= Player(CACHE_GAMEPLAYERS[1]):getStorageValue(10109) then
                            player:getPosition():sendMagicEffect(7)
                            player:sendTextMessage(29, "You are now the leader of the SnowBall ranking, congratulations!")
                            Player(CACHE_GAMEPLAYERS[1]):getPosition():sendMagicEffect(16)
                            Player(CACHE_GAMEPLAYERS[1]):sendTextMessage(29, "You just lost the first place!")
                        end

                        table.sort(CACHE_GAMEPLAYERS, function(a, b) return Player(a):getStorageValue(10109) > Player(b):getStorageValue(10109) end)
                    else

                        newPos:sendMagicEffect(3)
                    end
                    return true
                end

                pos:sendDistanceEffect(newPos, 13)
                pos = newPos
                return addEvent(Event_sendSnowBall, SnowBall_Configurations.Ammo_Configurations.Ammo_Speed, player:getId(), pos, rounds - 1, dir)
            end

            newPos:sendMagicEffect(3)
            return true
        end
    end
    return true
end

function Event_endGame()
    local str = "       ## -> SnowBall Ranking <- ##\n\n"

    for rank, players in ipairs(CACHE_GAMEPLAYERS) do
        if SnowBall_Configurations.Positions_Rewards[rank] then
            for item_id, item_ammount in pairs(SnowBall_Configurations.Positions_Rewards[rank]) do

                Player(players):addItem(item_id, item_ammount)
            end
        end

        str = str .. rank .. ". " .. Player(players):getName() .. ": " .. Player(players):getStorageValue(10109) .. " points\n"
        Player(players):teleportTo(Player(players):getTown():getTemplePosition())
    end

    for _, cid in ipairs(CACHE_GAMEPLAYERS) do
        Player(cid):showTextDialog(2111, str)
    end

    broadcastMessage("[Snowball Event]: The event ended.")
    return true
end

function isWalkable(pos) --- New Function by Tony Araújo (OrochiElf)
    for i = 0, 255 do
        pos.stackpos = i

        local item = Item(getTileThingByPos(pos).uid)
        if item ~= nil then
            if item:hasProperty(2) or item:hasProperty(3) or item:hasProperty(7) then
                return false
            end
        end
    end
    return true
end

function isInArena(player)
    local pos = player:getPosition()

    if pos.z == SnowBall_Configurations.Area_Configurations.Area_Arena[1].z then
        if pos.x >= SnowBall_Configurations.Area_Configurations.Area_Arena[1].x and pos.y >= SnowBall_Configurations.Area_Configurations.Area_Arena[1].y then
            if pos.x <= SnowBall_Configurations.Area_Configurations.Area_Arena[2].x and pos.y <= SnowBall_Configurations.Area_Configurations.Area_Arena[2].y then
                return true
            end
        end
    end
    return false
end

Client error

Code:
Debug Assertion 8.60 Utils.cpp 550
Thu Nov 28 21:52:00 2019
Graphic Engine: DirectX9 (2)
Operating System: Windows 7 Home Premium Edition 64 Bit in GBR
Processor: Intel Core i5 -8300H @
Video Card: Intel (R) UHD G
Last Packet Types: 150 146 106 107 162 162 146 100 108 160
Last Packet: 160 150 000 150 000 056 149 000 000 000 000 000 000 001 000 000
Player Position: [2433,2498,7]
Player Name: Druid Sample (Forgotten)
Player Action: 049 057 050 046 049 054 056 046 049 046 050 048 049 058 055 049 055 050
Player.cpp 361: exception occurred, reason:
Network.cpp 946: exception occurred (ErrorCode = 0), reason:
Control.cpp 1331: exception occurred (Type = 150) (MainWindow = 51467072), reason:
Communication.cpp 2619: exception occurred, reason:
Network.cpp 504: exception occurred, reason:
Utils.cpp 550: assertion failed (Position = 2753) (Size-Length = -21427), reason:
Position<=Size-Length




It will work if u just remove:
Lua:
for _, cid in ipairs(CACHE_GAMEPLAYERS) do
        Player(cid):showTextDialog(2111, str)
    end
 
Last edited:
Has anyone fixed globalevent
I tried a lot with the solution that this guy explained and it didn't work for me only an error in line12 and after this solution an error in line14
Lua:
function startGame(rounds)
    if rounds == 0 then
        if #CACHE_GAMEPLAYERS < SnowBall_Configurations.Event_MinPlayers then
            for _, players in ipairs(CACHE_GAMEPLAYERS) do
                Player(players):teleportTo(Player(players):getTown():getTemplePosition())
            end
            broadcastMessage("[Snowball Event]: Not enough players to start Last man Standing event! Minimum: ".. SnowBall_Configurations.Event_MinPlayers.." players.")
        else
            for _, players in ipairs(CACHE_GAMEPLAYERS) do
                local player = Player(players)
                if player then
                    player:setStorageValue(10109, 0)
                    player:setStorageValue(10108, SnowBall_Configurations.Ammo_Configurations.Ammo_Start)
                    player:teleportTo(CACHE_GAMEAREAPOSITIONS[math.random(1, #CACHE_GAMEAREAPOSITIONS)])
                end
            end
            broadcastMessage("[Snowball Event]: event portal closed and event started!.")
            addEvent(Event_endGame, SnowBall_Configurations.Event_Duration * 60 * 1000)
        end

        Item(getTileItemById(SnowBall_Configurations.Area_Configurations.Position_EventTeleport, 1387).uid):remove(1)
        Item(getTileItemById(SnowBall_Configurations.Area_Configurations.Position_ExitWaitRoom, 1387).uid):remove(1)
        return true
    end

    if #CACHE_GAMEPLAYERS < SnowBall_Configurations.Event_MinPlayers then
        broadcastMessage("[Snowball Event]: will be closed in ".. rounds .. " minutes and " .. SnowBall_Configurations.Event_MinPlayers - #CACHE_GAMEPLAYERS .." players for start.")
    else
        broadcastMessage("[Snowball Event]: was opened and will be closed in ".. rounds .. " minutes.")
    end
    return addEvent(startGame, 60 * 1000, rounds - 1)
end

function onTime(interval)
    if not SnowBall_Configurations.Event_Days[os.date("%w") + 1] then
        return true
    end

    CACHE_GAMEPLAYERS = {}

    local EventTeleport = Game.createItem(1387, 1, SnowBall_Configurations.Area_Configurations.Position_EventTeleport)
    EventTeleport:setActionId(10101)

    local ExitWaitRoom = Game.createItem(1387, 1, SnowBall_Configurations.Area_Configurations.Position_ExitWaitRoom)
    ExitWaitRoom:setActionId(22225)

    broadcastMessage("[Snowball Event]: was opened, entrance through Temple of Thais!")
    addEvent(startGame, 60 * 1000, SnowBall_Configurations.Event_WaitGame)
    return true
end
 
Everything works without errors, the above mentioned ones due to a translation error. Guys, a little thought and everything is fine!
 
Back
Top