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

Convert Script to tfs 1.2

Solution
added some extra shit like invalid player check, queue table instead of storages (so you dont have to iterate through every single player in the game)
and now it actually checks if the vocation is in queue or not, multiple numbers of a voc could have joined before
untested but should be fine unless i forgot about something
Lua:
local config = {
    vocations = { -- you need to set your numbers from vocations.xml
        {1, 5}, -- sorc
        {2, 6}, -- druid
        {3, 6}, -- paladin
        {4, 7}, -- knight
    },
    vocStorages = {
        33313, -- sorc
        33314, -- druid
        33315, -- paladin
        33316, -- knight
    },
    dungeonState = 33318, --// storage value
    dungeonPos = Position(1000, 1000, 7)
}

queue =...
Back
Top