Wintergrasp Timer

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 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

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.

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.

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.

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.

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.

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.

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.

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.

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.