Get the Desktop App for Battle.net Now
- All your games in 1 place
- Log in once
- Automatic game updates
Can anyone else confirm that 'GetInspectSpecialization("player")' always returns 0? On wowpedia it says "This function may return 0 if the server hasn't sent the requested inspect information needed yet.". Zuh?
I just wanna know if a party/raid member is a tank :(
GetInspectSpecialization is for getting a spec on a unit that's been inspected with InspectUnit or NotifyInspect.
The sentence means "If the results from an inspection aren't available, this will return 0."
So your addon would register for INSPECT_READY, inspect a unit, and in response to INSPECT_READY you can GetInspectSpecialization(unit). And then inspect the next unit if you wanted to check everyone.
Remember that you can't inspect anyone unless they're in range. You can use CheckInteractDistance(unit) to see if they're close enough.
Edited by Ro on 10/1/2012 9:29 PM PDT
This will go through every group member (in inspect range) and print their spec.
Threats of violence. We take these seriously and will alert the proper authorities.
Posts containing personal information about other players. This includes physical addresses, e-mail addresses, phone numbers, and inappropriate photos and/or videos.
Harassing or discriminatory language. This will not be tolerated.