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 Darkmoone Just curious as to why after the first visit to the Wintergrasp guy it doesn't automatically reset the timer continuously. Great mod though.

After the battle has started, it can last various times, depending how it goes. it can last 5minutes, 20minutes, or the full time. Because we don't know the lenght of the game, it's just better not to restart it.

Originally posted by chaud I haven't had time to test this yet, but going off your description...

Would it be possible to do a global channel, pick it up from the yells, and pick it up from being in the zone? Main problem is the global channel I guess.

From the top of my mind, here are other suggestions to add to the above already suggested:
1) For Defenders - we can issue a check of the Wintergrasp Buff which is Northrend-wide; if the buff disappears while in Northrend, it means the Battle for Wintergrasp has started = some screen announcement "Wintergrasp has begun".
2) When characters are in Northrend, the World Map gets updated with the status of Wintergrasp. If the battle is enraging, Wintergrasp has the Swords-Cross icon. Otherwise, it shows the icon of Horde or Alliance.
- The check could be that, if it is the Swords-Cross Icon, then the add-on will announce "Wintergrasp Battle On-Going".

My suggestions, however, is beyond the "timer" purpose of this add-on. It could aptly be called "Wintergrasp Checker" or "Wintergrasp Announcer". But it will be useful for those who are in Northrend but doesn't want to go out of their way just to check the NPC for timers.

For those who are NOT in Northrend, they can just rely with the Hidden-AddOn-Channel via Guild, Party, and Raid.

Finally, if you are going to add a Global Channel, please have the following options:
1) Set the "Join {Global Channel}" to at least 2 minutes - for players with a LOT of add-ons, the Custom Global Channel will be placed to /1 because WoW's default channels only kicks-in AFTER all Add-Ons has loaded.
2) Set an option to "not to join {Global Channel}" by default.

OR

Maybe you can take advantage of the AceComm global channel which some add-ons use (yes, I am bias, since I have an add-on that uses AceComm )

"Lamhirh, I desire,
more than the flowers blooming on my homeland,
more than the wind blowing through my homeland,
more than the stars shining upon my homeland,
is the sound of your voice...."
- Jint Lynn.

Originally posted by chaud
Would it be possible to do a global channel, pick it up from the yells, and pick it up from being in the zone? Main problem is the global channel I guess.

If you see the yells, you know when the next battle will begin without timers

Originally posted by Laibeus Lord
1) Set the "Join {Global Channel}" to at least 2 minutes - for players with a LOT of add-ons, the Custom Global Channel will be placed to /1 because WoW's default channels only kicks-in AFTER all Add-Ons has loaded.

This, and the having a weird issue of some games not joining the global channel at all were entirely the reasons why I decided not to put the global channel in.

I don't know if it's my server or the addon but the timer seems to be 'off'. For example, when I go to the WG NPC to get the time and then go check again say about an hour or so later... the timer seems to have gone faster (or the servertime slower respectively) by a few minutes.
Of course it updates to the correct time on the WG NPC timer after checking it again but it's kind of odd that the timers aren't going at the same speed apparently so I figured I'd mention it.

Originally posted by chaud No global by default makes global fairly useless, as no one will bother to turn it on. That defeats the whole purpose of the addon IMO.

No, what I meant was, and sorry for the unclear explanation, is an option wherein users have a choice to "turn-off" the global channel and make it the default setting for their own PCs (regardless of characters).

Originally posted by Mikma This, and the having a weird issue of some games not joining the global channel at all were entirely the reasons why I decided not to put the global channel in.

Ah yes. I encountered those not joining the global channel at all. And you also have to code a re-check when zoning (loading screen when entering a new continent or instance). I used to use an add-on where its custom channel kicks in to /1 after zoning.. which was also weird, it was not suppose to happen I think.

"Lamhirh, I desire,
more than the flowers blooming on my homeland,
more than the wind blowing through my homeland,
more than the stars shining upon my homeland,
is the sound of your voice...."
- Jint Lynn.

Originally posted by Civrock I don't know if it's my server or the addon but the timer seems to be 'off'. For example, when I go to the WG NPC to get the time and then go check again say about an hour or so later... the timer seems to have gone faster (or the servertime slower respectively) by a few minutes.
Of course it updates to the correct time on the WG NPC timer after checking it again but it's kind of odd that the timers aren't going at the same speed apparently so I figured I'd mention it.

I'm having a look at this, I saw the same now after long time of idling in Dalaran.

Originally posted by Laibeus Lord Ah yes. I encountered those not joining the global channel at all. And you also have to code a re-check when zoning (loading screen when entering a new continent or instance). I used to use an add-on where its custom channel kicks in to /1 after zoning.. which was also weird, it was not suppose to happen I think.

Yeah I can see the problem with zoning... If you logout while in mid-air, bad things will happen to the channels as they are not set until you land. Say hello to your channel-order

Bugs:
- Under fortress (LDB), the entry for the add-on disappeared
- The Global Channel kicked in to /1 3 out of 5 of my characters.
- (Beta 2 actually) Under fortress, the "Wintergrasp" text doesn't hide if the "Label" option is unchecked (this option is found under Fortress > Wintergrasp).

I hope these are on your plate
Suggestions:
- A way to turn-off the Global Channel (the add-on doesn't attempt to join)
- A way to set how long before the add-on attempts to join the Global Channel. min: 3mins; max: 5mins; or just let the user enter his own value
- Or use AceComm (www.wowace.com) instead of a separate Global Channel (if we're aiming wide use, I'm sure we will encounter a lot of people who doesn't have a channel-space to spare)

I'll be reverting back to Beta2 for now.. the /1 T_T (You know, Blizz should really implement the addon-channel to the global channels, not just to Party/Raid/Guild.)

"Lamhirh, I desire,
more than the flowers blooming on my homeland,
more than the wind blowing through my homeland,
more than the stars shining upon my homeland,
is the sound of your voice...."
- Jint Lynn.

Then you must have *really* slow computer, because I added a 15 second timer that waits until the game enter the channel after login. My superslow PC has 5+ seconds extra time before it joins the channel after login.

- A way to turn-off the Global Channel (the add-on doesn't attempt to join)

Disabling the addon makes this happen.

- A way to set how long before the add-on attempts to join the Global Channel. min: 3mins; max: 5mins; or just let the user enter his own value

In next version.

- Or use AceComm (www.wowace.com) instead of a separate Global Channel (if we're aiming wide use, I'm sure we will encounter a lot of people who doesn't have a channel-space to spare)

There is absolutely 0 chance that I will ever touch ace-libraries again. Sorry.
And the fact that AceComm does the same thing Beta2 did... Useless. It's better to disable/uninstall than disable the feature what I wanted at the first place.

Originally posted by Mikma Then you must have *really* slow computer, because I added a 15 second timer that waits until the game enter the channel after login. My superslow PC has 5+ seconds extra time before it joins the channel after login.

Logging in while on a flight path also delays channel join until landing.

Originally posted by Mikma Disabling the addon makes this happen.

Prepare to be forked :P

It's easy to do... - this is like using globals just because you can. :P

__________________Be nice to nerds, chances are you might end up working for one. -- Charles J. Sykes

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.