Thread Tools Display Modes
05-21-13, 12:50 PM   #1
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
Get info from target

I trying to get a specc info from the target by:

Code:
local id = GetInspectSpecialization("target")
But it always returns 0, is there any other method to get specc from a target/focus/party/raid member?

Also is there any way to the the "Block chance" info from a target?
  Reply With Quote
05-21-13, 03:14 PM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Are you calling NotifyInspect() first and waiting for the proper event before doing this?
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
05-21-13, 04:07 PM   #3
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,326
I'm thinking passing a unit to these functions is indicative of a future plan for addons to query inspect info on multiple targets at once. Right now, inspect info is still only available for one target at a time. As Seerah mentioned, you still need to call NotifyInspect() on the unit and wait for INSPECT_READY to fire with that unit's GUID. Otherwise, the game client will have no info for the unit.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote
05-21-13, 04:33 PM   #4
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
I see, i toguht it's working as like as GetSpecialization().
  Reply With Quote
05-21-13, 06:41 PM   #5
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Nope. To get info about another player's gear, talents, spec, or achievements you have to use the inspection system, as SDPhantom outlined.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
05-21-13, 06:52 PM   #6
Nibelheim
local roygbi-
 
Nibelheim's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2010
Posts: 1,600
I miss the inspection system from before Gearscore
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Get info from target


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off