Dominate Monster

Spell Description
Caster Level(s) Wizard/Sorcerer 9
Innate Level 9
School Enchantment
Descriptor(s) Mind-Affecting
Component(s) Verbal, Somatic
Range Medium
Area of Effect / Target Single
Duration 3 Turns + 1 / Level
Save Will Negates
Spell Resistance Yes
Additional Counterspell(s) None
Dispel Yes
Description The target monster temporarily becomes a faithful and loyal servant of the caster.

Spell Scripts
Main nw_s0_dommon

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
Bugfix Changed duration of spell to match spell description
Before 3 + 1 / 2 Level Turns
After 3 + 1 / Level Turns
Bugfix Removed unused code
Before Called GetRacialType on target, but didn't use result
After Commented out code

Concept: Ankh_Phoenix and Aremah, Code: Ankh_Phoenix