Download
(179Kb)
Download
Updated: 04-28-09 02:11 PM
Pictures
File Info
Updated:04-28-09 02:11 PM
Created:12-19-08 06:06 PM
Downloads:21,121
Favorites:119
MD5:

Wintergrasp Timer  Popular! (More than 5000 hits)

Version: beta18 (defunct)
by: Mike-N-Go [More]

This AddOn is not updated for 4.x.

It will remain
for posterity.


If you are still unabated, please show your support if you want this AddOn updated for 4.x. You can either donate, or show your support on the comments page.


As of May 20, 2009: This addon is unsupported for the time being. AddOn authoring was only a hobby of mine. Mike-N-Go is not currently playing WoW, thus not creating or maintaining mods for WoW. If someone wishes to submit a patch for one of my mods to WoWInterface, you may within the bounds of the license bundled with the mod.


Now with slashcommand-options!
/wgt or /wintergrasptimer [option]
screen - shows announcements on screen
chat - shows announcements in chat
sound - plays warningsound with announcements (Sound file is from Nintendo's (c) Smash Brothers, provided by HelpTheWretched (http://noproblo.dayjo.org/ZeldaSounds/).)
stopwatch - shows stopwatch when less than 5 minutes left
time - prints time left in chat


Note: Ownership of this file has changed to Mike-N-Go from Mikma. He has several new features that should be out soon(tm). The pictures do not necessarily reflect the latest version of the AddOn.

04-28-09 beta18:
+ Fixed GetWintergraspWaitTime() math nil error

04-26-09 beta17:
+ Updated for WoW 3.1
+ First version using GetWintergraspWaitTime(); this allows the user to see the WG start time from anywhere

02-25-09 beat16:
+ Fixed a problem with AceConsole loading
+ Forces the mod to ask and send the latest WG start time when logging in

02-25-09 beta15:
+ Fixed a problem with CTL not properly being enabled by the mod

2-23-09 beta14:
+ Fixed lib embedding
+ Fixed printing to chat frame to use ChatFrame1:AddMessage

2-23-09 beta13:
+ Begun conversion to Ace; note that the addon is not yet fully converted
+ Added ruRU localization; let me know if it works because I cannot test it, also, if it is translated correctly. Thanks ZillahGiovanni and StingerSoft for the initial translation
+ Added Shake() and Flash() to the warnings
+ Added 'In progress' to the LDB feed text if a battle is in progress
+ Added 'Begins after' to the LDB feed text if the last known time of the start of WG is within 3 hours of the current time; this is an estimation of when the next battle will start
+ Added 'Begins in' to the LDB feed text this will tell the user when the next known start time of WG will start
+ Added 'In progress' to the LDB feed text
+ Changed formant of the LDB feed text IE: Begins in: 1h 28m (4:27)
+ Embedded SSBM_YoungLink_KO.wav sound file. File from http://noproblo.dayjo.org/ZeldaSounds/ (c) Nintendo from HelpTheWretched

02-05-09 beta12:
+ Reverted SVPC from beta 11; you should now see WG start time on all characters
+ Added more info to the .toc
+ First update by Mike-N-Go, the new author

beta11:
+ Fixed the 24h clock format
+ Added the bugfix for "general bugginess" Mike-N-Go submitted

01-28-09 beta10:
+ Added the estimated startingtime in LDB and tooltip, thanks to Mike-N-Go
+ Loads Blizzard_TimeManager to eliminate the Stopwatch errors

01-27-09 beta9:
+ Added slashcommands to control some options. try /wgt or /wintergrasptimer.
+ Added announcement support for MSBT
+ Added /stopwatch-support that is being used when there is less than 5min to next battle

beta8:
+ German localization added. thank you dingsbums!

beta7:
+ Now gets the time in Wintergrasp-zone if you happen to fly over!
- Removed debugpring I might have forgotten in broadcast-function

beta6:
+ *Ninjaupdate*
+ Added a "Timerfix" that will try to make the startingtime much more accurate than the default one Blizzards shows us.
+ Now broadcasts the time left in seconds, not the estimated startingtime.

beta5:
- Removed global channel. buh bye!
+ Added Raid, Party and Guild broadcasting back in.
+ Fixed the timer, should be accurate now.

beta4:
- Removed the text "Wintergrasp:" from the broker.
+ Added pretty tooltip when mouseovering the broker.

beta3:
+ Added slashcommand '/wgtreset' and '/wintergrasptimerreset' in case you need to reset the timer.
+ Added shift+leftclick that announces the time in chat editbox.
+ Added shift+rightclick that resets and requests the current time.
+ Changed Raid, Party and Guild broadcast into Global broadcast (Hidden channel).
+ Added NPC yell-capture that adds the remaining time into WGT Broker.

beta2:
+ Added the Horde NPC.
+ When showing the long time, show it in form H:MM instead of H:MM:SS.

beta1:
+ Release.
Optional Files (0)


Post A Reply Comment Options
Unread 07-18-11, 11:48 PM  
Mike-N-Go
A Theradrim Guardian
 
Mike-N-Go's Avatar
AddOn Author - Click to view AddOns

Forum posts: 68
File comments: 147
Uploads: 18
Can anyone confirm or deny if this works in 4.X?

I do not have an active WoW account.
__________________
Currently contemplating coming back to Authorship.. been away for years. Please let me know you care, by commenting on what addon(s) of mine you want to see updated.

Author of Daily Bean Counter, MyNameTogglesWhenIAFKorDND, Extended Shutdown Warning, Auto Mail Director, Duel Nullify, Spec Transmiter, Say Again, Window Teller, Who Crafts, Ad Repeater, Privy Cork, Mac Backup, and more.
Report comment to moderator  
Reply With Quote
Unread 03-04-10, 03:32 AM  
siema_co
A Deviate Faerie Dragon
 
siema_co's Avatar
AddOn Author - Click to view AddOns

Forum posts: 12
File comments: 64
Uploads: 7
Originally posted by tattooedpierre
This mod does still work perfectly in 3.3
Though i find the timer a bit off all the time.
It says that the battle is on when the "real" timer (in wg) says its still 2 mins left.
Report comment to moderator  
Reply With Quote
Unread 01-10-10, 03:49 AM  
tattooedpierre
An Aku'mai Servant
 
tattooedpierre's Avatar
AddOn Author - Click to view AddOns

Forum posts: 38
File comments: 95
Uploads: 4
This mod does still work perfectly in 3.3
Report comment to moderator  
Reply With Quote
Unread 10-11-09, 11:45 AM  
Mike-N-Go
A Theradrim Guardian
 
Mike-N-Go's Avatar
AddOn Author - Click to view AddOns

Forum posts: 68
File comments: 147
Uploads: 18
Originally posted by Paradoxum
does this still work?
I dunno; I last tested it under 3.0.x.

I am not supporting any of my addons at this time, for college is priority.
__________________
Currently contemplating coming back to Authorship.. been away for years. Please let me know you care, by commenting on what addon(s) of mine you want to see updated.

Author of Daily Bean Counter, MyNameTogglesWhenIAFKorDND, Extended Shutdown Warning, Auto Mail Director, Duel Nullify, Spec Transmiter, Say Again, Window Teller, Who Crafts, Ad Repeater, Privy Cork, Mac Backup, and more.
Report comment to moderator  
Reply With Quote
Unread 09-16-09, 09:29 AM  
Paradoxum
A Murloc Raider
AddOn Compiler - Click to view compilations

Forum posts: 4
File comments: 18
Uploads: 1
does this still work?
Report comment to moderator  
Reply With Quote
Unread 05-20-09, 03:53 PM  
Truman
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
...terface\AddOns\WintergraspTimer\WintergraspTimer.lua:418: attempt to call method 'Broadcast' (a nil value)
Count: 1

Call Stack:
[C]: in function `Broadcast'
...terface\AddOns\WintergraspTimer\WintergraspTimer.lua:418: in function <...terface\AddOns\WintergraspTimer\WintergraspTimer.lua:405>
Report comment to moderator  
Reply With Quote
Unread 04-29-09, 06:22 PM  
sacrife
An Onyxian Warder
 
sacrife's Avatar
AddOn Author - Click to view AddOns

Forum posts: 384
File comments: 144
Uploads: 3
Originally posted by Mike-N-Go
Use the find feature at http://www.wowwiki.com/API for 'GetSpell'; I bet one of those functions are would be part of converting the spell id to the localized name.

Contrary to making the mod not work outside of Northrend, I recommend that you save the wait time in a var, and use that var for your timer if not in Northrend.

Edit1: Added part about making the mod working not.
Good idea, wouldnt work when logging in and you were already in another zone then northrend, but it would work when teleporting there. As long as you get back after it's been captured to update it ;p

Update:
This solved it.

Code:
local B=UnitBuff("player","Essence of Wintergrasp")
	if (B=="Essence of Wintergrasp") then
		wgcontrol = "Defending!"
	elseif (zone=="Naxxramas" or zone=="The Obsidian Sanctum" or zone=="The Eye of Eternity") then
		wgcontrol = ""
	else
		wgcontrol = "Attacking!"
	end
You could also make the trigger if (not b==nil) or even if (b) ? (not sure about this one)
Last edited by sacrife : 04-30-09 at 04:43 AM.
Report comment to moderator  
Reply With Quote
Unread 04-29-09, 10:18 AM  
Mike-N-Go
A Theradrim Guardian
 
Mike-N-Go's Avatar
AddOn Author - Click to view AddOns

Forum posts: 68
File comments: 147
Uploads: 18
Re: New error

Originally posted by Xylan Trueheart
This error occured when I clicked on Braedin. Seen by BugGrabber, English client

[2009/04/28 22:51:03-4508-x1]: WintergraspTimer-beta18\WintergraspTimer.lua:418: attempt to call method 'Broadcast' (a nil value)
Fixed, will be in reversion beta19.

Thank you.
__________________
Currently contemplating coming back to Authorship.. been away for years. Please let me know you care, by commenting on what addon(s) of mine you want to see updated.

Author of Daily Bean Counter, MyNameTogglesWhenIAFKorDND, Extended Shutdown Warning, Auto Mail Director, Duel Nullify, Spec Transmiter, Say Again, Window Teller, Who Crafts, Ad Repeater, Privy Cork, Mac Backup, and more.
Report comment to moderator  
Reply With Quote
Unread 04-28-09, 10:02 PM  
Xylan Trueheart
Premium Member
Premium Member

Forum posts: 64
File comments: 166
Uploads: 0
New error

This error occured when I clicked on Braedin. Seen by BugGrabber, English client

[2009/04/28 22:51:03-4508-x1]: WintergraspTimer-beta18\WintergraspTimer.lua:418: attempt to call method 'Broadcast' (a nil value)
Report comment to moderator  
Reply With Quote
Unread 04-28-09, 02:39 PM  
echobravo
A Kobold Labourer

Forum posts: 1
File comments: 98
Uploads: 0
Originally posted by Silh
Just a quick note about GetWintergraspWaitTime() -- it seems to be reliable only when you're in Northrend.
This is the main reason I requested syncing the time with other users of the mod. For example, only broadcast the time for users when they are in Northrend so users on another continent can have an accurate timer reading.

Check out Bang! Wintergrasp 2 for a mod that indicates which faction holds WG.
Report comment to moderator  
Reply With Quote
Unread 04-28-09, 02:14 PM  
Mike-N-Go
A Theradrim Guardian
 
Mike-N-Go's Avatar
AddOn Author - Click to view AddOns

Forum posts: 68
File comments: 147
Uploads: 18
Originally posted by sacrife
Hmm, I dont know how to use the spellid for a check? Could you write the small script for me? (hugs and kisses). I'm actually quite a lua noob.

Also, I dont want my addon to work outside of northrend or within a northrend instance because it's quite unreliable when you are. So I'm satisfied with it only working when you'r in northrend.
Use the find feature at http://www.wowwiki.com/API for 'GetSpell'; I bet one of those functions are would be part of converting the spell id to the localized name.

Contrary to making the mod not work outside of Northrend, I recommend that you save the wait time in a var, and use that var for your timer if not in Northrend.

Edit1: Added part about making the mod working not.
__________________
Currently contemplating coming back to Authorship.. been away for years. Please let me know you care, by commenting on what addon(s) of mine you want to see updated.

Author of Daily Bean Counter, MyNameTogglesWhenIAFKorDND, Extended Shutdown Warning, Auto Mail Director, Duel Nullify, Spec Transmiter, Say Again, Window Teller, Who Crafts, Ad Repeater, Privy Cork, Mac Backup, and more.
Last edited by Mike-N-Go : 04-28-09 at 02:17 PM.
Report comment to moderator  
Reply With Quote
Unread 04-28-09, 02:12 PM  
Mike-N-Go
A Theradrim Guardian
 
Mike-N-Go's Avatar
AddOn Author - Click to view AddOns

Forum posts: 68
File comments: 147
Uploads: 18
Re: Error

Originally posted by Xylan Trueheart
I get this message upon logging in with beta 17 as seen by BugGrabber, English client. I wiped the old version and installed fresh. This error is continous and repeats in BugGrabber until it is disabled.

[2009/04/28 14:07:55-4501-x56]: WintergraspTimer-beta17\WintergraspTimer.lua:520: attempt to perform arithmetic on a nil value
Fixed this nil error in beta18.
__________________
Currently contemplating coming back to Authorship.. been away for years. Please let me know you care, by commenting on what addon(s) of mine you want to see updated.

Author of Daily Bean Counter, MyNameTogglesWhenIAFKorDND, Extended Shutdown Warning, Auto Mail Director, Duel Nullify, Spec Transmiter, Say Again, Window Teller, Who Crafts, Ad Repeater, Privy Cork, Mac Backup, and more.
Report comment to moderator  
Reply With Quote
Unread 04-28-09, 12:13 PM  
Xylan Trueheart
Premium Member
Premium Member

Forum posts: 64
File comments: 166
Uploads: 0
Error

I get this message upon logging in with beta 17 as seen by BugGrabber, English client. I wiped the old version and installed fresh. This error is continous and repeats in BugGrabber until it is disabled.

[2009/04/28 14:07:55-4501-x56]: WintergraspTimer-beta17\WintergraspTimer.lua:520: attempt to perform arithmetic on a nil value
Report comment to moderator  
Reply With Quote
Unread 04-28-09, 01:11 AM  
sacrife
An Onyxian Warder
 
sacrife's Avatar
AddOn Author - Click to view AddOns

Forum posts: 384
File comments: 144
Uploads: 3
Originally posted by Mike-N-Go
Haha.. the name of the mod in that we are making comments on is called "Wintergrasp Timer". I was perplexed why you said you had a private version or something-other.

I have not done too much buff-scanning, but there is a potential problem with using the essence buff to detect what side has WG; if you are not in a zone that does not have said buff, you could get a false-positive.

A way to prevent the false positive is to either scan only when in Northrend, or also scan a player of the opposite faction when the player targets/mouses over them.

On another note, I recommend you use the spell id; it is either 57940 or 58045. As the spell id does not need to be localized, if you do use the buff scanning.
Hmm, I dont know how to use the spellid for a check? Could you write the small script for me? (hugs and kisses). I'm actually quite a lua noob.

Also, I dont want my addon to work outside of northrend or within a northrend instance because it's quite unreliable when you are. So I'm satisfied with it only working when you'r in northrend.
Report comment to moderator  
Reply With Quote
Unread 04-27-09, 05:31 PM  
Mike-N-Go
A Theradrim Guardian
 
Mike-N-Go's Avatar
AddOn Author - Click to view AddOns

Forum posts: 68
File comments: 147
Uploads: 18
Originally posted by sacrife
I'm sorry, but I think you have misunderstood me a little. ;(

I was talking about the functions of my own private wintergrasp timer addon (which is not on wowi). And the N/A, elapsed etc functions are stuff I've implemented myself , I was just stating how it worked.

I tried functions to check the map and check colorrange on different mapbuttons and so on, but to no avail.

Checking the buff is a great idea though.

I could do like.
if(continent == 4 or zone==ulduar, etc ,etc) then
check for the wintergrasp buff, then faction = horde.
else if no wintergrasp buff, then faction = alliance
(not actual code, just an example)


Again, sorry for confusing you :P. That our addons both show N/A and elapsed is just a coincidence. I havent tried your addon, I just made a comment to see if you knew a way to solve the faction controlled problem, and a way to always have wintergrasp map selected if the map isnt up.

*Update*
Code:
for i=1,32 do

	buffname, _, _, _, _, _, _, _, _ = UnitAura("player", i)

		if(buffname == "Essence of Wintergrasp") then
			wgcontrol = true
		else
			wgcontrol = false
		end
end
That code works if i remove the first and last line (remove the for loop), and set it to ("player", 1) instead.

But I cant know for sure that Essence of Wintergrasp always is buff #1.
So thats why I tried to make a for loop.
Any idea's on how to make the loop work?
I didnt get an error, but wgcontrol was never set to true even though I had the buff.
Haha.. the name of the mod in that we are making comments on is called "Wintergrasp Timer". I was perplexed why you said you had a private version or something-other.

I have not done too much buff-scanning, but there is a potential problem with using the essence buff to detect what side has WG; if you are not in a zone that does not have said buff, you could get a false-positive.

A way to prevent the false positive is to either scan only when in Northrend, or also scan a player of the opposite faction when the player targets/mouses over them.

On another note, I recommend you use the spell id; it is either 57940 or 58045. As the spell id does not need to be localized, if you do use the buff scanning.
__________________
Currently contemplating coming back to Authorship.. been away for years. Please let me know you care, by commenting on what addon(s) of mine you want to see updated.

Author of Daily Bean Counter, MyNameTogglesWhenIAFKorDND, Extended Shutdown Warning, Auto Mail Director, Duel Nullify, Spec Transmiter, Say Again, Window Teller, Who Crafts, Ad Repeater, Privy Cork, Mac Backup, and more.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.