Magic Item Type CodesEdit
The following values are shorts that are used and/or returned by this function, as indicated by its Syntax. These values correspond to the listed type of magic item:
0 Not a magic item
1 Spell
2 Enchantment
3 Alchemy Item (i.e. Potion or Poison)
4 Ingredient