Wowpedia
Advertisement
Wowpedia
240,483
pages

Previews an item on a DressUpModel.

result = myDressUpModel:TryOn(itemID or sourceID [, slotName, illusionID])

Arguments

itemID 
string - In "item:%d" format
sourceID 
number - Second return value from C_TransmogCollection.GetItemInfo()
slotName 
string?Optional. Could be nil. - GlobalString in InventorySlotId#Equipment for items that could apply to multiple slots (weapon appearances fitting in "MAINHANDSLOT" or "SECONDARYHANDSLOT")
illusionID 
number?Optional. Could be nil. - ID for an enchant illusion to apply (applicable to main and secondary hand slots)

Returns

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

Patch changes

External links

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
Advertisement