Thread Tools Display Modes
10-31-17, 02:37 AM   #1
Ygrayne
A Murloc Raider
Join Date: Jul 2012
Posts: 6
Global Specialization ID

Hi, is there (now) an easier way to obtain the global spec ID of a unit in my group, or do I still need to go through the inspection system (NotifyInspect(), INSPECT_READY, and so on)?

(For clarity, the global spec ID would be the number unique to a class/spec, eg. 105 for a Resto Druid, or 65 for a Holy Paladin, as obtained by

Code:
id = GetSpecializationInfo(GetSpecialization())
for the player.)

Thanks, Ygrayne
  Reply With Quote
10-31-17, 10:13 PM   #2
Ygrayne
A Murloc Raider
Join Date: Jul 2012
Posts: 6
Originally Posted by Ygrayne View Post
Hi, is there (now) an easier way to obtain the global spec ID of a unit in my group, or do I still need to go through the inspection system (NotifyInspect(), INSPECT_READY, and so on)?
Or to maybe phrase my question more generally, is there an easier way to obtain a group member's current spec than using the inspection procedure? Thanks.
  Reply With Quote
10-31-17, 11:54 PM   #3
MunkDev
A Scalebane Royal Guard
 
MunkDev's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2015
Posts: 431
https://wow.gamepedia.com/API_GetInspectSpecialization
__________________
  Reply With Quote
11-01-17, 11:50 PM   #4
Ygrayne
A Murloc Raider
Join Date: Jul 2012
Posts: 6
Thanks -- that's part of the inspection system, though.
  Reply With Quote
11-02-17, 04:52 AM   #5
jeffy162
A Pyroguard Emberseer
 
jeffy162's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 2,364
I, unfortunately, don't really know. That being said - it appears as though that is the way that the game is set up to work. IE, if you want any information about another player you have to go through the inspection process and learn it that way. Then, the information can be cached and you'll never have to go through the process again (until you "clean" your cache, I'm guessing).

But, I could be totally wrong about this (go figure ).
__________________
Ahhhh, the vagueries of the aging mind. Wait.... What was I saying?


Carbonite <----- GitHub main module (Maps ONLY) download link. The other modules are also available on GitHub.
Carbonite-CLASSIC<----- GitHub link to Carbonite Classic. Thanks to ircdirk for this!
  Reply With Quote
11-02-17, 10:59 AM   #6
MunkDev
A Scalebane Royal Guard
 
MunkDev's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2015
Posts: 431
Originally Posted by Ygrayne View Post
Thanks -- that's part of the inspection system, though.
Most queried information that isn't necessary for your game to work properly will be downloaded on demand, rather than automatically.
It's designed this way to keep servers stable. I'm not sure you'll be able to get around that fact.
__________________
  Reply With Quote
11-03-17, 03:07 AM   #7
Ygrayne
A Murloc Raider
Join Date: Jul 2012
Posts: 6
Thanks, all. Back to inspection then.
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Global Specialization ID

Thread Tools
Display Modes

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