Download
(6 Kb)
Download
Updated: 08-08-10 09:31 AM
Pictures
File Info
Updated:08-08-10 09:31 AM
Created:06-28-10 12:08 PM
Downloads:2,477
Favorites:2
MD5:
World BG timer.
Version: 1.4.2
by: Bleckpan [More]
World BG timer is a simple and lightweight addon that will post how many minutes until the next Winter Grasp battle and post the status of the different elements in the Battlegrounds.

This is outdated!


Next update will bring.


  • A frame for Warsong Gulch and Twin Peaks. It will show the flag carriers health and the flag status.
  • A frame for AV that shows the bosses' health.
  • A frame for EotS that will show the status for each base and the health of the flag carrier including the status of the flag.
  • A frame for SotA, showing status of all gates.
  • Two styles for each BG, a map or framed list.


Please post bug reports in the Comments section along with any input you have.

Known Issues
1.4.2----------
Fixed an issue with the AB and EotS frames not showing up.

1.4.0----------
Added a ES frame that has buttons for each base, and the framework for the flag button.
Fixed an issue with how the bases wouldn't get saved properly.
Made the title of the main frame color itself according to who owns WG.

1.3.3----------
Changed the text output
Proper credit goes to Tarumi with help with the text formatting.

1.3.2----------
fixed an issue with the bases in AB

1.3.1----------
Trimmed down the AB frame a small bit.
Updated the config file.

1.3.0----------
Added a AB frame that has buttons for each base.
Trimmed down the size of the WG file.
Added /ab and /AB to hide/show the AB frame.

1.2.2----------
Added a title to the main frame.
Updated config instructions.

1.2.1----------
Fixed an issue with the position of the frame resetting whenever you log out.
Proper credit goes to Xrystal here on wowi for help with the frame resetting.
Added a text file for help with configuration.

1.2.0----------
Created a frame with buttons to push for the current time until Wintergrasp and or the faction that owns Wintergrasp. Kept the slash commands.

1.1.0----------
Added the slash command "/faction" to show who owns WG

1.0.4----------
Fixed slash command problems.
Added more to the text.

1.0.2----------
Added the slash commands "/wt" and "/wintertimer"

1.0.1----------
Initial release.
Archived Files (13)
File Name
Version
Size
Author
Date
1.4.0
6kB
Bleckpan
08-07-10 09:48 AM
1.3.3
4kB
Bleckpan
08-05-10 09:56 AM
1.3.2
4kB
Bleckpan
08-04-10 04:24 PM
1.3.1
4kB
Bleckpan
08-04-10 11:17 AM
1.3.0
3kB
Bleckpan
08-04-10 10:39 AM
1.2.2
3kB
Bleckpan
07-31-10 07:47 AM
1.2.1
2kB
Bleckpan
07-15-10 09:35 AM
1.2.0
1kB
Bleckpan
07-13-10 06:44 PM
1.1.0
3kB
Bleckpan
06-30-10 02:42 PM
1.0.4
1kB
Bleckpan
06-29-10 03:36 PM
1.0.2
973B
Bleckpan
06-28-10 06:06 PM
1.0.2
973B
Bleckpan
06-28-10 04:11 PM
1.0.1
913B
Bleckpan
06-28-10 12:08 PM


Post A Reply Comment Options
Unread 07-19-10, 01:14 PM  
Bleckpan
A Fallenroot Satyr
 
Bleckpan's Avatar
AddOn Author - Click to view AddOns

Forum posts: 22
File comments: 12
Uploads: 4
Thanks, I'll try to get it working in my next big update.
Last edited by Bleckpan : 07-31-10 at 07:56 AM.
Bleckpan is offline Report comment to moderator  
Reply With Quote
Unread 07-19-10, 04:15 AM  
Xubera
A Cobalt Mageweaver
 
Xubera's Avatar
AddOn Author - Click to view AddOns

Forum posts: 207
File comments: 36
Uploads: 8
instead of 83.05 minutes, try showing the seconds

local nw = GetWintergraspWaitTime()
if nw then
local time = string.format("%d:%02d", math.floor(nw/60), nw%60)
else
--WG is in progress
end

pretty much this says someVariable..":"..anotherVariable where someVariable == math.floor(nw/60) and
anotherVariable == nw%60

%d means it expects a integer, so no matter what nw/60 is, we floor the number so its a nice integer.
%02d mean it expects an integer thats atleast 2 digits long and fills in empty space with leading 0s. (i.e %02d will output 54 for input of 54 and output 03 for an input of 3)

so under test conditions where GetWintergraspWaitTime() returns a value of 5229.
nw = 5229
nw/60 = 87.15
math.floor(nw/60) = 87
nw%60 = 9
string.format("%d:%02d", 87, 9) returns 87:09

hope that helps

string.format("%d:%02d:%02d", math.floor(nw/3600), math.floor((nw-(3600*math.floor(nw/3600)))/60), nw%60)

nw = 5229
nw/3600 = 1.4525
math.floor(nw/3600) = 1
(nw - (3600*math.floor(nw/3600)))/60 = (5229 - (3600*1))/60 = 1629/60 = 27.15
math.floor(thatLastFunction) = 27
nw%60 = 9
string.format("%d:%02d:%02d", 1, 27, 9) returns 1:27:09
Last edited by Xubera : 07-20-10 at 10:46 AM.
Xubera is offline Report comment to moderator  
Reply With Quote
Unread 07-14-10, 12:28 PM  
Bleckpan
A Fallenroot Satyr
 
Bleckpan's Avatar
AddOn Author - Click to view AddOns

Forum posts: 22
File comments: 12
Uploads: 4
I haven't gotten a beta key . This is my first addon, so I am trying to figure stuff out little by little, sorry...
__________________
“This is my last message to you: in sorrow, seek happiness.”
― Fyodor Dostoyevsky, The Brothers Karamazov
Bleckpan is offline Report comment to moderator  
Reply With Quote
Unread 07-13-10, 07:02 PM  
Jzar
A Chromatic Dragonspawn
 
Jzar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 157
File comments: 299
Uploads: 5
lol Grats on beta key.

Why don't you just have it SHOW the WG owner and time til next battle in that frame, instead of showing buttons you click to be told that information?
Jzar is offline Report comment to moderator  
Reply With Quote
Unread 06-28-10, 04:20 PM  
Bleckpan
A Fallenroot Satyr
 
Bleckpan's Avatar
AddOn Author - Click to view AddOns

Forum posts: 22
File comments: 12
Uploads: 4
Just added that now, thanks.

Is there anything else you want that would be a quick fix?
Last edited by Bleckpan : 06-28-10 at 04:22 PM.
Bleckpan is offline Report comment to moderator  
Reply With Quote
Unread 06-28-10, 01:56 PM  
hank
A Murloc Raider
 
hank's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 565
Uploads: 8
Hm i would add an slash command like /wt to see the time ..instead of reload the UI (no one would do that :P)
hank is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: