Category: Data Broker
Addon Information
Download Latest Version.
To add favorites please register for a free account. If you already have one you need to login. How do I install this? (FAQ)
Mike-N-Go's Portal Bug Reports Feature Requests
Author:
Version:
beta18
Date:
04-28-2009 04:11 PM
Size:
179.07 Kb
Downloads:
14,963
Favorites:
154
MD5:
Pictures
Click to enlarge
Stopwatch, Chatalert, Screenalert in use.
Click to enlarge
Estimates startingtime + timeleft
Click to enlarge
Unknown time
Wintergrasp Timer   Popular! (More than 5000 hits)
Wintergrasp Timer is a plug-in for Data broker that shows the time when next Wintergrasp battle will begin, now with Russian localization.*

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.


beta16 and prior versions are obsolete with WoW 3.1, update to beta17 or later for compatibility

I added a "Timerfix" in Beta6 which makes Beta6 use a new broadcasting format. Therefore it does NOT work with any previous versions!

What does the "Timerfix" actually do?
It takes the time announced by Blizzard and multiplies it with 1.025, and showing more accurate, real time left before battle begins. Blizzards default goes slower than it actually should (Trust me, I've tested) therefore making all the countdowns end earlier than the actual battle starts.

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

It gets the time by following ways:
• GetWintergraspWaitTime(); a function that allows the player to see the time to Wintergrasp from anywhere.

Reminder! You need some AddOn to display the plugin.
Here's one example:
NinjaPanel

Changes can always be found in the tab Change Log

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

* Russian localization is untested, as the author does not have access to this version of the game; fell free to report the correct translation if something is off.

Note: The pictures do not necessarily reflect the latest version.
  Change Log - Wintergrasp Timer
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 - Wintergrasp Timer
Sorry, there are currently no optional files available.
  Archived Versions - Wintergrasp Timer
File Name
Version
Size
Author
Date
beta17
179kB
Mike-N-Go
04-27-2009 02:43 AM
beta16
179kB
Mike-N-Go
02-25-2009 02:20 PM
beta15
179kB
Mike-N-Go
02-25-2009 01:56 PM
beta14
179kB
Mike-N-Go
02-23-2009 09:32 PM
beta12
8kB
Mike-N-Go
02-07-2009 02:41 AM
beta11
8kB
Mike-N-Go
02-05-2009 07:52 AM
beta10
8kB
Mikma
01-28-2009 09:46 AM
beta9
8kB
Mikma
01-27-2009 07:19 AM
  Comments - Wintergrasp Timer
Post A Reply Comment Options
Old 10-11-2009, 01:45 PM  
Mike-N-Go
An Aku'mai Servant
Interface Author - Click to view interfaces

Forum posts: 36
File comments: 147
Uploads: 19
Quote:
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.
Mike-N-Go is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 09-16-2009, 11:29 AM  
Paradoxum
A Murloc Raider

Forum posts: 4
File comments: 35
Uploads: 1
does this still work?
Paradoxum is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-20-2009, 05:53 PM  
Truman
A Kobold Labourer

Forum posts: 0
File comments: 4
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>
Truman is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-29-2009, 08:22 PM  
sacrife
A Murloc Raider

Forum posts: 9
File comments: 11
Uploads: 0
Quote:
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-2009 at 06:43 AM.
sacrife is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-29-2009, 12:18 PM  
Mike-N-Go
An Aku'mai Servant
Interface Author - Click to view interfaces

Forum posts: 36
File comments: 147
Uploads: 19
Re: New error

Quote:
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.
Mike-N-Go is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-29-2009, 12:02 AM  
Xylan Trueheart
Premium Member
Premium Member

Forum posts: 18
File comments: 91
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)
Xylan Trueheart is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-28-2009, 04:39 PM  
echobravo
A Kobold Labourer

Forum posts: 1
File comments: 98
Uploads: 0
Quote:
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.
echobravo is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-28-2009, 04:14 PM  
Mike-N-Go
An Aku'mai Servant
Interface Author - Click to view interfaces

Forum posts: 36
File comments: 147
Uploads: 19
Quote:
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.

Last edited by Mike-N-Go : 04-28-2009 at 04:17 PM.
Mike-N-Go is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-28-2009, 04:12 PM  
Mike-N-Go
An Aku'mai Servant
Interface Author - Click to view interfaces

Forum posts: 36
File comments: 147
Uploads: 19
Re: Error

Quote:
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.
Mike-N-Go is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-28-2009, 02:13 PM  
Xylan Trueheart
Premium Member
Premium Member

Forum posts: 18
File comments: 91
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
Xylan Trueheart is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-28-2009, 03:11 AM  
sacrife
A Murloc Raider

Forum posts: 9
File comments: 11
Uploads: 0
Quote:
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.
sacrife is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-27-2009, 07:31 PM  
Mike-N-Go
An Aku'mai Servant
Interface Author - Click to view interfaces

Forum posts: 36
File comments: 147
Uploads: 19
Quote:
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.
Mike-N-Go is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-27-2009, 07:17 PM  
Mike-N-Go
An Aku'mai Servant
Interface Author - Click to view interfaces

Forum posts: 36
File comments: 147
Uploads: 19
Re: Error Message in Beta17

Quote:
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?
Mike-N-Go is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-27-2009, 06: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
Ili is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-27-2009, 02:16 PM  
sacrife
A Murloc Raider

Forum posts: 9
File comments: 11
Uploads: 0
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-2009 at 02:58 PM.
sacrife is offline Report comment to moderator   Edit/Delete Message 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.




The Network:
EQInterface | EQ2Interface | LoTROInterface | MMOInterface | War.MMOUI | WoWInterface | VGInterface | Allakhazam | Thottbot | Wowhead | Zam


©2009 MMOUI / ZAM Network
vBulletin - Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.