API:GetEquipBySlot

Returns a path (string) to the icon for a similar item (if found), based on the provided slot.

string GetEquipBySlot( Bag_Slot, Equip_Slot )

Bag_Slot - Any backpack slot, from 1 to 120. Equip_Slot - The gear slot to "search" for.

Example: for i=1,120 do   item  = GetEquipBySlot(i,this:GetID) if item ~= nil then DEFAULT_CHAT_FRAME:AddMessage(item) end end

Output: interface/icons/EQ_foot-leather030-02.dds