Forum


Notice to all users

We are migrating towards a new forum system located at community.teamspeak.com, as such this forum will become read-only on January 29, 2020

Page 2 of 2 FirstFirst 12
Results 16 to 29 of 29
  1. #16
    Join Date
    June 2013
    Posts
    32
    API needs updating

  2. #17
    Join Date
    September 2012
    Posts
    6,079
    Quote Originally Posted by SilentStorm View Post
    Code:
    local function onTextMessageEvent(serverConnectionHandlerID, targetMode, toID, fromID, fromName, fromUniqueIdentifier, message, ffIgnored)
        local myClient = ts3.getClientID(serverConnectionHandlerID)
        local  response = "You managed to send me a private Message"
        if targetMode = ts3defs.TextMessageTargetMode.TextMessageTarget_CLIENT and fromID ~= myClient then
            ts3.requestSendPrivateTextMsg(serverConnectionHandlerID, response, fromID)
        end
    end
    Untested LUA Code. No guarantees whatsoever! Use at your own Risk!
    You could just use the above LUA code and not needing any updates for API changes. This is something so small it isn't even worth the CPU cycles required to compile a plugin for it.
    When sending PMs please make sure to include a reference link to the thread in question in the body of your message.

  3. #18
    Join Date
    June 2013
    Posts
    32
    Doesn't work Cris

  4. #19
    Join Date
    March 2012
    Posts
    5
    Any new plugin yet? It would be very great to get an running version.

  5. #20
    Join Date
    June 2011
    Location
    Germany
    Posts
    4,368
    This plugin doesn't make any sense to me. I've seen it in action and it's super nasty. There is no chance that private messages do not arrive, so an AFK message is enough.

  6. #21
    Join Date
    March 2012
    Posts
    5
    Is there an fuction that can be Used allready? With Custom Text?

  7. #22
    Join Date
    May 2012
    Posts
    6
    The above LUA code isn't working, so I customized it:
    Code:
    function onTextMessageEvent(serverConnectionHandlerID, targetMode, toID, fromID, fromName, fromUniqueIdentifier, message, ffIgnored)
    	myID = ts3.getClientID(serverConnectionHandlerID)
    	response = "You managed to send me a private Message"
    	if fromID ~= myID and toID == myID then
    		ts3.requestSendPrivateTextMsg(serverConnectionHandlerID, response, fromID)
    	end
    end
    This LUA code is working fine. Of course you can use your custom text, just change the text in " behind response.

  8. #23
    Join Date
    March 2012
    Posts
    5
    thanks for your code. Is there an tutorial how to use lua? i dont know how and where i should embed this code and get it working.

  9. #24
    Join Date
    May 2012
    Posts
    6
    1. Go into the TS3 installation folder (for example 'C:\Program Files\TeamSpeak 3 Client').
    2. Go into the subfolder 'plugins' and then 'lua_plugin'.
    3. Create a new folder, name it whatever you want (it will be the name of your script), for exampe 'autoreply'.
    4. Go into this created folder.
    5. Create a new file, name it 'init.lua' (make sure there is no hidden .txt extension to this file!).
    6. Open this file with an editor, for exampe Notepad++.
    7. Paste the lua code and save.
    8. Start TS3 and goto 'Settings' -> 'Plugins'.
    9. Make sure 'Lua Plugin' is checked.
    10. Click 'Lua Plugin' and click the settings button below.
    11. Check your new script, click OK and you're done.

  10. #25
    Join Date
    March 2012
    Posts
    5
    thanks. its working!

  11. #26
    Join Date
    April 2013
    Posts
    43
    Quote Originally Posted by ChrischiJ View Post
    1. Go into the TS3 installation folder (for example 'C:\Program Files\TeamSpeak 3 Client').
    2. Go into the subfolder 'plugins' and then 'lua_plugin'.
    3. Create a new folder, name it whatever you want (it will be the name of your script), for exampe 'autoreply'.
    4. Go into this created folder.
    5. Create a new file, name it 'init.lua' (make sure there is no hidden .txt extension to this file!).
    6. Open this file with an editor, for exampe Notepad++.
    7. Paste the lua code and save.
    8. Start TS3 and goto 'Settings' -> 'Plugins'.
    9. Make sure 'Lua Plugin' is checked.
    10. Click 'Lua Plugin' and click the settings button below.
    11. Check your new script, click OK and you're done.
    Hi. Why your script spamming?

    http://i58.tinypic.com/2ew2whx.png

  12. #27
    Join Date
    September 2012
    Posts
    6,079
    Quote Originally Posted by Deireadh View Post
    Hi. Why your script spamming?

    http://i58.tinypic.com/2ew2whx.png
    It's doing exactly what you wanted it to do, it sends a message upon receiving a message. Now if the second client also has it enabled it'll result in an infinite loop as the message you're sending back is a private message thus the other client will receive a private message and reply with a private message which is going to be received by the original client that sends a message back and so on.
    When sending PMs please make sure to include a reference link to the thread in question in the body of your message.

  13. #28
    Join Date
    January 2016
    Posts
    2

    help

    Is there a way to make this code [down] to just send message if the client send us 4 or 5 messages?

    function onTextMessageEvent(serverConnectionHandlerID, targetMode, toID, fromID, fromName, fromUniqueIdentifier, message, ffIgnored)
    myID = ts3.getClientID(serverConnectionHandlerID)
    response = "You managed to send me a private Message"
    if fromID ~= myID and toID == myID then
    ts3.requestSendPrivateTextMsg(serverConnectionHand lerID, response, fromID)
    end
    end

  14. #29
    Join Date
    August 2012
    Posts
    17
    Can you update it from working on v19 to 21 or 22?. it's not compatible with newer versions (ie, 3.1.10.3)

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [Not possible] Logging channel messages and private messages or pokes?
    By BritishGaming94 in forum General Questions
    Replies: 22
    Last Post: January 28th, 2017, 10:38 AM
  2. [Plugin] Reply to private messages automatically
    By Previus in forum General Questions
    Replies: 0
    Last Post: October 28th, 2014, 12:07 PM
  3. [Request] Filter Plugin for Private Messages
    By Frohser in forum Client Plugins / Lua Scripts
    Replies: 6
    Last Post: May 6th, 2014, 10:09 PM
  4. private messages
    By backdrop001 in forum General Questions
    Replies: 1
    Last Post: July 4th, 2011, 05:53 AM

Tags for this Thread

Posting Permissions

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