[Lua] Afk player checker script - HELP! menu

User Tag List

Results 1 to 7 of 7
  1. #1
    gospag's Avatar Member
    Reputation
    1
    Join Date
    Jul 2009
    Posts
    12
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Lua] Afk player checker script - HELP!

    I'm looking for help to make a lua script that checks if a player is or isn't afk.

    Can anyone provide some info or an already made script?

    [Lua] Afk player checker script - HELP!
  2. #2
    P1raten's Avatar Banned
    Reputation
    500
    Join Date
    Mar 2008
    Posts
    1,323
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I dont think there is any command for this.

  3. #3
    gospag's Avatar Member
    Reputation
    1
    Join Date
    Jul 2009
    Posts
    12
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nah, there has to be a way to check for afks... I've seen it on a sever a few months ago :\ (every non-afk player got gold for killing some random boss)

  4. #4
    Ground Zero's Avatar ★ Elder ★
    Reputation
    1132
    Join Date
    Aug 2008
    Posts
    3,504
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've never heard of a Lua function for this, but I could be wrong and I could be something as simple as if player:IsAFK(). However there is a option in ArcEmu's configs (world) to
    Code:
     KickAFKPlayers = "0"
    Turn that to 1 and anyone who goes AFK leaves world.

  5. #5
    gospag's Avatar Member
    Reputation
    1
    Join Date
    Jul 2009
    Posts
    12
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks. I'll try that function and pray for it to work :\ Oh and I don't want to kick afk players. I want to use it for world buffs - if player is afk, he doesn't get the buff xD

    & btw + rep for ya

  6. #6
    gospag's Avatar Member
    Reputation
    1
    Join Date
    Jul 2009
    Posts
    12
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can someone please shed some light on this function:
    "Unit:HasFlag(index, flag) +- Returns true if the Unit has UInt32Value at index and flag"?

    Or does anyone know what flag number does the /afk status have?
    +Rep for help

  7. #7
    Kiev's Avatar Contributor
    Reputation
    288
    Join Date
    Nov 2007
    Posts
    1,819
    Thanks G/R
    0/4
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ArcEmu typically has a list somewhere of what flag is what, try and google ArcEmu flags, or something alike, it can be quite dependant and you never know if it will be the right list. I would suggest posting over at ArcEmu forums too.




Similar Threads

  1. LUA Script Help Thread
    By mager1794 in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 07-04-2008, 12:46 AM
  2. LuA Scripting Help
    By Jlp in forum World of Warcraft Emulator Servers
    Replies: 15
    Last Post: 06-27-2008, 03:33 AM
  3. Lua script help and general questions from beginner
    By WinKIller0 in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 02-23-2008, 04:38 AM
  4. LUA Boss Script Help
    By neurothymia in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 02-05-2008, 02:57 PM
  5. Need LUA Scripting Help ?
    By Snailz in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 02-04-2008, 12:36 PM
All times are GMT -5. The time now is 02:59 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search