WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Get info from target (https://www.wowinterface.com/forums/showthread.php?t=46498)

Resike 05-21-13 12:50 PM

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?

Seerah 05-21-13 03:14 PM

Are you calling NotifyInspect() first and waiting for the proper event before doing this?

SDPhantom 05-21-13 04:07 PM

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.

Resike 05-21-13 04:33 PM

I see, i toguht it's working as like as GetSpecialization().

Phanx 05-21-13 06:41 PM

Nope. To get info about another player's gear, talents, spec, or achievements you have to use the inspection system, as SDPhantom outlined.

Nibelheim 05-21-13 06:52 PM

I miss the inspection system from before Gearscore :(

Resike 05-21-13 06:55 PM

Well i pretty sure they nerfed it because addons caused an awful lot of inspect traffic.

SDPhantom 05-22-13 01:00 PM

I haven't really noticed any difference. Then again, I haven't worked with the inspect system for very long. I think I started using it in WotLK as a cross-faction level detection system since we were able to grab talent points spent/available on non-PvP players. It was less accurate in Cata since you were only given one point every 2 lvls for a big part of the leveling range.


All times are GMT -6. The time now is 05:54 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI