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,238
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 01-25-09, 12:07 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
Hello Mikma,

Great mod! A few suggestions:
1) PlaySound() of something in addition to the 15 and 5 minute warnings
2) Support for scrolling text addons, like MikScrollingBattleText, to display scrolling text in the middle of the screen
3) A 'countdown' that would display from 60 seconds/5 minutes to 0 in big text, like the mod Arena Countdown
4) The hour and minute of when the next battle will start, not just a counter down to the event

Scrolling text implementation:
Code:
frame:SetScript("OnUpdate", function(self, elap)
    timer = WGTime-time()
    elapsed = elapsed + elap
    if elapsed <= updateperiod then return end
        timer = timer - elapsed
        if timer > 0 then
            local hours,minutes,seconds = ConvertSeconds(timer)
            if hours > 0 then output = hours.."h "..minutes.."m"
            elseif minutes > 0 then output = minutes.."m "..seconds.."s"
            else output = seconds.."s"
            end
        else
            output = "N/A"
            WGTime = 0
        end
        if output == "15m 0s" or output == "5m 0s" then 
            print(text4..output) 
			if ( MikSBT and ( not ( MikSBT.IsModDisabled() ) ) ) then
				MikSBT.DisplayMessage(text4..output)
			else
				UIErrorsFrame:AddMessage(text4..output)
			end
			PlaySound'ReadyCheck'
		
        elseif output == "0s" then 
            print(text5)
			if ( MikSBT and ( not ( MikSBT.IsModDisabled() ) ) ) then
				MikSBT.DisplayMessage(text5)
			else
				UIErrorsFrame:AddMessage(text5)
			end
			PlaySound'ReadyCheck'

        end
        WGTbroker.text = output
    elapsed = 0
end)
With how I have coded the output to scrolling text, it will select MikSBT if it is loaded, or the default UIErrorsFrame if not. Fell free to change the sound or use more of the MikSBT API to color the text or whatever.

I recommend these changes because I would sometime miss the quiet announce of the mod.
__________________
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.
Last edited by Mike-N-Go : 01-25-09 at 12:54 PM.
Report comment to moderator  
Reply With Quote
Unread 01-24-09, 06:30 AM  
mikma
A Cyclonian
 
mikma's Avatar
AddOn Author - Click to view AddOns

Forum posts: 45
File comments: 267
Uploads: 23
Originally posted by Internet
Please add in a command to give us the option of enabling or disabling the onscreen time till wintergrasp starts warnings that seem to have been added recently.
There already is. in AddOns menu (before logging in) uncheck the box infront of WintergraspTimer to disable it. I don't see the point why I should disable the warnings, basicly that's the reason why I coded this in the first place.
Report comment to moderator  
Reply With Quote
Unread 01-23-09, 12:55 PM  
Internet
A Kobold Labourer
 
Internet's Avatar

Forum posts: 0
File comments: 7
Uploads: 0
Please add in a command to give us the option of enabling or disabling the onscreen time till wintergrasp starts warnings that seem to have been added recently.
Report comment to moderator  
Reply With Quote
Unread 01-20-09, 07:03 AM  
Stylpe
A Kobold Labourer
 
Stylpe's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 8
Uploads: 1
Great, looking forward to the next update
__________________
Keep violence virtual!
Report comment to moderator  
Reply With Quote
Unread 01-20-09, 05:14 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
Here's an example for retrieving time from within the zone:
Code:
if event == "UPDATE_WORLD_STATES" and GetMapInfo() == "LakeWintergrasp" then
   local _, isactive, waitingtext = GetWorldStateUIInfo(8)
   if isactive == 1 and waitingtext then
      local h, m, s = strmatch(waitingtext, "(%d+):(%d+):(%d+)")
      ...
   end
end
You really can't rely on GetMapInfo() if you do a quick visits in Wintergrasp. I found a area that was showing Icecrown as zone and still did show the timer on screen. So I just check if the timer is being shown in AlwaysUpFrame2 instead. Seems to work no matter what the GetMapInfo() returns.
Report comment to moderator  
Reply With Quote
Unread 01-20-09, 05:12 AM  
totalpackage
A Fallenroot Satyr
 
totalpackage's Avatar
AddOn Author - Click to view AddOns

Forum posts: 27
File comments: 940
Uploads: 10
Here's an example for retrieving time from within the zone:
Code:
if event == "UPDATE_WORLD_STATES" and GetMapInfo() == "LakeWintergrasp" then
   local _, isactive, waitingtext = GetWorldStateUIInfo(8)
   if isactive == 1 and waitingtext then
      local h, m, s = strmatch(waitingtext, "(%d+):(%d+):(%d+)")
      ...
   end
end
Report comment to moderator  
Reply With Quote
Unread 01-20-09, 04:07 AM  
mikma
A Cyclonian
 
mikma's Avatar
AddOn Author - Click to view AddOns

Forum posts: 45
File comments: 267
Uploads: 23
Originally posted by Stylpe
But you didn't add support for grabbing the time from the on-screen timer when you're in the zone, though? I often swoop in and out of the zone when I'm flying for example from Dalaran to Sholazar.
Not yet. The code I got provided doesn't do a very good job if there's a fight going on, so I need to find a better way.
Report comment to moderator  
Reply With Quote
Unread 01-19-09, 11:06 PM  
Stylpe
A Kobold Labourer
 
Stylpe's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 8
Uploads: 1
But you didn't add support for grabbing the time from the on-screen timer when you're in the zone, though? I often swoop in and out of the zone when I'm flying for example from Dalaran to Sholazar.
__________________
Keep violence virtual!
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
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-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, 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-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-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, 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
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.