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 5 of 5
  1. #1
    Join Date
    December 2010
    Location
    Germany
    Posts
    1

    [Question] LUA Plugin: Using function calls from another lua instance

    Is it possible to use function calls and receive events from another lua instance (lcdhost in my example). For example when a person talks I would like the nick of that person to be passed on along with the notification that that event is taking place.

    Another not so directly related question:
    If that is not possible, is it possible to popen a file from within teamspeaks lua and have it write all the things that might be interesting to me and popen it from another lua instance to read it at the same time (I have the idea that windows doesn't allow files to be opened by two applications at once)

  2. #2
    Join Date
    April 2009
    Location
    italy
    Posts
    44
    ++++++++++++++1

  3. #3
    Join Date
    September 2005
    Location
    Germany / Dortmund
    Posts
    1,376
    Have a look at the clientquery plugin.

    You can open a tcp connection within your lua instance to port 25639. With clientnotifyregister you receive the talkstatuschangeevent.

  4. #4
    Join Date
    April 2010
    Location
    new zealand
    Posts
    3
    I am confuse? How do I open a port from lua, I thought lua sockets were not supported. At least not last time I tried.

    Thanks,
    Jason

  5. #5
    Join Date
    September 2005
    Location
    Germany / Dortmund
    Posts
    1,376
    Yeah, that's right.
    Is it possible to use function calls and receive events from another lua instance (lcdhost in my example).
    But if the other lua instance supports sockets, you can connect to the clientquery plugin. So you completely ignore the lua plugin.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [Question] Run lua function by click menu instead of /lua run xx
    By Viziss in forum Client Plugins / Lua Scripts
    Replies: 0
    Last Post: May 30th, 2015, 08:22 PM
  2. Replies: 0
    Last Post: February 23rd, 2014, 04:47 PM
  3. [On Todo] Lua Plugin PlayWaveFile Function breaking long sounds
    By VenomAK in forum Bug Reports [EN/DE]
    Replies: 3
    Last Post: May 27th, 2011, 10:31 AM
  4. Replies: 2
    Last Post: August 20th, 2010, 03:31 PM

Posting Permissions

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