Community Forums Today's Posts     Member List     Archive    
Results 1 to 9 of 9
  1. #1
    Join Date
    Apr 2005
    Location
    Germany
    Posts
    24

    Lua Manual / Docs

    Is there a documentation already available that shows which functions / libs are available and which args do they have on the Client / Server?

    i only got a small list by creating a PrintTable (this function is a modified version from Garry's Mod to work with TS3, i didn't made use of the indent arg yet feel free to expand it :P) function and calling it like that: ts3.printMessage( serverConnectionHandlerID, PrintTable( ts3 ) )

    Code:
    function PrintTable( t, indent, done )
        done = done or {}
        indent = indent or 0
        local output = ""
    
        for key, value in pairs( t ) do
            if type( value ) == "table" and not done[value] then
                done [value] = true
                output = output .. tostring ( key ) .. ":" .. PrintTable( value, indent + 2, done ) .. "\n"
            else
                output = output .. tostring ( key ) .. "\t=\t" .. type( value ) .. "\n"
            end
        end
        return output
    end
    Code:
    ts3:
        getChannelIDFromChannelNames = function
        requestChannelUnsubscribeAll = function
        requestChannelDescription = function
        getClientSelfVariableAsString = function
        requestServerVariables = function
        setPreProcessorConfigValue = function
        getClientID = function
        logMessage = function
        getParentChannelOfChannel = function
        getClientSelfVariableAsInt = function
        printMessage = function
        getChannelClientList = function
        requestClientMove = function
        requestChannelDelete = function
        requestClientPoke = function
        requestChannelSubscribe = function
        requestSendTextMsg = function
        flushClientSelfUpdates = function
        getPlaybackConfigValueAsFloat = function
        setClientSelfVariableAsString = function
        getChannelVariableAsString = function
        requestClientKickFromServer = function
        getChannelVariableAsInt = function
        playWaveFile = function
        getServerVariableAsInt = function
        getConfigPath = function
        requestChannelUnsubscribe = function
        getClientList = function
        getCurrentServerConnectionHandlerID = function
        setClientSelfVariableAsInt = function
        getPluginPath = function
        urlsToBB = function
        getServerConnectionHandlerList = function
        flushChannelUpdates = function
        getServerVariableAsUInt64 = function
        requestChannelMove = function
        getChannelList = function
        flushChannelCreation = function
        getServerVariableAsString = function
        setChannelVariableAsString = function
        setChannelVariableAsInt = function
        getResourcesPath = function
        setPlaybackConfigValue = function
        requestClientVariables = function
        getCurrentChatServerConnectionHandlerID = function
        getClientVariableAsString = function
        requestChannelSubscribeAll = function
        getPreProcessorInfoValueFloat = function
        getEncodeConfigValue = function
        getClientVariableAsInt = function
        getChannelOfClient = function
        getAppPath = function
        requestClientKickFromChannel = function
        getPreProcessorConfigValue = function
        getClientLibVersion = function
        getErrorMessage = function
    Last edited by Neico; 20-12-2009 at 01:02.

  2. #2
    Join Date
    Sep 2005
    Location
    Germany / Dortmund
    Posts
    1,298
    In the scripts directory there should be a file named ts3events.lua.
    Take a look at this file. There you can see the events and at end of file, there is a list with available commands.

  3. #3
    Join Date
    Apr 2005
    Location
    Germany
    Posts
    24
    oh there i only saw the event functions :/

  4. #4
    Join Date
    Sep 2005
    Location
    Germany / Dortmund
    Posts
    1,298
    Of course, there is a list.

    From
    Code:
    ts3.getClientLibVersion() > version, error
    to
    Code:
    ts3.urlsToBB(textWithURLs) > bbCodeText

  5. #5
    Join Date
    Dec 2009
    Location
    Michi
    Posts
    13
    I would have to say that they are almost unreadable too though. See attachment for example.
    Attached Images Attached Images  

  6. #6
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    3
    Just use an other Editor like notepad++ and it is readable.

  7. #7
    Join Date
    Dec 2009
    Location
    Germany - Near Berlin
    Posts
    13
    Or try WordPad
    it should work too

    -Flaver 'hooK'

  8. #8
    Join Date
    Sep 2008
    Location
    Brazil
    Posts
    27
    How changer "Channel Type" with lua function. Example Temporary->Permanent

  9. #9
    Join Date
    Jan 2010
    Location
    Germany
    Posts
    2,046
    Disclaimer: The following Code has not been tested at all!

    Code:
    *** Use the currently displayed Server Tab ***
    local serverConnectionHandlerID = ts3.getCurrentServerConnectionHandlerID()
    *** Get own Client ID on currently displayed Server Tab ***
    local myClientID, clientIDError = ts3.getClientID(serverConnectionHandlerID)
    *** Get current Channel on active Server Tab ***
    local channelID, channelIDError = ts3.getChannelOfClient(serverConnectionHandlerID, myClientID)
    *** Set Channel as Permanent ***
    ts3.setChannelVariableAsInt(serverConnectionHandlerID, channelID, ts3defs.ChannelProperties.CHANNEL_FLAG_PERMANENT, 1)
    *** Remove Semi Permanent Flag just to be on the safe side ***
    ts3.setChannelVariableAsInt(serverConnectionHandlerID, channelID, ts3defs.ChannelProperties.CHANNEL_FLAG_SEMI_PERMANENT, 0)
    *** Send Channel modifications to the Server ***
    ts3.flushChannelUpdates(serverConnectionHandlerID, channelID)
    Will (try to) change whatever Channel you are currently in on the Server whom's Tab is currently displayed to a Permanent Channel. This is a very crude Implementation and should not be used in a production environment. It does not check if you are actually connected to a server on the current Tab (or any errors for that matter), nor does it store or check the results of the API Calls that do the work.

    It will fail if you do not have permissions, are not connected, etc.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. please help someone
    By theundead67 in forum [TeamSpeak 2] Server Support
    Replies: 59
    Last Post: 31-03-2007, 04:53
  2. manual installing teamspeak on mandrake
    By linux4os in forum [TeamSpeak 2] Client Support
    Replies: 6
    Last Post: 10-04-2004, 11:16
  3. finish the new manual
    By Bastian in forum [TeamSpeak 2] General Questions
    Replies: 1
    Last Post: 06-04-2004, 17:02
  4. Web Interface Manual
    By nightmarepm in forum [TeamSpeak 2] Server Support
    Replies: 1
    Last Post: 08-03-2003, 05:10
  5. Manual??
    By Matrf in forum [TeamSpeak 2] Server Support
    Replies: 1
    Last Post: 19-09-2002, 15:21

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •