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,231
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 12-28-08, 10:13 AM  
mikma
A Cyclonian
 
mikma's Avatar
AddOn Author - Click to view AddOns

Forum posts: 45
File comments: 267
Uploads: 23
Originally posted by Gnarfoz
Logging in while on a flight path also delays channel join until landing.
This leads to my previous comment
Originally posted by Mikma
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
Prepare to be forked :P
It's easy to do... - this is like using globals just because you can. :P
The joys of allowing other people to upload patches. It's there, go go

Meanwhile, it takes me time to get this the way all possible users want. Some people like global channel, others hate it. I haven't coded any blizz-GUI stuff so options might take time too.
Last edited by mikma : 12-28-08 at 10:16 AM.
Report comment to moderator  
Reply With Quote
Unread 12-28-08, 04:05 PM  
mikma
A Cyclonian
 
mikma's Avatar
AddOn Author - Click to view AddOns

Forum posts: 45
File comments: 267
Uploads: 23
Global channel is gone, Timer is fixed. In next version I was thinking of adding the support for the default /stopwatch blizz added.
Report comment to moderator  
Reply With Quote
Unread 12-28-08, 06:26 PM  
Civrock
A Murloc Raider
 
Civrock's Avatar

Forum posts: 4
File comments: 59
Uploads: 0
Timer still appears to have the same issue.
Report comment to moderator  
Reply With Quote
Unread 12-28-08, 08:57 PM  
mikma
A Cyclonian
 
mikma's Avatar
AddOn Author - Click to view AddOns

Forum posts: 45
File comments: 267
Uploads: 23
That's not addon's bug. The time given by the npc's goes slower than it should.

you can see it by yourself if you add same time than WGT has in /stopwatch...
I tested this myself and there's absolutely nothing I can do about it.
/stopwatch 50:00 and press start when WGT's timer hit's 50mins. You'll notice the times go hand by hand and both of them are off at the end.
Report comment to moderator  
Reply With Quote
Unread 12-29-08, 02:29 AM  
Mynd
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 3
Uploads: 1
I wanted the addon to pick up the time from the world info while in wintergrasp. Feel free to patch this in if you want. I have it limited to doing an update based on a changed world state no more often than every 10 seconds, feel free to tweak that however you like.

Code:
lastUpdate = nil
frame:RegisterEvent("UPDATE_WORLD_STATES")
Code:
    elseif event == "UPDATE_WORLD_STATES" then
    	local rightNow = time()
        if lastUpdate == nil or lastUpdate + 10 < rightNow then
           local mapName = select(1,GetMapInfo())
           if mapName == "LakeWintergrasp" then
               local worldState = select(3,GetWorldStateUIInfo(8))
               if worldState ~= nil then
                  local check = worldState:match("....")
                  if check == "Next" then
                     local timeString = worldState:match("%d:%d%d:%d%d")
                     if timeString ~= nil then
                        local h,m,s = string.split(":",timeString)
                        WGT = rightNow + h*3600+m*60+s
                        broadcast()
                     end
                  end
               end
           end
           lastUpdate = rightNow
        end
I'm not sure if this a bug that always exists, or is only caused by my changes but I also had to put some nil checks in to chat_msg_addon because it was script erroring under certain circumstances.

Code:
    elseif event == "CHAT_MSG_ADDON" then
        local prefix,message = ...
        if prefix == "WGT" then
            if message == "timerequest" then
                if WGT ~= nil and WGT > 0 then
                   broadcast()
                end
	    else
                if WGT ~= nil and WGT == 0 then
                   WGT = message
                end
           end
        end
Last edited by Mynd : 01-05-09 at 12:18 AM.
Report comment to moderator  
Reply With Quote
Unread 12-29-08, 03:26 AM  
troguspompeius
A Kobold Labourer

Forum posts: 0
File comments: 24
Uploads: 0
Would it be possible to support other languages?
Report comment to moderator  
Reply With Quote
Unread 12-29-08, 08:18 PM  
mikma
A Cyclonian
 
mikma's Avatar
AddOn Author - Click to view AddOns

Forum posts: 45
File comments: 267
Uploads: 23
Originally posted by troguspompeius
Would it be possible to support other languages?
Most likely, but because I only know two languages, and one of them is English, I can't do it myself.
Report comment to moderator  
Reply With Quote
Unread 01-05-09, 12:36 PM  
troguspompeius
A Kobold Labourer

Forum posts: 0
File comments: 24
Uploads: 0
I don't know much on .lua Coding, but maybe these informations are usefull for you:


German Client

Zone: Lake Wintergrasp = Tausendwintersee

NPC's:

Alliance: Arkanist Braedin
Horde: Magister Surdiel
Report comment to moderator  
Reply With Quote
Unread 01-07-09, 06:50 AM  
Internet
A Kobold Labourer
 
Internet's Avatar

Forum posts: 0
File comments: 7
Uploads: 0
I'd be nice if this mod worked with Fubar, or had some sort of slash command to check the time on wintergrasp.
Last edited by Internet : 01-07-09 at 07:06 AM.
Report comment to moderator  
Reply With Quote
Unread 01-07-09, 11:44 AM  
xeross
An Aku'mai Servant
 
xeross's Avatar
AddOn Author - Click to view AddOns

Forum posts: 35
File comments: 37
Uploads: 2
I'd be nice if this mod worked with Fubar, or had some sort of slash command to check the time on wintergrasp.
Use broker2fubar.

Also this aint working with the
Next Battle:
display in wintergrasp when is that gonna be supported ?

Regards, Xeross

Edit: someone provided the patch for the world state, is it going to be implemented ?
Last edited by xeross : 01-07-09 at 11:47 AM.
Report comment to moderator  
Reply With Quote
Unread 01-07-09, 03:00 PM  
mikma
A Cyclonian
 
mikma's Avatar
AddOn Author - Click to view AddOns

Forum posts: 45
File comments: 267
Uploads: 23
Planned features:
- Grab time in Wintergrasp ('patch' submitted, needs good testing)
- Make NPC yells overwrite any user-submitted data (code exists)
- Option to use the ingame stopwatch (code exists, option missing)
Last edited by mikma : 01-07-09 at 03:04 PM.
Report comment to moderator  
Reply With Quote
Unread 01-18-09, 12:42 AM  
totalpackage
A Fallenroot Satyr
 
totalpackage's Avatar
AddOn Author - Click to view AddOns

Forum posts: 27
File comments: 940
Uploads: 10
I was planning to make my mod sync timers with this mod; however, I notice that the time being synced by this mod is based on time(). According to the wowwiki's description of this function, it depends on the end user's system. If this is true, I suggest just syncing the time remaining instead of the end time.
Report comment to moderator  
Reply With Quote
Unread 01-18-09, 05:28 AM  
mikma
A Cyclonian
 
mikma's Avatar
AddOn Author - Click to view AddOns

Forum posts: 45
File comments: 267
Uploads: 23
Originally posted by totalpackage
I was planning to make my mod sync timers with this mod; however, I notice that the time being synced by this mod is based on time(). According to the wowwiki's description of this function, it depends on the end user's system. If this is true, I suggest just syncing the time remaining instead of the end time.
*EDIT*: Yeah, I'll change the broadcast to be time left. Still, the time saved needs to be in "estimated"-form so I don't have to change the SV with every OnUpdate.
Last edited by mikma : 01-18-09 at 06:05 AM.
Report comment to moderator  
Reply With Quote
Unread 01-18-09, 01:28 PM  
mikma
A Cyclonian
 
mikma's Avatar
AddOn Author - Click to view AddOns

Forum posts: 45
File comments: 267
Uploads: 23
After spending some time zoned in Wintergrasp, waiting for the battle to start, I had some time to play with the timer. Thing I noticed was the ingame /stopwatch goes as it should, and the time displayed in the zone/ by npc's in Dalaran goes slower.
I started comparing the times at 14m 30s left, and when the /stopwatch was about to run out (00:03), the Wintergrasp event-timer turned 00:25. So with quick math, I'm now multiplying the value returned from NPC's by 1.025 -> The *REAL* lenght for the next battle is 2h 33m 45s! I'll see what happens when my timer gets near 0, is it any closer to the time announced by NPC's or not.
Report comment to moderator  
Reply With Quote
Unread 01-19-09, 05:11 PM  
Tuhljin
A Flamescale Wyrmkin
 
Tuhljin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 106
File comments: 233
Uploads: 10
You know, I noticed the same sort of problem when I was writing the addon Intel back in BC days: The Spirit Towers timer just plain counts down slower than a real clock ought to do so!
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.