Thread Tools Display Modes
02-03-15, 09:37 AM   #1
Oniya
A Wyrmkin Dreamwalker
Join Date: Feb 2015
Posts: 57
Question Garrison Mission environment

Anyone know how to get via Lua Mission environment in number?

Cause in different languages it written different and to get optimal follower (in follower counter info its number), i need to get number somehow, but cant find function for it :-\


Thanks a lot for help!
  Reply With Quote
02-03-15, 11:32 PM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
I don't know the answer to that offhand and don't have time to look through the Blizz UI source and/or API listings right now, but if there's no such ID available, you could probably just use the texture path, since each environment type has its own icon. That's how we used to identify specific spells and buffs back before spellIDs were exposed to the API.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
02-04-15, 03:52 PM   #3
Oniya
A Wyrmkin Dreamwalker
Join Date: Feb 2015
Posts: 57
yup, i thought about it, just was hoping there is more clear way to do this.
Cause this way is real bad for programming
  Reply With Quote
02-05-15, 01:25 PM   #4
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,323
Most of the garrison functions are undocumented, but I'd suggest looking at C_Garrison.GetFollowers().
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)

Last edited by SDPhantom : 02-05-15 at 01:40 PM.
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Garrison Mission environment


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