Thread Tools Display Modes
08-25-16, 10:32 AM   #1
Mayron
A Frostmaul Preserver
 
Mayron's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2010
Posts: 275
SetLootSpecialization not working?

I want to add the ability to change loot specs OnClick of a button but the API function does not work. Does it work for anyone else? If not, is there another way to do this?

SetLootSpecialization(specID), where specID= [0 - GetNumSpecializations()]

EDIT: Fixed it! Found out it was the global spec ID (GUID) , not the players individual spec ID!

I was getting mixed up between "id" and "specID"...........

http://wowprogramming.com/docs/api/G...ializationInfo -- requires regular id (different to specID)

http://wowprogramming.com/docs/api/G...Specialization -- returns specID

TLDR: I'm an idiot

Last edited by Mayron : 08-25-16 at 10:44 AM.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » SetLootSpecialization not working?


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