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,145
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 04-27-09, 05:17 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 Message in Beta17

Originally posted by Ili
...terface\AddOns\WintergraspTimer\WintergraspTimer.lua line 1039:
attempt to perform arithmetic on a nil value
Debug:
[C]: ?
...terface\AddOns\WintergraspTimer\WintergraspTimer.lua:1039:
...terface\AddOns\WintergraspTimer\WintergraspTimer.lua:1037

the Error come´s when Timer is on 0:00 and the Battle starts
Beta17 WintergraspTimer.lua has only 667 lines; would it be possible for you to cut and paste to this form your line 1035-1045?
__________________
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-27-09, 04:06 PM  
Ili
A Kobold Labourer

Forum posts: 0
File comments: 9
Uploads: 0
Error Message in Beta17

...terface\AddOns\WintergraspTimer\WintergraspTimer.lua line 1039:
attempt to perform arithmetic on a nil value
Debug:
[C]: ?
...terface\AddOns\WintergraspTimer\WintergraspTimer.lua:1039:
...terface\AddOns\WintergraspTimer\WintergraspTimer.lua:1037

the Error come´s when Timer is on 0:00 and the Battle starts
Report comment to moderator  
Reply With Quote
Unread 04-27-09, 12:16 PM  
sacrife
An Onyxian Warder
 
sacrife's Avatar
AddOn Author - Click to view AddOns

Forum posts: 384
File comments: 144
Uploads: 3
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.
Last edited by sacrife : 04-27-09 at 12:58 PM.
Report comment to moderator  
Reply With Quote
Unread 04-27-09, 12:02 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 Silh
Just a quick note about GetWintergraspWaitTime() -- it seems to be reliable only when you're in Northrend. I haven't done extensive testing of where it is or isn't right (inside dungeons? battlegrounds?), but have noticed inconsistent results when on other continents. eg. last night after doing a round of battlegrounds while in Ironforge, it was showing 33 minutes for me on the world map display, while for a friend it was reporting 2 hours (while an old version of WintergraspTimer counting by its own method was saying 5 minutes).

One thing I have been thinking of checking out but which I haven't had a chance to yet is whether the correct time stays if one has been in Northrend and then subsequently travel to another continent (it seems like it often does looking at the timer on the world map), vs. if one logs in on another continent without having visited Northrend first.
Originally posted by sacrife
They way I've solved it (for now) in my private addon is that the wintergrasp timer addon only shows the timer if the continent = 4 or the instance is ulduar, naxxramas, eye of eternity or obidian sanctum.

If not the timer just states: N/A.

Also if the timer reaches 0 a timer starts for how long the battle has elapsed.

What I cant figure out however is how to find out which faction controls wintergrasp.

Also, If i'm not in northrend, the timer wont work, but if I manually click the map to wintergrasp the timer works. Any way to secretly always have the northrend map open so the timer will work anywere?
Beta 17 was just an implementation of GetWintergraspWaitTime() into the mod, I am yet to debug or test it under all possible circumstances for the timer.

I have heard that there was a problem with GetWintergraspWaitTime() not being correct under some circumstances.

I have not looked into the problem, but here are my thoughts on what you two have reported:
Basically, you are on another server for the different contents or zone types (Northrend, Azeroth, Eastern Kingdoms, Burning Crusade outside zones, battlegrounds, and instances), so if you are not on the 'home' server for what you are doing (Northrend for this matter), returns like GetWintergraspWaitTime() can be different.
One of you pointed out that it might update to the correct time if you force the Wintergrasp zone to show in the map, it is possible to open the map to a zone with code.

"Also if the timer reaches 0 a timer starts for how long the battle has elapsed." I put that in a few versions ago. It is there to tell you how long the battle has been going on. For example, that would be useful if you get into the battle late, to know if you might get there before it ends. It counts to 30 min, the maximum amount of time Wintergrasp may be. sacrife, do you think this feature is confusing, is that why you stated that?

"If not the timer just states: N/A." N/A is displayed if the mod does not have an accurate time to the next battle, as a default if no data is available.

"What I cant figure out however is how to find out which faction controls wintergrasp." If you are in a Northrend zone, the faction that has the Wintergrasp buff has control of the zone. I have not put in buff scanning, because it is not accurate if you are not in a Northrend zone. One way to see who has control is to look at the Northrend map. There should be the crest of the faction who has control over Wintergrasp on the zone. Or look at the Northrend zone map, and see the color of the buildings. I have not tested if these map features are not available if not in a Northrend zone.

"Also, If i'm not in northrend, the timer wont work, but if I manually click the map to wintergrasp the timer works. Any way to secretly always have the northrend map open so the timer will work anywhere?" That might be fixed by saving GetWintergraspWaitTime() when it is available, and using the cached time there-after.

Thank you for your feedback.
__________________
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-27-09, 11:14 AM  
sacrife
An Onyxian Warder
 
sacrife's Avatar
AddOn Author - Click to view AddOns

Forum posts: 384
File comments: 144
Uploads: 3
They way I've solved it (for now) in my private addon is that the wintergrasp timer addon only shows the timer if the continent = 4 or the instance is ulduar, naxxramas, eye of eternity or obidian sanctum.

If not the timer just states: N/A.

Also if the timer reaches 0 a timer starts for how long the battle has elapsed.

What I cant figure out however is how to find out which faction controls wintergrasp.

Also, If i'm not in northrend, the timer wont work, but if I manually click the map to wintergrasp the timer works. Any way to secretly always have the northrend map open so the timer will work anywere?
Report comment to moderator  
Reply With Quote
Unread 04-27-09, 07:09 AM  
Silh
A Fallenroot Satyr
 
Silh's Avatar
AddOn Author - Click to view AddOns

Forum posts: 20
File comments: 17
Uploads: 2
Just a quick note about GetWintergraspWaitTime() -- it seems to be reliable only when you're in Northrend. I haven't done extensive testing of where it is or isn't right (inside dungeons? battlegrounds?), but have noticed inconsistent results when on other continents. eg. last night after doing a round of battlegrounds while in Ironforge, it was showing 33 minutes for me on the world map display, while for a friend it was reporting 2 hours (while an old version of WintergraspTimer counting by its own method was saying 5 minutes).

One thing I have been thinking of checking out but which I haven't had a chance to yet is whether the correct time stays if one has been in Northrend and then subsequently travel to another continent (it seems like it often does looking at the timer on the world map), vs. if one logs in on another continent without having visited Northrend first.
Last edited by Silh : 04-27-09 at 07:11 AM.
Report comment to moderator  
Reply With Quote
Unread 04-26-09, 05:11 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 echobravo
First off, really nice work on this mod. It is my favorite of its kind. Here are a couple of features I think would make it even better:

1. Sync the time when the next Wintergrasp battle begins between other users of the mod.

2. Specify whether Alliance or Horde will be on offense in the LDB tooltip and display as well as the screen and chat alerts.
There is a new feature in 3.1 that should allow the player to see the Wintergrasp start time from anywhere.

Thank you for the comment on displaying who holds Wintergrasp.
__________________
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-13-09, 04:24 PM  
echobravo
A Kobold Labourer

Forum posts: 1
File comments: 98
Uploads: 0
First off, really nice work on this mod. It is my favorite of its kind. Here are a couple of features I think would make it even better:

1. Sync the time when the next Wintergrasp battle begins between other users of the mod.

2. Specify whether Alliance or Horde will be on offense in the LDB tooltip and display as well as the screen and chat alerts.
Last edited by echobravo : 04-13-09 at 04:25 PM.
Report comment to moderator  
Reply With Quote
Unread 03-29-09, 02:32 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 noblesteel
The scream alert really gets my attention.
I hadn't given it much though till one night at 2:30am while tweaked out on Java Monster energy drink, the "aaahhhhhhhh!" nearly made me poop my pants. After being traumatized, I swore never to use stimulants after 10:00pm and changed SSBM_YoungLink_KO.wav to:
http://www.geocities.com/pjc1959/VikingHorn.wav
Obvisously the way I did it was to change the file name VikingHorn to SSBM_YoungLink_KO and replace it in the Wintergrasp addon folder. I found the sound file at http://www.findsounds.com/

I just wanted to share that for anyone else who over does the caffeine late at night. Next I have to change the "Waa-BoOsh" in Omen and the snare drum in ZOMG Buffs.
The default sound was exactly what I wanted; something that I would not be able to miss. I have it on the todos to easily allow the user to change the sound file, but yet to implement that.

I do have to concur; one night when I had all my other audio turned off, the 'ahhh' scared me, lol. Maybe I should have a warning, 10 seconds before 'ahhh' =P
__________________
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-29-09, 01:20 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 thetakerfan
Not a big deal, but it does annoy my sometimes. The popup frame should be above the LDB block, but currently it covers it up. A nuisance when you're trying to align the frame and such.
I use FuBar to display my LDB feeds and do not have that problem; more information about your problem, a screen shot, the display addon you use, and any other relevant information would help me address whatever it is you are reporting.
__________________
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-20-09, 05:24 PM  
thetakerfan
A Kobold Labourer

Forum posts: 0
File comments: 51
Uploads: 0
Not a big deal, but it does annoy my sometimes. The popup frame should be above the LDB block, but currently it covers it up. A nuisance when you're trying to align the frame and such.
Report comment to moderator  
Reply With Quote
Unread 03-20-09, 03:12 PM  
noblesteel
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
The scream alert really gets my attention.
I hadn't given it much though till one night at 2:30am while tweaked out on Java Monster energy drink, the "aaahhhhhhhh!" nearly made me poop my pants. After being traumatized, I swore never to use stimulants after 10:00pm and changed SSBM_YoungLink_KO.wav to:
http://www.geocities.com/pjc1959/VikingHorn.wav
Obvisously the way I did it was to change the file name VikingHorn to SSBM_YoungLink_KO and replace it in the Wintergrasp addon folder. I found the sound file at http://www.findsounds.com/

I just wanted to share that for anyone else who over does the caffeine late at night. Next I have to change the "Waa-BoOsh" in Omen and the snare drum in ZOMG Buffs.
Last edited by noblesteel : 03-20-09 at 03:13 PM.
Report comment to moderator  
Reply With Quote
Unread 03-12-09, 03:59 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 o_o


That's it, btw the number doesn't seem to be always the same
Thanks for the exact text. I'll take a look at this problem, hopefully it will be ironed out by the next version.
__________________
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-12-09, 10:16 AM  
o_o
A Kobold Labourer

Forum posts: 0
File comments: 40
Uploads: 0


That's it, btw the number doesn't seem to be always the same
Report comment to moderator  
Reply With Quote
Unread 03-11-09, 08:53 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 o_o
When i don't visit the "time npc", the printed timer is totally wrong (print thing like 2kk hour since the start of wg).

Strange, I can post ss if needed
I know of that bug. The part of the mod that either puts "N/A", "In Progress: ", "Begins after: ", or "Begins in: " is where the problem is. Simply, I did some math wrong for the range of how long ago the last WG match started, and it is displaying whatever you had instead of "N/A". The exact text would be helpful. My guess it was "Begins after: " in the front; "Begins after: " is meant the time is estimated within 2 hours and 30 minutes of the last WG start time, so the next battle should come up sometime after the number when it "Begins after: ".

Again, the error you are seeing, it just means that the last time the data was refreshed is out of date, and you need to go back to WG, talk to the right NPC, or have a guildie beam over the correct time.
__________________
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.