Template:Spell

From The EQMac Wiki

Jump to: navigation, search

This is the template for spells. The code is kind of confusing, so if you need to update this make sure that you test it in the sandbox first. Note that since there are a ton of spells on the wiki, any spell template modification will not take effect all at once. Rather, over time the wiki will get around to updating all of the various spell pages. (You can refresh a specific spell page manually by using the "refresh" button up top.)

Example Spell

This is an attempt to create an example spell with all possible template inputs on it for testing purposes.

SlotDescription
1Increase awesomeness by 1000
2Make pancakes
3Clean house
4Activate god-mode
5Duplicate platinum
6Kill all surrounding NPCs
7Crash game world
8Summon girlfriend
9Make it rain candy
10Buff computer speed
11Make tradeskills easier
12Increase attractiveness by 1000

SkillAlteration
Mana1000
Range to Target100
Casting Time20
Fizzle Time2.25
Duration1 hour @L70 to 2 hours @L80
Recast Time2.25
Target TypeBeneficial
AE Duration100
AE Radius100
Push Back200
ResistMagic
ClassesNone
Reagentx2 Stained Toliet Paper, x3 Old Diaphram, x1 Bloody Tampon
Recourse EffectAwesomeness Recourse
FocusMedallion of Awesomeness
Spell ID999999

Effectiveness50 damage per second
Efficiency50 damage per mana

Cast by youYou get ready.
Cast by othergets ready.
Cast on youYou feel awesome!
Cast on otherfeels awesome!
Wears offThe awesomeness fades.

See Also

Template Values

  • Name (usually the page name, with some exceptions, like Feign Death (spell))
  • Slot1
  • Slot2
  • Slot3, etc.
  • Skill (Alteration, Evocation, etc.)
  • Mana
  • RangeToTarget
  • CastingTime
  • FizzleTime
  • Duration (in seconds, or use 0 for an instant cast spell; use this as opposed to "Duration1" for a spell with a non-variable duration)
  • Duration1 (use this for a spell with a variable duration based on level)
  • Duration1Level
  • Duration2
  • Duration2Level
  • RecastTime
  • TargetType
  • AERadius
  • AEDuration
  • PushBack
  • SpellType
  • Resist (Magic, Disease, etc.)
  • Classes (must be in "DRU/1, ENC/14" form; if "Classes" if omitted altogether then template will assume "None")
  • Reagent
  • ReagentAmount (will default to 1 if this isn't there)
  • Reagent2 (if there is more than one reagent)
  • Reagent2Amount (will default to 1 if this isn't there)
  • Reagent3, etc.
  • Reagent3Amount, etc.
  • RecourseEffect (for some necromancer and shadow knight spells; the name of the beneficial buff that you recieve for successfully casting this spell)
  • Focus (an item that increases the power of the spell)
  • Effectiveness (damage per second; in other words, damage / [casting + recast time])
  • Efficiency (damage per mana; in other words, damage / mana)
  • CastByYou
  • CastByOther
  • CastOnYou
  • CastOnOther
  • WearsOff
  • LucyNumber (the number of the spell in the Lucy URL)