| Updated: | 10-07-08 09:25 AM |
| Created: | unknown |
| Downloads: | 1,770 |
| Favorites: | 14 |
| MD5: |
![]() |
Comment Options |
|
|
|
|
Longer then that, it was disabled with 2.4.0.
Last edited by Shadowed : 06-05-08 at 11:40 AM.
|
|
|
|
|
|
|
|
I was under the impression that it's possible to talent-inspect enemies in PvP now - did Blizzard disable this?
__________________
SQUEAK. --(The Death of Rats, Terry Pratchett, Soul Music) |
|
|
|
|
|
|
|
Grayhoof: It's located at http://shadowed-wow.googlecode.com/s...alentGuess-1.0 haven't started tagging it since I wanted to test it more.
Waverian: Your code looks fine, except you should remove the self:GetName calls and you only print out "one", so it should look something like. Code:
local TG = LibStub:GetLibrary("TalentGuess-1.0"):Register()
function ProxTalents:OnEnable()
self:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
TG:EnableCollection()
end
function ProxTalents:COMBAT_LOG_EVENT_UNFILTERED(...)
local event, _, src, srcFlags, _, dest, destFlags = select(3, ...)
local castEnemy = band(srcFlags, COMBATLOG_OBJECT_REACTION_HOSTILE) == COMBATLOG_OBJECT_REACTION_HOSTILE
local auraEnemy = band(destFlags, COMBATLOG_OBJECT_REACTION_HOSTILE) == COMBATLOG_OBJECT_REACTION_HOSTILE
local name = ""
if ((event == "SPELL_CAST_START" or event == "SPELL_CAST_SUCCESS") and castEnemy) then
name = src
elseif event == "SPELL_AURA_APPLIED" and auraEnemy then
name = dest
else return
end
local one, two, three = TG:GetTalents(name)
self:Print(string.fromat("%s - %d/%d/%d", name, one or 0, two or 0, three or 0))
end
Last edited by Shadowed : 05-31-08 at 11:59 AM.
|
|
|
|
|
|
|
|
SVN
Nice work on this.
Is this on a SVN somewhere so it can embedded as an external easier?
Last edited by Grayhoof : 05-31-08 at 11:12 AM.
|
|
|
|
|
|
|
|
So I'm failing miserably at something that should be easy. :/
Code:
local TG = LibStub:GetLibrary("TalentGuess-1.0"):Register()
function ProxTalents:OnEnable()
self:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
TG:EnableCollection()
end
function ProxTalents:COMBAT_LOG_EVENT_UNFILTERED(...)
local event, _, src, srcFlags, _, dest, destFlags = select(3, ...)
local castEnemy = band(srcFlags, COMBATLOG_OBJECT_REACTION_HOSTILE) == COMBATLOG_OBJECT_REACTION_HOSTILE
local auraEnemy = band(destFlags, COMBATLOG_OBJECT_REACTION_HOSTILE) == COMBATLOG_OBJECT_REACTION_HOSTILE
local name = ""
if ((event == "SPELL_CAST_START" or event == "SPELL_CAST_SUCCESS") and castEnemy) then
name = self:GetName(src)
elseif event == "SPELL_AURA_APPLIED" and auraEnemy then
name = self:GetName(dest)
else return
end
local one, two, three = TG:GetTalents(name)
self:Print(name.. ": " ..one)
end
function ProxTalents:GetName(name)
local formatted = strmatch(name, "(.+)-(.+)")
if formatted then name = formatted end
return name
end
|
|
|
|
|
|
||
|
A Wyrmkin Dreamwalker
Forum posts: 57
File comments: 96
Uploads: 0
|
![]() |
|
|
|
|
|
|
|
Omg. I hope someone will make this compatible with Proximo and PitBull.
|
|
|
|
![]() |
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.