Thread Tools Display Modes
03/20/14, 02:07 PM   #1
Vuelhering
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 169
character name function?

I cannot find the function to return your character's name. It looks like you can get the login name but I don't see how to find your currently logged in character. I would expect a simple call for that.

Would GetUnitName("player") be what I need?
  Reply With Quote
03/20/14, 02:57 PM   #2
Xrystal
caritas omnia vincit
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 369
There were 3 functions that returned your name. One for your character , one including the server name and one for your @ name. I put it in one of the threads somewhere but will check again when I get home.
  Reply With Quote
03/20/14, 03:26 PM   #3
Vuelhering
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 169
Thanks!

I can't test these out until live, but I've been coding an addon and I just couldn't find that functionality.
  Reply With Quote
03/20/14, 03:32 PM   #4
Xrystal
caritas omnia vincit
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 369
Here you go:

local charName = GetUnitName("player")
local serverCharName = GetUniqueNameForCharacter(charName)
local accountName = GetDisplayName()

This was tested during the weekend test before the last one so about a month or so old testing wise. But I don't recall these functions amongst the ones that were deprecated.
  Reply With Quote
03/20/14, 03:38 PM   #5
Vuelhering
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 169
Originally Posted by Xrystal View Post
Here you go:

local charName = GetUnitName("player")
local serverCharName = GetUniqueNameForCharacter(charName)
local accountName = GetDisplayName()

This was tested during the weekend test before the last one so about a month or so old testing wise. But I don't recall these functions amongst the ones that were deprecated.
Thanks!

I saw GetDisplayName(), but was pretty sure that was the @name.

But now, that leads to another question... what's the server? Is that EU/US/PTR?
  Reply With Quote
03/20/14, 03:49 PM   #6
Xrystal
caritas omnia vincit
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 369
Can't remember what was displayed when I tested it on myself but it was something along the lines of charname - server name .. I'll see if I happened to screenshot it but I don't think I did.

nope: Just screenshotted the big data grabs I did in case I needed to check the info.

Last edited by Xrystal : 03/20/14 at 03:52 PM.
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » character name function?


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