DressUpModel:TryOn

From Warcraft Wiki
Jump to navigation Jump to search

Previews an item on the model.

result = DressUpModel:TryOn(linkOrItemModifiedAppearanceID [, handSlotName, spellEnchantID])

Arguments

linkOrItemModifiedAppearanceID
IDOrLink - The item as "item:%d" or the sourceId (second return value from C_TransmogCollection.GetItemInfo).
handSlotName
string? - GlobalString in InventorySlotId#Equipment for items that could apply to multiple slots (weapon appearances fitting in "MAINHANDSLOT" or "SECONDARYHANDSLOT")
spellEnchantID
number? - ID for an enchant illusion to apply (applicable to main and secondary hand slots)

Returns

result
Enum.ItemTryOnReason?
Value Field Description
0 Success
1 WrongRace
2 NotEquippable
3 DataPending

Patch changes

Battle for Azeroth Patch 8.0.1 (2018-07-17): Added result return value.[1]
Legion Patch 7.0.3 (2016-07-19): Arguments changed to sourceID, slotName and illusionID[2]
Bc icon.gif Patch 2.1.0 (2007-05-22): Argument changed from item to itemLink[3]
WoW Icon update.png Patch 1.7.0 (2005-09-13): Added[4]

References

 
  1. ^ 2018-12-07, DressUpFrames.lua, version 8.1.0.28724, near line 32, archived at Townlong-Yak
  2. ^ 2016-07-19, DressUpFrames.lua, version 7.0.3.22267, archived at Townlong-Yak
  3. ^ 2007-05-22, DressUpFrame.lua, version 2.1.0.6692, archived at Townlong-Yak
  4. ^ 2005-09-13, DressUpFrame.lua, version 1.7.0.4671, archived at Townlong-Yak