WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   [WotlK] API to get look preset ids (https://www.wowinterface.com/forums/showthread.php?t=59268)

hasnogaems 10-18-22 08:30 AM

[WotlK] API to get look preset ids
 
Any way to get ids of face/hair/color etc of my character with wow api?

Ketho 10-18-22 08:42 AM

not legally with the in-game api, no. unless your character is at the barbershop

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

hasnogaems 10-18-22 05:58 PM

Quote:

Originally Posted by Ketho (Post 341255)
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

Xrystal 10-18-22 07:30 PM

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.

SDPhantom 10-18-22 07:42 PM

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()


All times are GMT -6. The time now is 09:46 PM.

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