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

Results 1 to 11 of 11
  1. #1
    Join Date
    January 2010
    Location
    Sweden
    Posts
    6

    Solved [Request] Guest Notify

    I'd like a plug-in that notifies me if a guest has joined the server. - In form of a pop-up message or a sound notification.

  2. #2
    Join Date
    February 2011
    Posts
    3
    This would be very useful to me also.

  3. #3
    Join Date
    July 2010
    Location
    USA
    Posts
    71
    Something on the lines of this would be helpful for myself also, we only use Server Groups and we have it setup that anyone without a Server Group gets stuck in the main channel... also most of us have the Short TTS which only allows ya to hear users coming and going from yoru own channel... so lots of times when in game Guests can sit up there forever going unnoticed

  4. #4
    Join Date
    January 2010
    Location
    Sweden
    Posts
    6
    Still none that can do this?

  5. #5
    Join Date
    September 2005
    Location
    Germany / Dortmund
    Posts
    1,376
    You can simply do this with a lua script:

    Code:
    function onClientMoveEvent(schid, clientID, oldChannelID, newChannelID, visibility, moveMessage)
      if visibility == ts3defs.Visibility.ENTER_VISIBILITY then
        local grps, error = ts3.getClientVariableAsString(schid, clientID, ts3defs.ClientProperties.CLIENT_SERVERGROUPS)
        if error == ts3errors.ERROR_ok then
          if grps == "10" then -- replace 10 with the serverguest group id
            ts3.playWaveFile(schid, "./sound/your_sound_file.wav")
          end
        end
      end
    end

  6. #6
    Join Date
    January 2010
    Location
    Sweden
    Posts
    6
    Thanks, it's working now!
    Last edited by pjokmeister; March 23rd, 2011 at 05:36 AM.

  7. #7
    Join Date
    July 2010
    Location
    USA
    Posts
    71
    How exactly do you do this LUA script thing?

  8. #8
    Join Date
    September 2005
    Location
    Germany / Dortmund
    Posts
    1,376
    There is a testmodule in your plugins/lua_plugin directory, which you can copy and modify.

  9. #9
    Join Date
    April 2011
    Posts
    1
    I copied your script and made it into a lua file and then I put it in the plugins and lua_plugin folders. It did not show up on the plugins in the Teamspeak client. Can you tell me what I am doing wrong or point me to a guide on creating and using plugins?

  10. #10
    Join Date
    April 2011
    Location
    US
    Posts
    8
    Ok, I was having trouble getting this to work and figured it out so I'm posting what I did. I changed this a little bit. Create a folder called guestsound in your lua_plugin folder. In the guestsound folder create a folder called sound. Place your wav file in the sound folder you created. Copy the code in the first code box below into your editor and save it as init.lua. Place that file in the guestsound folder. Copy the code in the second code box below into your editor. Replace the group id with your guest group ID. Replace the wav file name with the name of your wav file. Save it as events.lua. Place it in the guestsound folder. Open TS. Go to Settings>Plugins. Enable the Lua Plugin. Highlight the Lua Plugin and click Settings button. Tick the box for guestsound. At this point it should work. I've had some weirdness with the was the wav file is played being distorted. Not sure why this is. If anyone knows a way to fix that please let me know. Is there a restriction on the length of the wav file and it is condensed to that time frame? I don't know.

    init.lua
    Code:
    require("ts3init")
    require("guestsound/events")
    require("ts3defs")
    require("ts3errors")
    
    local registeredEvents = {
    	onClientMoveEvent = guestsound_events.onClientMoveEvent
    }
    
    ts3RegisterModule("guestsound", registeredEvents)
    events.lua
    Code:
    require("ts3defs")
    require("ts3errors")
    
    local function onClientMoveEvent(schid, clientID, oldChannelID, newChannelID, visibility, moveMessage)
      if visibility == ts3defs.Visibility.ENTER_VISIBILITY then
        local grps, error = ts3.getClientVariableAsString(schid, clientID, ts3defs.ClientProperties.CLIENT_SERVERGROUPS)
        if error == ts3errors.ERROR_ok then
          if grps == "10" then -- replace 10 with the serverguest group id
            ts3.playWaveFile(schid, "./plugins/lua_plugin/guestsound/sound/owl_2.wav")
          end
        end
      end
    end
    
    guestsound_events = {
    	onClientMoveEvent = onClientMoveEvent
    }
    Last edited by arandomguy01; April 29th, 2011 at 12:50 PM.

  11. #11
    Join Date
    January 2013
    Posts
    21
    I re-installed my TS after I had a few problems with it. After that, I am unable to use any other sound file besides the one that comes with it.
    Last edited by SampsonNation; October 6th, 2013 at 11:11 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. ClientQuery Notify stops
    By Hansz in forum General Questions
    Replies: 2
    Last Post: May 22nd, 2015, 09:13 PM
  2. [Resolved] ClientQuery Notify
    By Hansz in forum Client Plugins / Lua Scripts
    Replies: 4
    Last Post: May 19th, 2015, 04:54 PM
  3. request Guest temp servergroup needed_member_ working
    By Tomas in forum Suggestions and Feedback
    Replies: 0
    Last Post: February 20th, 2015, 09:50 AM
  4. Notify on group change
    By yorki in forum Tools / Web Based
    Replies: 1
    Last Post: January 29th, 2013, 10:39 AM

Posting Permissions

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