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?
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?
I dont think there is any command for this.
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)
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
Turn that to 1 and anyone who goes AFK leaves world.Code:KickAFKPlayers = "0"
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![]()
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
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.