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 3 of 3
  1. #1
    Join Date
    April 2014
    Posts
    6

    Poke back script

    For some reason, this does not seem to be working. I want it to auto poke people back when they poke me.


    Code:
    local function onClientPokeEvent(serverConnectionHandlerID, pokerID, pokerName, message, ffIgnored)
    	local pokemenot = "Don't poke me  " .. pokerName .. "..."
        ts3.requestClientPoke(serverConnectionHandlerID, pokerID, pokemenot)
    end
    Any suggestions?

  2. #2
    Join Date
    November 2013
    Posts
    57
    did you register the event?

    Code:
    -- rename your local function to "localOnClientPokeEvent" or something
    -- put this code somewhere after the definition of your function
    local registeredEvents = {
       onClientPokeEvent= localOnClientPokeEvent
    }
    ts3RegisterModule(MODULE_NAME, registeredEvents)
    did you enable your module in the lua plugin preferences?

  3. #3
    Join Date
    April 2014
    Posts
    6
    Yes, here is my init.lua

    Code:
    require("ts3init")          
    require("PokeAuto/events") 
    
    local MODULE_NAME = "PokeAuto"
    
    local registeredEvents = {
    	onClientPokeEvent = PokeAuto_events.onClientPokeEvent
    }
    
    ts3RegisterModule(MODULE_NAME, registeredEvents)

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [No Bug] poke window in back of the ts client
    By speedson in forum Bug Reports [EN/DE]
    Replies: 4
    Last Post: October 28th, 2015, 08:17 PM
  2. [Already possible] Poke-back button
    By ploxh in forum General Questions
    Replies: 1
    Last Post: June 29th, 2014, 12:34 PM
  3. [Resolved] Add "Channel" Text Location to "Sent poke" and back to "Received poke"
    By PatPeter in forum Suggestions and Feedback
    Replies: 2
    Last Post: May 9th, 2013, 07:09 AM
  4. Small LUA poke script
    By Flaver aKa hooK in forum Tools / Web Based
    Replies: 13
    Last Post: December 31st, 2010, 01:06 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
  •