Returns the info of the units sub class local JobID,JobName = GetVocSubInfo("unit")
unit: string (player, target, party1, pet, targettarget, mouseover...) this appears to not matter as it always returns the players information.
JobID: number-related to Secondary or support class 1-8 for Players. JobName: string-Name related to Secondary or support class
/script local JobID,JobName = GetVocSubInfo("unit"); DEFAULT_CHAT_FRAME:AddMessage("Job no.:"..JobID.." Job Title:"..JobName)
--Qaz1qaz1qa 07:43, 6 March 2010 (UTC)