how to get a visibleItemID from transmog
I'm looking around Transmogrification_Functions for a replacement API for GetTransmogrifySlotInfo().
I think that C_Transmog.GetSlotVisualInfo() will get me the name or itemID of the selected item, but when I try to get the info by using print(C_Transmog.GetSlotInfo(1)) i get the following error Code:
3x SX_WallpaperKit_v.2\setup.lua:135: Usage: GetSlotInfo(slot, type) my plan was to do this until I found out that GetTransmogrifySlotInfo() was removed: Lua Code:
|
After looking at what you are trying to don't I think that function won't be much help but I found some that are. If you use the following function you can get the appliedSourceID.
local baseSourceID, baseVisualID, appliedSourceID, appliedVisualID, pendingSourceID, pendingVisualID, hasPendingUndo = C_Transmog.GetSlotVisualInfo(1, LE_TRANSMOG_TYPE_APPEARANCE) And then you can use it with the C_TransmogCollection.GetSourceInfo(sourceID) function to get the infomation about that item. Here are some example results. C_Transmog.GetSlotVisualInfo(1,0) baseSourceID: 77510 baseVisualID: 27544 appliedSourceID: 86281 appliedVisualID: 33368 pendingSourceID: 0 pendingVisualID: 0 hasPendingUndo: false C_TransmogCollection.GetSourceInfo(86281) [1]={ sourceType=1, invType=2, visualID=33368, isCollected=true, sourceID=86281, isHideVisual=false, itemID=147165, itemModID=1, categoryID=1, name="Hood of Blind Absolution", quality=4 } |
Thank you so much for pointing me in the right direction and giving me the answer :P
now I have this: Lua Code:
|
Instead of just unpacking the table this method seems to work just fine.
Lua Code:
|
again thanks alot!
I thought about just using a string insted of a table, but I forgot about using the double dot .. instead I treated it like a number with pluss sign -_- if I may ask one last question, where/how did you find those commands or what it is called? |
If you are talking about C_Transmog.GetSlotInfo and such I just looked up how Blizzard does things in their code. You can export the code that Blizzard uses for the UI with a console command.
1) On the Battle.net launcher go to Options. 2) Select Game Settings 3) Check "Additional command line arguments" and then type in "-console". 4) Then go to the character selection screen and hit tilda (~). 5) Enter "exportInterfaceFiles code". All the files will go into folders in "C:\Program Files (x86)\World of Warcraft" or where ever you have the game installed. After that you can remove the console command. You can also export a lot of the art with "exportInterfaceFiles art". But you can expect it to cause your game to lag out. You will need BLPView to be able to see the art in Windows Explorer. Sites like this one also can help compare how things change from patch to patch. |
All times are GMT -6. The time now is 12:15 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI