Results 1 to 9 of 9
Thread: Lua Manual / Docs
-
20-12-2009, 00:26 #1
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 endCode: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 = functionLast edited by Neico; 20-12-2009 at 01:02.
-
20-12-2009, 01:09 #2
-= TeamSpeak Fanatic =-
- Join Date
- Sep 2005
- Location
- Germany / Dortmund
- Posts
- 1,282
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.
-
20-12-2009, 01:11 #3
oh there i only saw the event functions :/
-
20-12-2009, 01:21 #4
-= TeamSpeak Fanatic =-
- Join Date
- Sep 2005
- Location
- Germany / Dortmund
- Posts
- 1,282
Of course, there is a list.
From
toCode:ts3.getClientLibVersion() > version, error
Code:ts3.urlsToBB(textWithURLs) > bbCodeText
-
21-12-2009, 07:48 #5
-= TeamSpeak User =-
- Join Date
- Dec 2009
- Location
- Michi
- Posts
- 13
I would have to say that they are almost unreadable too though. See attachment for example.
-
21-12-2009, 11:10 #6
-= TeamSpeak User =-
- Join Date
- Jan 2006
- Location
- Germany
- Posts
- 3
Just use an other Editor like notepad++ and it is readable.
-
21-12-2009, 14:42 #7
-= TeamSpeak User =-
- Join Date
- Dec 2009
- Location
- Germany - Near Berlin
- Posts
- 13
Or try WordPad
it should work too
-Flaver 'hooK'
-
30-04-2012, 23:38 #8
-= TeamSpeak User =-
- Join Date
- Sep 2008
- Location
- Brazil
- Posts
- 27
How changer "Channel Type" with lua function. Example Temporary->Permanent
-
01-05-2012, 03:14 #9
-= TeamSpeak Fanatic =-
- Join Date
- Jan 2010
- Location
- Germany
- Posts
- 2,039
Disclaimer: The following Code has not been tested at all!
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.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)
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
-
please help someone
By theundead67 in forum [TeamSpeak 2] Server SupportReplies: 59Last Post: 31-03-2007, 04:53 -
manual installing teamspeak on mandrake
By linux4os in forum [TeamSpeak 2] Client SupportReplies: 6Last Post: 10-04-2004, 11:16 -
finish the new manual
By Bastian in forum [TeamSpeak 2] General QuestionsReplies: 1Last Post: 06-04-2004, 17:02 -
Web Interface Manual
By nightmarepm in forum [TeamSpeak 2] Server SupportReplies: 1Last Post: 08-03-2003, 05:10 -
Manual??
By Matrf in forum [TeamSpeak 2] Server SupportReplies: 1Last Post: 19-09-2002, 15:21




Reply With Quote