Spell Description
Caster Level(s) Cleric 9, Wizard/Sorcerer 9
Innate Level 9
School Conjuration
Descriptor(s) Summon
Component(s) Verbal, Somatic
Range Medium
Area of Effect / Target Point
Duration Special
Save None
Spell Resistance No
Additional Counterspells None
Dispel No
Description This powerful summoning spell opens a portal to another plane, calling forth a Balor if the caster is of evil alignment or a Celestial Avenger if the caster is of good alignment. If the caster is protected by the effects of Protection from Good (Celestial)/Evil (Balor) , Magic Circle versus Good (Celestial)/Evil (Balor) ,or Aura versus Good (Celestial)/Evil (Balor) , the summoned creature becomes their faithful and loyal servant. If the caster is not so protected, the Balor attempts to destroy them, and the Celestial Avenger will not follow orders.

Spell Scripts
Main nw_s0_gate

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 Changed the duration of summon spells
Before 1 Round / Level
After 9 - Spell Level + Caster Level + Spell Focus Conjuration + Item modifiers Rounds
Script Change Added different summon if caster is of good alignment
Before Balor was always summoned
After Balor will be summoned if good/evil alignment is 50 or less, else a Celestial Avenger is summoned

Concept: Ankh_Phoenix and Aremah, Code: Ankh_Phoenix