ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Wish List (https://www.esoui.com/forums/forumdisplay.php?f=177)
-   -   [implemented] GetMegaServerName() (https://www.esoui.com/forums/showthread.php?t=4909)

Ayantir 07/19/15 10:11 AM

[implemented] GetMegaServerName()
 
In order to build something quite big, this function could help me a lot, could this one be created. or make it available to us ?

We don't have any possibility to know on which server we are

merlight 07/19/15 10:22 AM

You can either get the value from UserSettings.txt (although unsure whether its value ingame reflects your current server or the previous one), or from add-on filter:
Lua Code:
  1. local realm = GetCVar("LastRealm")
  2. local realm_dash_char = GetAddOnManager():GetAddOnFilter()

Ayantir 07/19/15 10:29 AM

Quote:

Originally Posted by merlight (Post 22107)
You can either get the value from UserSettings.txt (although unsure whether its value ingame reflects your current server or the previous one), or from add-on filter:
Lua Code:
  1. local realm = GetCVar("LastRealm")
  2. local realm_dash_char = GetAddOnManager():GetAddOnFilter()

Thanks!

Lua Code:
  1. local realm = GetCVar("LastRealm")

do the job.

But for me GetAddOnManager():GetAddOnFilter() is empty (it exist, but empty).

circonian 07/19/15 11:52 AM

Its already an available function:
Lua Code:
  1. GetWorldName()

kerb9729 07/28/15 08:34 AM

I believe it's also embedded in GetUniqueNameForCharacter()


All times are GMT -6. The time now is 07:47 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI