Thread Tools Display Modes
10-18-22, 08:30 AM   #1
hasnogaems
A Flamescale Wyrmkin
 
hasnogaems's Avatar
Join Date: Apr 2016
Posts: 109
[WotlK] API to get look preset ids

Any way to get ids of face/hair/color etc of my character with wow api?
  Reply With Quote
10-18-22, 08:42 AM   #2
Ketho
A Pyroguard Emberseer
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,029
not legally with the in-game api, no. unless your character is at the barbershop

https://wowpedia.fandom.com/wiki/API...Customizations

Last edited by Ketho : 10-18-22 at 08:50 AM.
  Reply With Quote
10-18-22, 05:58 PM   #3
hasnogaems
A Flamescale Wyrmkin
 
hasnogaems's Avatar
Join Date: Apr 2016
Posts: 109
Originally Posted by Ketho View Post
not legally with the in-game api, no. unless your character is at the barbershop

https://wowpedia.fandom.com/wiki/API...Customizations
How I can get ids of face/hair/skin color etc?
I also found C_BarberShop.GetCurrentCharacterData()
I tried
/script a = C_BarberShop.GetAvailableCustomizations(); print(a);
but my request need to be more specific apparently
  Reply With Quote
10-18-22, 07:30 PM   #4
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 6,007
This page has all the C_Barber functions
https://wowpedia.fandom.com/wiki/Cat...s/C_BarberShop

With this page showing what the values in the table should hold
https://wowpedia.fandom.com/wiki/API...Customizations

I think a bit of trial and error to see how you can pull out the information and what it looks like.
__________________


All Level 70 Characters:
Demon Warlock
Resto Druid
Disc Priest
Resto Shaman
Survival Hunter
Augment Evoker
Frost Mage
Vengence Demon Hunter
Rogue ( was subtlety )

Brewmaster Monk (TR)
Prot Paladin (TR)
Blood Death Knight ( TR)

As you can see I am missing a warrior

And .. I don't have all the allied races covered. Time Runner time when it happens again

  Reply With Quote
10-18-22, 07:42 PM   #5
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,356
You can also try the /dump command instead of writing a script to print it. /dump iterates tables where print() just runs tostring() on everything, which spits out pointer addresses.
Code:
/dump C_BarberShop.GetAvailableCustomizations()
__________________
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)
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » [WotlK] API to get look preset ids

Thread Tools
Display Modes

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