Skip to content
AnonXS edited this page Feb 14, 2018 · 32 revisions

Back to world database list of tables.

The `spell_template` table

holds data about every spell used.

Structure

Field Type Null Key Default Extra
Id INT UNSIGNED NO 0
Category INT UNSIGNED NO 0
Dispel INT UNSIGNED NO 0
Mechanic INT UNSIGNED NO 0
Attributes INT UNSIGNED NO 0
AttributesEx INT UNSIGNED NO 0
AttributesEx2 INT UNSIGNED NO 0
AttributesEx3 INT UNSIGNED NO 0
AttributesEx4 INT UNSIGNED NO 0
AttributesEx5 INT UNSIGNED NO 0
AttributesEx6 INT UNSIGNED NO 0
Stances INT UNSIGNED NO 0
StancesNot INT UNSIGNED NO 0
Targets INT UNSIGNED NO 0
TargetCreatureType INT UNSIGNED NO 0
RequiresSpellFocus INT UNSIGNED NO 0
FacingCasterFlags INT UNSIGNED NO 0
CasterAuraState INT UNSIGNED NO 0
TargetAuraState INT UNSIGNED NO 0
CasterAuraStateNot INT UNSIGNED NO 0
TargetAuraStateNot INT UNSIGNED NO 0
CastingTimeIndex INT UNSIGNED NO 0
RecoveryTime INT UNSIGNED NO 0
CategoryRecoveryTime INT UNSIGNED NO 0
InterruptFlags INT UNSIGNED NO 0
AuraInterruptFlags INT UNSIGNED NO 0
ChannelInterruptFlags INT UNSIGNED NO 0
procFlags INT UNSIGNED NO 0
procChance INT UNSIGNED NO 0
procCharges INT UNSIGNED NO 0
maxLevel INT UNSIGNED NO 0
baseLevel INT UNSIGNED NO 0
spellLevel INT UNSIGNED NO 0
DurationIndex int(11) unsigned NO 0
powerType INT UNSIGNED NO 0
manaCost INT UNSIGNED NO 0
manaCostPerlevel INT UNSIGNED NO 0
manaPerSecond INT UNSIGNED NO 0
manaPerSecondPerLevel INT UNSIGNED NO 0
rangeIndex INT UNSIGNED NO 1
speed FLOAT NO 0
StackAmount INT UNSIGNED NO 0
Totem1 INT UNSIGNED NO 0
Totem2 INT UNSIGNED NO 0
Reagent1 INT UNSIGNED NO 0
ReagentCount1 INT UNSIGNED NO 0
EquippedItemClass INT UNSIGNED NO -1
EquippedItemSubClassMask INT UNSIGNED NO 0
EquippedItemInventoryTypeMask INT UNSIGNED NO 0
Effect1 INT UNSIGNED NO 0
EffectDieSides1 INT UNSIGNED NO 0
EffectBaseDice1 INT UNSIGNED NO 0
EffectDicePerLevel1 FLOAT NO 0
EffectRealPointsPerLevel1 FLOAT NO 0
EffectBasePoints1 INT UNSIGNED NO 0
EffectMechanic1 INT UNSIGNED NO 0
EffectImplicitTargetA1 INT UNSIGNED NO 0
EffectImplicitTargetB1 INT UNSIGNED NO 0
EffectRadiusIndex1 INT UNSIGNED NO 0
EffectApplyAuraName1 INT UNSIGNED NO 0
EffectAmplitude1 INT UNSIGNED NO 0
EffectMultipleValue1 FLOAT NO 0
EffectChainTarget1 INT UNSIGNED NO 0
EffectItemType1 INT UNSIGNED NO 0
EffectMiscValue1 INT UNSIGNED NO 0
EffectMiscValueB1 INT NO 0
EffectTriggerSpell1 INT UNSIGNED NO 0
EffectPointsPerComboPoint1 FLOAT NO 0
SpellVisual INT UNSIGNED NO 0
SpellIconID INT UNSIGNED NO 0
activeIconID INT UNSIGNED NO 0
spellPriority INT UNSIGNED NO 0
SpellName TEXT NO 0
Rank TEXT NULL 0
ManaCostPercentage INT UNSIGNED NO 0
StartRecoveryCategory INT UNSIGNED NO 0
StartRecoveryTime INT UNSIGNED NO 0
MaxTargetLevel INT UNSIGNED NO 0
SpellFamilyName INT UNSIGNED NO 0
SpellFamilyFlags BIGINT UNSIGNED NO 0
MaxAffectedTargets INT UNSIGNED NO 0
DmgClass INT UNSIGNED NO 0
PreventionType INT UNSIGNED NO 0
DmgMultiplier1 INT UNSIGNED NO 0
TotemCategory1 INT UNSIGNED NO 0
TotemCategory2 INT UNSIGNED NO 0
AreaId INT UNSIGNED NO 0
SchoolMask INT UNSIGNED NO 0
IsServerSide INT UNSIGNED NO 0
AttributesServerside INT UNSIGNED NO 0

Description of the fields

Id

The spell ID.

Category

Dispel

Mechanic

Attributes

AttributesEx

AttributesEx2

AttributesEx3

AttributesEx4

AttributesEx5

AttributesEx6

Stances

StancesNot

Targets

TargetCreatureType

RequiresSpellFocus

FacingCasterFlags

CasterAuraState

TargetAuraState

CasterAuraStateNot

TargetAuraStateNot

CastingTimeIndex

RecoveryTime

CategoryRecoveryTime

InterruptFlags

AuraInterruptFlags

ChannelInterruptFlags

procFlags

Bit Flag Comment
0 Killed
1 Kill
2 Successful Melee Hit
3 Taken Melee Hit
4 Successful Melee Spell Hit
5 Taken Melee Spell Hit
6 Successful Ranged Hit
7 Taken Ranged Hit
8 Successful Ranged Spell Hit
9 Taken Ranged Spell Hit
10 Successful Positive Aoe Hit
11 Taken Positive Aoe
12 Successful Aoe Spell Hit
13 Taken Aoe Spell Hit
14 Successful Positive Spell
15 Taken Positive Spell
16 Successful Negative Spell Hit
17 Taken Negative Spell Hit
18 On Do Periodic
19 On Take Periodic
20 Taken Any Damage
21 On Trap Activation
22 Successful Mainhand Hit
23 Successful Offhand Hit
24 Death

procChance

procCharges

maxLevel

baseLevel

spellLevel

DurationIndex

powerType

manaCost

manaCostPerlevel

manaPerSecond

manaPerSecondPerLevel

rangeIndex

speed

StackAmount

Totem1

Totem2

Reagent1

ReagentCount1

EquippedItemClass

EquippedItemSubClassMask

EquippedItemInventoryTypeMask

Effect1

EffectDieSides1

EffectBaseDice1

EffectDicePerLevel1

EffectRealPointsPerLevel1

EffectBasePoints1

EffectMechanic1

EffectImplicitTargetA1

EffectImplicitTargetB1

EffectRadiusIndex1

EffectApplyAuraName1

EffectAmplitude1

EffectMultipleValue1

EffectChainTarget1

EffectItemType1

EffectMiscValue1

EffectMiscValueB1

EffectTriggerSpell1

EffectPointsPerComboPoint1

SpellVisual

SpellIconID

activeIconID

spellPriority

SpellName

Rank

ManaCostPercentage

StartRecoveryCategory

StartRecoveryTime

MaxTargetLevel

SpellFamilyName

SpellFamilyFlags

MaxAffectedTargets

DmgClass

PreventionType

DmgMultiplier1

TotemCategory1

TotemCategory2

AreaId

SchoolMask

IsServerSide

AttributesServerside

Clone this wiki locally