Thread: Boss room
View Single Post
03/18/19, 09:36 AM   #4
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,989
Nope they got no id. Just the name If you build something for it be sure to support other languages as well.
You are able to change the visible language ingame via:
/Script SetCVar("language.2", "<lang2>")
Where <lang2> can be:
de
en
fr
jp (only if you have installed the Japanese client!)

Only with a custom addon to support the languages:
ru
pl
pt
es
it
zh
and maybe others

You are able to check if you are in a vet or normal dungeon though.

Function to use:
* GetCurrentZoneDungeonDifficulty()
** _Returns:_ *[DungeonDifficulty|#DungeonDifficulty]* _isVeteranDifficulty_


The value returned is of this type "DungeonDifficulty":
* DUNGEON_DIFFICULTY_NONE
* DUNGEON_DIFFICULTY_NORMAL
* DUNGEON_DIFFICULTY_VETERAN

There is also an event fired if the difficulty changes so you need not to check it at EACH boss fight but only once if you get into a dungeon and in between as it changes:
* EVENT_GROUP_VETERAN_DIFFICULTY_CHANGED (*bool* _isVeteranDifficulty_)

For entering the dungeon I'm not sure if there is an event but you can search the API files and the wiki!


Find all api functions here (check the current's API .txt file):
https://wiki.esoui.com/APIVersion
  Reply With Quote