TLO:SelectedItem

From the wonderful RedGuides Wiki

Information on the item selected in your own inventory while using a merchant.

This TLO is added by MacroQuest

Forms

Type Member Description
item SelectedItem

Access to Types

Type Description
item Contains data about items

Examples

/if ( !${SelectedItem.ID} ) {
    /echo Nothing from your inventory is selected
 } else {
    /echo Size of the item: ${SelectedItem.Size}
 }
/if ( ${SelectedItem.Charges} < 1 ) {
    Determines if the selected item is out of charges
 }
/if ( ${SelectedItem.Name.Equal[rusty dagger]} ) {
    Checks to see if the selected item is a rusty dagger 
 }

See also