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,165
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 02-11-09, 01:40 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 ZillahGiovanni
Great addon, but not have russian translation 8(
I can help, but i'm don't know what strings need ingame translation, and what need "sounds like" translation. If U comment string variables i'm correct translation.
For begin:

NPC1 = "Чародей Брэдин" --in game name
NPC2 = "Магистр Сурдиэль" --in game name
text1 = "Битва за Озеро Ледяных Оков начнется через 15 минут" --sounds like
text2 = "Битва за Озеро Ледяных Оков начнется через 5 минут" --sounds like
text3 = "Битва за Озеро Ледяных Оков начнется через: " --sounds like
text4 = "Wintergrasp Timer: Битва за Озеро Ледяных Оков начнется через " --sounds like
text5 = "Wintergrasp Timer: Битва за Озеро Ледяных Оков началась!" --sounds like
text6 = "Wintergrasp Timer: Resetting and requesting time"
text7 = "Следующая битва:" --sounds like
text8 = "Wintergrasp Timer:"
tooltip1 = "Fixed Time:"
tooltip2 = "Blizzard Time:"
tooltip3 = "Shift+LeftButton"
tooltip4 = "Announce the time in chat input."
tooltip5 = "Shift+RightButton"
tooltip6 = "Reset and request known time."
tooltip7 = "Time when battle will start at: " --Added by MikeNGo
chatprint1 = "screen (shows announcements on screen) = "
chatprint2 = "chat (shows announcements in chat) = "
chatprint3 = "sound (plays warningsound with announcements) = "
chatprint4 = "stopwatch (shows stopwatch when less than 5 minutes left) = "
chatprint5 = "time (prints time left in chat)"

/sorry for my english
Thanks for the translation, I'll add it when I get around to it, like in a week. I have plans to renovate this addon and ace it up. There are a few of the translations, like the name of the shouting NPC, that need to be exactly correct, so, after I add this localization, please let me know if it works correctly or not.
__________________
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 02-09-09, 11:36 PM  
ZillahGiovanni
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Great addon, but not have russian translation 8(
I can help, but i'm don't know what strings need ingame translation, and what need "sounds like" translation. If U comment string variables i'm correct translation.
For begin:

NPC1 = "Чародей Брэдин" --in game name
NPC2 = "Магистр Сурдиэль" --in game name
text1 = "Битва за Озеро Ледяных Оков начнется через 15 минут" --sounds like
text2 = "Битва за Озеро Ледяных Оков начнется через 5 минут" --sounds like
text3 = "Битва за Озеро Ледяных Оков начнется через: " --sounds like
text4 = "Wintergrasp Timer: Битва за Озеро Ледяных Оков начнется через " --sounds like
text5 = "Wintergrasp Timer: Битва за Озеро Ледяных Оков началась!" --sounds like
text6 = "Wintergrasp Timer: Resetting and requesting time"
text7 = "Следующая битва:" --sounds like
text8 = "Wintergrasp Timer:"
tooltip1 = "Fixed Time:"
tooltip2 = "Blizzard Time:"
tooltip3 = "Shift+LeftButton"
tooltip4 = "Announce the time in chat input."
tooltip5 = "Shift+RightButton"
tooltip6 = "Reset and request known time."
tooltip7 = "Time when battle will start at: " --Added by MikeNGo
chatprint1 = "screen (shows announcements on screen) = "
chatprint2 = "chat (shows announcements in chat) = "
chatprint3 = "sound (plays warningsound with announcements) = "
chatprint4 = "stopwatch (shows stopwatch when less than 5 minutes left) = "
chatprint5 = "time (prints time left in chat)"

/sorry for my english
Last edited by ZillahGiovanni : 02-09-09 at 11:37 PM.
Report comment to moderator  
Reply With Quote
Unread 02-07-09, 02:42 AM  
Niightblade
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 21
File comments: 67
Uploads: 3
Re: Re: A bit more moddy

Originally posted by Mikma
Actually, I changed the announce-times not to have the server/local time in it. Too confusing.
How about an option to enable/disable it?
Report comment to moderator  
Reply With Quote
Unread 02-06-09, 08:58 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
Change of Ownership

Since I have had all kinds of ideas and all mikma wants in this mod is the timer countdown, he has passed ownership of the file to me, and I'll be developing it.

Mikma has plans to make an extremely light version of the mod, so be looking for that as time passes.
__________________
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 02-06-09, 05:14 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: Readout change

Originally posted by Niightblade
Mind changing it to look like this?:
Battle of Wintergrasp starts in: 26m 2s (6:25pm)

Makes more sense than the current readout imho
I think this would be a good to try this display style in the broker text.
__________________
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 02-06-09, 03:44 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 Mikma
This I didn't even think off. Might need to change it to SVPC actually
No need to do per char, as then we would have to update it manually for each character... Add code like this to PLAYER_ENTERING_WORLD event:
Code:
realmName = GetCVar("realmName");
And save WGTime to a table and use the time like this:
Code:
myTable[realmName] = WGTime
I would recommend to use a table to for the SV, AND have the number var WGTime for the current server.

This suggestion is not as simple/easy as SVPC, but it is more dynamic in that the user does not have to update the time on each character, because they might not be in an addon channel that another user of this addon has.

This leads to another possible feature: Showing of WG start times on other server. Though most players likely do not have high levels on different servers, so not the most useful feature.

Originally posted by Mikma

Now, Bossmods and Omen use the bordercoloring too. This might be the reason why it's propably not a good idea to color it at all :P will be confusing and near epileptic.
Check out Omen:Flash(), Omen:Warn(), and Omen:Shake(). It is an easy way to do shaking/flashing of the screen. And about confusion. Just add a check if the player is not in combat when you use one of the alert features. As far as I remember, Omen/Bossmods only do stuff in combat =]; so it would be fine IMO if your mod flashed the screen out of combat.
__________________
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 02-06-09, 07:49 AM  
Kartun
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 7
Uploads: 2
Battle in progress

While battle in progress addon show "N/A", but imo it's a bit annoying. Also if someone ask about WG you have to stop battle and answer manually. So I've modded it such way :
Code:
text12 = "Time Remaining:";
local vehicles1, vehicles2
...
elseif event == "UPDATE_WORLD_STATES" then
	local timeString = ""; local insideWG = false;
        if AlwaysUpFrame3 and AlwaysUpFrame3:IsShown() and AlwaysUpFrame3Text:GetText():match(text12) then
	 -- Battle in progress. We can accure number of Vehicles
	    vehicles1 = AlwaysUpFrame1Text:GetText():match("%d*/%d*"); vehicles2 = AlwaysUpFrame2Text:GetText():match("%d*/%d*"); 
	    timeString = AlwaysUpFrame3Text:GetText():match("%d%d:%d%d"); insideWG = true; inProgress = 1; timeString = "0:"..timeString;
    	     end
	elseif AlwaysUpFrame2 and AlwaysUpFrame2:IsShown() and AlwaysUpFrame2Text:GetText():match(text7) and WGTime == 0 then
            timeString = AlwaysUpFrame2Text:GetText():match("%d:%d%d:%d%d"); insideWG = true; inProgress = 0; print("a1");	    
	    controlDetection();
	end
Last edited by Kartun : 02-06-09 at 07:51 AM.
Report comment to moderator  
Reply With Quote
Unread 02-06-09, 07:21 AM  
mikma
A Cyclonian
 
mikma's Avatar
AddOn Author - Click to view AddOns

Forum posts: 45
File comments: 267
Uploads: 23
Re: A bit more moddy

Originally posted by Kartun
On our server I've to announce LFM, so I've to make a small mod to simplify this.
------------------------------------
And I'm still missing "control detection" feature, because most pvp players reside in SW/IF and don't have a Wintergrasp buff, so I make it such way.
Your code is weird, and I don't see the idea of detecting the control. :P

Originally posted by Niightblade
Mind changing it to look like this?:
Battle of Wintergrasp starts in: 26m 2s (6:25pm)

Makes more sense than the current readout imho
Actually, I changed the announce-times not to have the server/local time in it. Too confusing.
Last edited by mikma : 02-06-09 at 07:29 AM.
Report comment to moderator  
Reply With Quote
Unread 02-06-09, 05:09 AM  
Kartun
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 7
Uploads: 2
A bit more moddy

On our server I've to announce LFM, so I've to make a small mod to simplify this.

------------------------------------
Code:
    text10 = "LFM WG."
    text11 = ".Whisper for inv, or type inv here";
    .....
OnClick = function(self, button)
    .....
	if IsAltKeyDown() then
	    if button == "LeftButton" and WGTime > 0 then
                ChatFrameEditBox:Show()
                ChatFrameEditBox:SetText(text10..text3..output..side..text11)
	    end
	end
------------------------------------
And I'm still missing "control detection" feature, because most pvp players reside in SW/IF and don't have a Wintergrasp buff, so I make it such way.

Code:
local bSide = -1;
local side = "UNKNOWN";
local detection_control = 0;
...
local function controlDetection()
  if (detection_control - time() <= 0)  then
	bSide = -1;
	-- Run detection once in 5 mins ... to save resources
	detection_control = time() + 300;
	-- Contol detection --
	local buffs, i = { }, 1;
	local buff = UnitBuff("player", i);
	side = "Enemy";
	while buff do          
	  buffs[#buffs + 1] = buff;
	  if (buffs[i] == "Essence of Wintergrasp") then side = UnitFactionGroup("player"); break; end
	  i = i + 1;
	  buff = UnitBuff("player", i);
	end;
	if (side == "Alliance" ) then bSide = 0 else bSide = 1 end;
	side = " ("..side .. " controlled)";
	----------------------	
   end
end
Last edited by Kartun : 02-06-09 at 05:20 AM.
Report comment to moderator  
Reply With Quote
Unread 02-06-09, 01:01 AM  
Niightblade
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 21
File comments: 67
Uploads: 3
Lightbulb Readout change

Mind changing it to look like this?:
Battle of Wintergrasp starts in: 26m 2s (6:25pm)

Makes more sense than the current readout imho
Report comment to moderator  
Reply With Quote
Unread 02-05-09, 06:44 AM  
mikma
A Cyclonian
 
mikma's Avatar
AddOn Author - Click to view AddOns

Forum posts: 45
File comments: 267
Uploads: 23
Originally posted by Mike-N-Go
Shouldn't the WGTime var be per server? How I see it is currently set up may cause conflict if the player uses the mod to keep track of more then one server WG start time.
This I didn't even think off. Might need to change it to SVPC actually

Originally posted by Mike-N-Go
And another: When the time for Wintergrasp is within 5 minutes or less, color the border of the screen with a color.
Now, Bossmods and Omen use the bordercoloring too. This might be the reason why it's propably not a good idea to color it at all :P will be confusing and near epileptic.
Last edited by mikma : 02-05-09 at 06:48 AM.
Report comment to moderator  
Reply With Quote
Unread 02-05-09, 01:10 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
An error causing general bugginess (IE LDB feed not refreshing/frozen, spam from the mod, etc)
Code:
Date: 2009-02-05 00:00:00
ID: 56
Error occured in: Global
Count: ∞
Message: ...terface\AddOns\WintergraspTimer\WintergraspTimer.lua line 140:
   attempt to compare number with string
Debug:
   [C]: ?
   ...terface\AddOns\WintergraspTimer\WintergraspTimer.lua:140: ConvertSecondsToHourMinute()
   ...terface\AddOns\WintergraspTimer\WintergraspTimer.lua:206:
      ...terface\AddOns\WintergraspTimer\WintergraspTimer.lua:152
This should fix the problem:
Code:
    elseif tonumber(minutes) > 0 then return 0,minutes,seconds
Edit: No such thing as 'tonumer'..
__________________
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 : 02-06-09 at 03:45 PM.
Report comment to moderator  
Reply With Quote
Unread 02-04-09, 06:12 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
Shouldn't the WGTime var be per server? How I see it is currently set up may cause conflict if the player uses the mod to keep track of more then one server WG start 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
Unread 02-04-09, 04:08 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
And another: When the time for Wintergrasp is within 5 minutes or less, color the border of the screen with a color.
__________________
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 02-04-09, 12:37 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 Mikma
Some of Mike-N-Go's ideas are actually good, so I'll have a go when I get the time for it
Thanks . And when can I start charging you for my ideas? (jk)
__________________
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.