Download
(6Kb)
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:3,982
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.
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.
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: 37
Uploads: 5
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.
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
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: 158
File comments: 281
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?
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.
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: 547
Uploads: 1
Hm i would add an slash command like /wt to see the time ..instead of reload the UI (no one would do that :P)
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: