Skip to content

Enchant Template

AnchyDev edited this page Jul 29, 2022 · 6 revisions

Id

The Id column is the enchantment id. You can find enchantment ids by visiting https://wotlkdb.com/?enchantments and selecting an enchant. Your id is visible in the url.

Example: https://wotlkdb.com/?enchantment=74 - where Id = 74.

iLvlMin/Max

The iLvlMin & iLvlMax columns are for stating the itemlevel range that your enchant can be applied onto. Both of these column values are inclusive.

RoleMask

When adding an entry to the enchant template table you have to provide a value to the RoleMask column to appropriately assign enchants to items when analyzed. To create your RoleMask you need to create a sum of all the roles that are able to use the enchant. The values for each role are:

  • All: 0
  • Tank: 1
  • Phys: 2
  • Hybrid: 4
  • Spell: 8

Example: Tank + Phys + Hybrid = 7 Hybrid + Spell = 12

To have all of the roles use the enchant, set the RoleMask to 0.

ClassMask

Like RoleMask you have to create a sum of all of the item classes able to use the enchant.

  • All: 0
  • Weapon: 4
  • Armor: 16

To have all of the classes use the enchant, set the ClassMask to 0.

SubClassMask

Same as above. However you must use the correct ClassMask in conjunction with the SubClassMask or you may experience issues.

Weapon Armor
AXE = 1 MISC = 1
AXE2H = 2 CLOTH = 2
BOW = 4 LEATHER = 4
GUN = 8 MAIL = 8
MACE = 16 PLATE = 16
MACE2H = 32 BUCKLER = 32
POLEARM = 64 SHIELD = 64
SWORD = 128 LIBRAM = 128
SWORD2H = 256 IDOL = 256
OBSOLETE = 512 TOTEM = 512
STAFF = 1024 SIGIL = 1024
EXOTIC = 2048 -
EXOTIC2H = 4096 -
FIST = 8192 -
MISC = 16384 -
DAGGER = 32768 -
THROWN = 65536 -
SPEAR = 131072 -
CROSSBOW = 262144 -
WAND = 524288 -
FISHING POLE = 1048576 -

Again to mark the item to use all subclasses, set the SubClassMask to 0.

Decription & Note

These are both optional columns that just help with reading/tracking enchants.

Clone this wiki locally