Download
(3Kb)
Download
Updated: 04-10-07 04:23 PM
Pictures
File Info
Updated:04-10-07 04:23 PM
Created:unknown
Downloads:4,557
Favorites:9
MD5:

AFK Timer

Version: 0.5
by: leethal [More]

AFK Timer

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 (0)


Post A Reply Comment Options
Unread 03-08-09, 08:04 AM  
woggly4
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 14
Uploads: 2
disable lua-errors and it still works with WotLK.

good work!
Report comment to moderator  
Reply With Quote
Unread 04-10-07, 04:17 PM  
leethal
A Wyrmkin Dreamwalker
AddOn Author - Click to view AddOns

Forum posts: 54
File comments: 32
Uploads: 9
A good idea, thanks =)

Edit: The folder used to be named the addon itself, some particular version of the zip probably got messed up.
Last edited by leethal : 04-11-07 at 05:09 AM.
Report comment to moderator  
Reply With Quote
Unread 04-09-07, 12:50 PM  
SaiBork
A Kobold Labourer

Forum posts: 0
File comments: 29
Uploads: 0
2 things,

1. Update the toc file with interface 20003
2. Put the files in a folder called afktimer

Otherwise this looks like a fun addon, thanks for making it *smiles*
Report comment to moderator  
Reply With Quote
Unread 03-28-07, 08:12 AM  
leethal
A Wyrmkin Dreamwalker
AddOn Author - Click to view AddOns

Forum posts: 54
File comments: 32
Uploads: 9
Titan

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.

Thanks =D
Report comment to moderator  
Reply With Quote
Unread 03-28-07, 05:47 AM  
Lombra
A Molten Giant
 
Lombra's Avatar
AddOn Author - Click to view AddOns

Forum posts: 554
File comments: 271
Uploads: 24
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:
Code:
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">
	<Script file="Titanafktell.lua"/>
	<Frame parent="UIParent">
		<Frames>
			<Button name="TitanPanelafktellButton" inherits="TitanPanelComboTemplate" frameStrata="FULLSCREEN" toplevel="true">
				<Scripts>
					<OnLoad>
						if ( TitanPanelButton_OnLoad ) then
							TitanPanelafktellButton_OnLoad();
							TitanPanelButton_OnLoad();
						end
					</OnLoad>
					<OnClick>
						TitanPanelButton_OnClick(arg1);
					</OnClick>
				</Scripts>
			</Button>
		</Frames>
	</Frame>
</Ui>
Code:
## Interface:: 20000
## Title: AFK Tell
## Notes: Tells you how long you've been AFK
## OptionalDeps: Titan
afktell.xml
Titanafktell.xml
I hope it helps.
Report comment to moderator  
Reply With Quote
Unread 03-13-07, 11:11 PM  
leethal
A Wyrmkin Dreamwalker
AddOn Author - Click to view AddOns

Forum posts: 54
File comments: 32
Uploads: 9
Re: ... One Problem!

Bugs, bugs, bugs. I'll have this fixed somewhen today.
Report comment to moderator  
Reply With Quote
Unread 03-13-07, 03:43 PM  
FruitFly
A Kobold Labourer
 
FruitFly's Avatar

Forum posts: 0
File comments: 1
Uploads: 0
Exclamation ... One Problem!

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.
__________________
Beware. I'll Bite.
Last edited by FruitFly : 03-13-07 at 03:45 PM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: