Hey, i have no clue on how addons are made or anything to begin with, so im kind of reaching out for anyone who does :D
Ive tried looking for it everywhere, if ive missed it, please direct me to it!
Anyways, with just a small bar (like NECB f.ex) just 1 bar though, all it does is show cooldown untill ur out of combat.
Ofc i got the sct +combat/-combat thing, but im more intressted to know how long untill im out of combat.
This would ofc be for pvp, arena-drinking, rogue/druid restealthing etc. The addon should realize when i get "drawn back" into combat, and then reset.
Another option to this addon could be, showing how long untill ur target is out of combat too. But its when i myself get out of combat im mostly intressted in.
Would this be a hard addon to make? someone wanna give it a go?
e.g. if you kill an opponent in pvp and heal yourself every 3 seconds you will stay in combat forever :)
That's not true.
I'm not sure about the rules for leaving combat, but a few things are certain:
1. They're not documented anywhere
2. Making an addon that checks all the rules (provided we knew what they were) would probably be a lot of work, as I suspect lots of factors need to be tested
1: Being hit by direct damage or the initial cast of non direct damage or a cast (dot ticks reset the timer by themselves, initial cast does)
2: Healing or buffing someone in combat
3: Attacking something
As some of the later poster said, its for PvP/Arena. The "rules" for getting out of combat is easy, unless u get bugged, but then im not asking to get around a game mechanic bugg :D
Im aware of the fact that if u hit a mob that is not flagged by u, and then backoff, u dont get OOC untill the other player killed the mob, or u do it for him.
Heres my thoughts, And this is why im as a "addon-making-dummy" think it sounds easy, compared to What other addons we all seen people create. =D
And to Simplify it even more, make it a rogue addon to begin with, - The Combat timer is only reset by You attacking someone or get attacked.
- The initial spellcast upon you is the resetter, not the dot, or the CC effect. **F.ex anyone who played arena knows that after u eat a full Fear without taking dmg or having dots applied to u, once ur out of the fear, ur OOC.**
Is it that hard to make an addon with a simple 6sec countdown bar (is it 6? easy to find out) that knows when u last attacked/got attacked/Had a spell or heal casted on u/Used a combat effect on someone? Doesnt DoTimer/NECB pretty much do most of it already?
And then, if this works out, it could be worked with more, to work for healers so they know when to drink etc aswell.
I know for a fact any arenarogue who knew about the addon would use it, and i know some addonmakers strive to get their addons used by as many as possible! (that was my motivation speak! is it workin yet? =D)
Not entirely if this will fit the bill, but you could try TimeToDie. It gives a rough estimate of how long until a mob dies. Obviously once a mob dies in your vacinity you'll be flagged as out of combat.
Sheesh, he's verified that he just wants a little bar (drag-placeable) that runs down a 6 second count, and refreshes every time the player gets hit or whatever else keeps you in combat. It's not like this is for something that needs to be deadly accurate, it's more of just a guesstimate.
I'd code it myself, but I'm just starting to get into frames.
Well it sounded cool so I quickly coded it.
It is intended for pvp use only. Especially made for rogues and casters in arena or duels.
What it currently does (detailed):
1) whenever u enter combat the timer starts to count from 5 seconds to 0 (according to wowwiki)
2) the timer will be resetted (again starting at 5) if the following events are fired:
SWING_DAMAGE (someone got damaged by meele)
SWING_MISSED (someone missed, resisted, absorbed, etc. damage by meele)
RANGE_DAMAGE (someone got damaged by range)
RANGE_MISSED (someone missed, resisted, absorbed, etc. damage by range)
SPELL_DAMAGE (someone got damaged by caster)
SPELL_MISSED (someone missed, resisted, absorbed, etc. damage by caster)
SPELL_HEAL (someone got healed by caster)
SPELL_AURA_APPLIED (someone got buffed/debuffed by caster)
SPELL_AURA_DISPELLED (someones buff/debuff got dispelled by caster)
SPELL_AURA_STOLEN (someones buff got stolen by caster)
SPELL_DISPEL_FAILED (caster failed to dispel buff/debuff)
SPELL_PERIODIC_DISPEL_FAILED (caster failed to dispel dot/hot)
but it doesnt reset if:
2.1) neither event destination nor event source is the player (you)
2.2) event destination is player and eventType is SPELL_HEAL (u got healed)
2.3) event destination is player, eventType is SPELL_AURA_APPLIED and event source is friendly unit (u got buffed)