Note: Some addons use whispers to communicate, and those addons screwed up AfkTimer. I temporarly disabled the whispering functionality to avoid this. Update to the latest version if you're having troubles with this addon wildly whispering random people.
Keeps track of afk status. Does this:
Shows a small timer frame for how long you've been afk
Tells you how long you've been afk and at what time you went afk when you return from afk
If someone whispers you while you're afk, they'll get a whisper in return telling the whisperer how long you've been afk.
Use the normal /afk command as usual. 'tis localized to french too.
Optional Files - AFK Timer
Sorry, there are currently no optional files available.
Yay. I'll try to do something sensible with this. Perhaps it's possible to integrate directly, without any duplicated code (I don't like duplicated code). I'll take a look at what titan has to offer.
I saw on Curse that a Titan plugin was on the todo list. That's great! I actually tried to make one myself, but my experience was limited to copy-from-another-plugin-and-change-variable-names
(my thought was that it'd display the timer and the time you went afk)
Feel free to use it:
this was when it was called "AFK Tell" btw, so you'll have to change that..
Code:
TITAN_AFKTELL_ID = "afktell"
function TitanPanelafktellButton_OnLoad()
this.registry = {
id = TITAN_AFKTELL_ID,
menuText = "AFKTell",
category = "Interface",
buttonTextFunction = "TitanPanelafktellButton_GetButtonText",
tooltipTitle = "AFKTell",
tooltipTextFunction = "TitanPanelafktellButton_GetTooltipText",
frequency = 1,
icon = "Interface\\Icons\\Spell_Nature_TimeStop",
iconWidth = 16,
savedVariables = {
ShowIcon = 1,
}
}
end
function TitanPanelafktellButton_GetButtonText(id)
-- really just guessed here
local minutes, seconds = afktell:ParseSeconds(num)
return minutes..":"..seconds;
end
function TitanPanelafktellButton_GetTooltipText()
-- same here..
return afktell_GetTooltipText()
end
function TitanPanelRightClickMenu_PrepareafktellMenu()
TitanPanelRightClickMenu_AddTitle(TitanPlugins[TITAN_AFKTELL_ID].menuText)
TitanPanelRightClickMenu_AddCommand("Toggle GUI", TITAN_AFKTELL_ID, "afktell_ToggleGUI") -- a couple of functions I added
TitanPanelRightClickMenu_AddCommand("Lock GUI", TITAN_AFKTELL_ID, "afktell_ToggleGUILock")
TitanPanelRightClickMenu_AddSpacer()
TitanPanelRightClickMenu_AddToggleIcon(TITAN_AFKTELL_ID)
TitanPanelRightClickMenu_AddCommand(TITAN_PANEL_MENU_HIDE, TITAN_AFKTELL_ID, TITAN_PANEL_MENU_FUNC_HIDE)
end
I'd suppose you'll know what the xml and toc should look like but wth:
Erm, Well, the mod works great.. except when someone msgs you.. bcus when they do, it does send a tell back to them letting them know you are AFK and for how long you've been AFK. BUT! it doesn't stop... it keeps sends them a tell everytime the second changes . SOo you end up with a chat window full of "I'm AFK for x amount of time"'s.