Download
(3 Kb)
Download
Updated: 10-31-10 03:13 AM
Pictures
File Info
Updated:10-31-10 03:13 AM
Created:10-08-09 03:21 PM
Downloads:4,519
Favorites:46
MD5:
rTimeToDie
Version: 4.001
by: zork [More]

Intro
Small mod that calculates the time left until a boss is going die.

How?
The mod tracks the health of your current target and calculates the difference in its hp value from the first time seen till now. It then uses the rule of three to calculate (predict) all the other needed values. The longer the timespan, the more accurate will be the numbers. Make sure the "show_time_mobtype" variable is set to the correct value, otherwise you may see nothing. For testing set it to 3 and test on mobs.

Features
- shows time until the target is going to die
- option which mobtypes will be tracked (raidboss, hc boss, all mobs)
- option if dps should be shown

Config
Code:

  --set your mobtype
  --1 = raidboss only
  --2 = raidboss and playerlevel + 3 mobs (hc instance bosses, 83 mobs etc.)
  --3 = show add for every mob available
  local show_time_mobtype = 2
  
  --show dps?
  local show_dps = 1

  --show fight_length
  local show_fightlength = 1
  
  --position
  local anchor = "TOP"
  local posx = 0
  local posy = -50
SVN
http://code.google.com/p/rothui/sour...nk/rTimeToDie/
4.001
- updated the toc file for 4.0.1

005
- added config option to show the fight length

004
- major bugfix for time error that happened when unit was not at 100% health at first time seen

003
- UnitHealthMax bugfix
- comments on mostly anything

002
- added config for dps
- added config for mobtype

001
- initial release
Optional Files (0)


Archived Files (5)
File Name
Version
Size
Author
Date
005
3kB
zork
10-09-09 03:54 PM
004
3kB
zork
10-09-09 03:21 PM
003
3kB
zork
10-09-09 09:53 AM
002
3kB
zork
10-08-09 04:10 PM
001
3kB
zork
10-08-09 03:21 PM


Post A Reply Comment Options
Unread 02-20-12, 04:55 PM  
Mikra
A Kobold Labourer

Forum posts: 1
File comments: 4
Uploads: 0
neverg could you show me, (or post the code) how to only have the actual text of the expected boss kill - with nothing else at all? ie 6mins30secs.

Thanks
Mikra is offline Report comment to moderator  
Reply With Quote
Unread 03-07-11, 06:37 AM  
wakolv
An Aku'mai Servant

Forum posts: 37
File comments: 33
Uploads: 0
DPS

is it possible to show only my DPS on it? if so, can you assist me please im not that good editing lua thanks in advance.
wakolv is offline Report comment to moderator  
Reply With Quote
Unread 11-04-10, 03:25 AM  
Kashouki
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Hi, I really enjoy your addon. I play a healer and I was wondering if it was possible to edit it in such a way that it shows the time to death of your target's target instead of just the target. Thanks.
Kashouki is offline Report comment to moderator  
Reply With Quote
Unread 10-31-10, 11:56 AM  
neverg
A Cobalt Mageweaver
 
neverg's Avatar
AddOn Author - Click to view AddOns

Forum posts: 241
File comments: 334
Uploads: 8
Re: Re: Nice Addon

Originally posted by zork
Well, no.
Fair enough, just a suggestion!

It's always a good principle to apply the rule "divide to conquer", so too much stuff doesn't break your code, like inserting too much bloatware into your frames. That's why I'm thinking if I should do it or simply use your addon for example.
__________________
My oUF Layout: oUF Lumen
Last edited by neverg : 10-31-10 at 11:57 AM.
neverg is offline Report comment to moderator  
Reply With Quote
Unread 10-31-10, 08:14 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1343
File comments: 3310
Uploads: 86
Re: Nice Addon

Well, no.
__________________
| Simple is beautiful.
| Roth UI | Roth UI FAQ | GoogleCode | Zork | TDMOG

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
zork is offline Report comment to moderator  
Reply With Quote
Unread 10-31-10, 06:44 AM  
neverg
A Cobalt Mageweaver
 
neverg's Avatar
AddOn Author - Click to view AddOns

Forum posts: 241
File comments: 334
Uploads: 8
Nice Addon

... again, zork.

I was implementing something like this on oUF_lumen the other day, it worked, used the rule of 3 too to estimate the mob time to die, but because I didn't have any boss to test it, I scratched the future for now.

But writing this post just to say that having this future on your frame would look cooler don't you think? In the target frame.
__________________
My oUF Layout: oUF Lumen
neverg is offline Report comment to moderator  
Reply With Quote
Unread 10-31-10, 05:09 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1343
File comments: 3310
Uploads: 86
Oh yeah, they are. Need to adjust that.
__________________
| Simple is beautiful.
| Roth UI | Roth UI FAQ | GoogleCode | Zork | TDMOG

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Last edited by zork : 10-31-10 at 05:10 AM.
zork is offline Report comment to moderator  
Reply With Quote
Unread 10-31-10, 04:26 AM  
Manaman
An Aku'mai Servant
AddOn Author - Click to view AddOns

Forum posts: 39
File comments: 161
Uploads: 1
Aren't Heroic Bosses = Playerlevel + 2 ?
Manaman is offline Report comment to moderator  
Reply With Quote
Unread 10-31-10, 03:08 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1343
File comments: 3310
Uploads: 86
Oh it does work. You have to read the config.

Code:
  --set your mobtype
  --1 = raidboss only
  --2 = raidboss and playerlevel + 3 mobs (hc instance bosses, 83 mobs etc.)
  --3 = show add for every mob available
  local show_time_mobtype = 2
Change that to 3 and it will appear on every mob. Additionally you can change the number in the toc file to 40000 to make it not show as outdated.
__________________
| Simple is beautiful.
| Roth UI | Roth UI FAQ | GoogleCode | Zork | TDMOG

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
zork is offline Report comment to moderator  
Reply With Quote
Unread 10-31-10, 12:58 AM  
Slaxi81
A Murloc Raider
 
Slaxi81's Avatar
AddOn Author - Click to view AddOns

Forum posts: 6
File comments: 179
Uploads: 2
hey zork,

me again,

planning to update this one? don´t work any more.

perhaps implementet in the new oUF_Diablo targetframes like gallahead a few lines below ?

see ya


slaxi
__________________
Last edited by Slaxi81 : 10-31-10 at 12:58 AM.
Slaxi81 is offline Report comment to moderator  
Reply With Quote
Unread 11-24-09, 04:50 AM  
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view AddOns

Forum posts: 903
File comments: 947
Uploads: 23
I added class colours to make it a little more "readable". Nice work on this, zork. Wish you wouldn't quit WoW.

__________________
Rock: "We're sub-standard DPS. Nerf Paper, Scissors are fine."
Paper: "OMG, WTF, Scissors!"
Scissors: "Rock is OP and Paper are QQers. We need PvP buffs."

"neeh the game wont be remembered as the game who made blizz the most money, it will be remembered as the game who had the most QQ'ers that just couldnt quit the game for some reason..."

Dawn is offline Report comment to moderator  
Reply With Quote
Unread 10-11-09, 04:08 PM  
Gallahead
A Kobold Labourer
 
Gallahead's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 1
File comments: 196
Uploads: 2
spitzen addon, danke!

gibt es eine möglichkeit

1) ausschließlich die zeitangzeige einzufärben? evt sogar automatisch in abhängigkeit zur gesamtkampfzeit?

2) die länge des namens des gegners (statt des ganzen frames) auf eine selbst eingestellte maximale anzahl von buchstaben zu begrenzen um umschöne überlappungen mit anderen ui elementen zu vermeiden?

3) das zeitformat zu verändern? statt "XX Hr YY Min" bsp "XX:YY Hr" und statt "YY Min ZZ Sec" bsp "YY:ZZ Min"

ps: hier noch eine weitere einbaumöglichkeit
__________________
Thinktank UI
Gallahead, Tank since WoW 1.0
Last edited by Gallahead : 10-11-09 at 08:10 PM.
Gallahead is offline Report comment to moderator  
Reply With Quote
Unread 10-09-09, 03:10 PM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1343
File comments: 3310
Uploads: 86
I think I found the last bug that I knew of.

If the unit is not at full health we need to calculate back in time >_<.

There is a time span from |first_time_seen -> current_time| and there is a timespan from |unit_is_at_100% -> first_time_seen|. Currently the last timespan is not subtracted thus the time may be sometimes to far in future if the first_time_seen and the unit_max_hp_value differ to much.
__________________
| Simple is beautiful.
| Roth UI | Roth UI FAQ | GoogleCode | Zork | TDMOG

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
zork is offline Report comment to moderator  
Reply With Quote
Unread 10-09-09, 01:22 PM  
Wimpface
A Molten Giant
 
Wimpface's Avatar
AddOn Author - Click to view AddOns

Forum posts: 631
File comments: 263
Uploads: 23
Originally posted by richerich
Let me guess... You took the code from the original author to TimeToDie and made a small version of it?
Accusations like that are just stupid.

Good work zork, I love the minimalistic addons you throw out to the community.
__________________
All I see is strobe lights blinding me in my hindsight.
Wimpface is offline Report comment to moderator  
Reply With Quote
Unread 10-09-09, 01:19 PM  
Moonwalker
A Kobold Labourer
 
Moonwalker's Avatar

Forum posts: 0
File comments: 20
Uploads: 0
Originally posted by zork
@Moonwalker
This comes into consideration on its own. If the dps increases the timer will go down faster. [/b]
oOoO...lol i'm dumb. you are win zork
Moonwalker is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: