GetItemWeaponType

From ESOUI Wiki

Jump to: navigation, search

Checks the item in a particular bag slot and returns its weapon type (i.e. bow, destruction staff, one-handed sword, two-handed sword, etc.), as a WeaponType constant.

Arguments

bagId
A number representing the bag to check; it must be one of the built-in Bag values.
slotIndex
The numeric index of the slot in that bag which should be checked. For most bags, this is a number ranging from 1 to the size of the bag.

Example

local weaponType = GetItemArmorType(bagId, slotIndex)
if weaponType == WEAPONTYPE_TWO_HANDED_HAMMER then
   d("Ah, a two-handed maul.")
end

External links

Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox