-- Get a list of the keys from a table function GetTableKeys(aTable) local keys = {} local n = 0 for k, v in pairs(aTable) do n = n + 1 keys[n] = k end return keys end -- Add a message to the chat window function ChatMessage(message) CHAT_SYSTEM:AddMessage(message) end function SplitString(input) local result = {} local counter = 1 for s in string.gmatch(input, "%S+") do result[counter] = s counter = counter + 1 end return result end