-- This file should only be used for globally useful constants and functions. -- Please put new events, actions, items, etc. in their respective 'main' Lua files. function split(input, separator) if separator == nil then separator = '%s' end local t = {} for str in string.gmatch(input, '([^'..separator..']+)') do table.insert(t, str) end return t end -- Constants GM_RANK_NORMALUSER = 0 GM_RANK_GAMEMASTER = 1 GM_RANK_EVENTJUNIOR = 3 GM_RANK_EVENTSENIOR = 4 GM_RANK_SUPPORT = 5 GM_RANK_SENIOR = 7 GM_RANK_DEBUG = 90 GM_RANK_MAX = 255 -- Doesn't exist, used for purposes of testing permissions in scripts