Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(13 Kb)
Download
Updated: 10-07-08 09:25 AM
Updated:10-07-08 09:25 AM
Created:unknown
Downloads:2,335
Favorites:13
MD5:
LibTalentGuess-1.0
Version: r940
by: Shadowed [More]
This is a work in progress, and is for trying to figure out enemy talents using the spells used, or buffs gained/active, the API is a little bit odd right now and will probably be cleaned up later on.

Accuracy depends on spec, for example SL/SL Warlocks can be figured out to at least 21/31/0, but a Shadowstep Rogue would only be to 0/0/41, some of this is due to limitations in how we currently record events and will be improved as time goes on.

API can be found at http://www.wowwiki.com/TalentGuess

Optional Files (0)


Post A Reply Comment Options
Unread 06-05-08, 11:40 AM  
Shadowed
...
WoWInterface Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 387
File comments: 2511
Uploads: 99
Longer then that, it was disabled with 2.4.0.
Last edited by Shadowed : 06-05-08 at 11:40 AM.
Shadowed is offline Report comment to moderator  
Reply With Quote
Unread 06-05-08, 07:55 AM  
Sarkan-ZdC
A Wyrmkin Dreamwalker

Forum posts: 57
File comments: 96
Uploads: 0
Originally posted by KnThrak
I was under the impression that it's possible to talent-inspect enemies in PvP now - did Blizzard disable this?
Yes, got disabled few weeks ago
Sarkan-ZdC is offline Report comment to moderator  
Reply With Quote
Unread 06-05-08, 04:43 AM  
Carighan
A Defias Bandit
 
Carighan's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 96
Uploads: 2
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)
Carighan is offline Report comment to moderator  
Reply With Quote
Unread 05-31-08, 11:56 AM  
Shadowed
...
WoWInterface Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 387
File comments: 2511
Uploads: 99
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.
Shadowed is offline Report comment to moderator  
Reply With Quote
Unread 05-31-08, 11:03 AM  
Grayhoof
A Wyrmkin Dreamwalker
AddOn Author - Click to view AddOns

Forum posts: 54
File comments: 146
Uploads: 18
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.
Grayhoof is offline Report comment to moderator  
Reply With Quote
Unread 05-31-08, 07:35 AM  
Waverian
A Chromatic Dragonspawn
AddOn Author - Click to view AddOns

Forum posts: 188
File comments: 33
Uploads: 8
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
one, two, three always return nil. The library is loaded properly, I'm passing the name without server while testing in a battleground. I've called EnableCollection (I've also tried calling it in my COMBAT_LOG_EVENT_UNFILTERED event with no success).. I'm out of ideas. Am I missing something about the library's api/implementation?
Waverian is offline Report comment to moderator  
Reply With Quote
Unread 05-28-08, 03:09 AM  
Sarkan-ZdC
A Wyrmkin Dreamwalker

Forum posts: 57
File comments: 96
Uploads: 0
Originally posted by ichik
Omg. I hope someone will make this compatible with Proximo and PitBull.
That would be.. nice
Sarkan-ZdC is offline Report comment to moderator  
Reply With Quote
Unread 05-27-08, 01:58 PM  
ichik
A Murloc Raider
 
ichik's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 263
Uploads: 5
Omg. I hope someone will make this compatible with Proximo and PitBull.
ichik is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

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.