Control Undead

Spell Description
Caster Level(s) Cleric 6, Wizard/Sorcerer 7
Innate Level 7
School Necromancy
Descriptor(s) Undead
Component(s) Verbal, Somatic
Range Short
Area of Effect / Target Single
Duration 1 Hour / Level
Save Will negates
Spell Resistance Yes
Additional Counterspell(s) Sunbeam
Dispel Yes
Description A single undead creature with up to 2 Hit Dice per caster level falls under the caster's control unless it makes a successful Will save.

Spell Scripts
Main nw_s0_conund

Changes/Updates for Thain
Script Change Custom GetCasterLevel function
Before Get the level of the casterclass used or item property
After Get the level of the casterclass used or item property, pluss any modifiers (Palemaster++)
Script Change Custom ApplyEffectToObject function
Before Adds a given effect to object
After Same as before, but saves some variables. This is to fix the Dispel spells (Palemaster++)
Script Change Custom ResistSpell function
Before Checks for Absorbtion (Spell mantle), Immunity and SR
After Same as before, just a wrapper for easy later change
Script Change Custom GetSpellSaveDC
Before Returns Save DC of spell: 10 + Spell Level + Spell Focus
After Same as before, just a wrapper to easy add alternate DC for items and maybe more later

Concept: Ankh_Phoenix and Aremah, Code: Ankh_Phoenix