[FUNCTION F_EXORCISM_EFFECT]
LOCAL.CHAMPSPAWN=<UID>
FORITEMS 42
	IF (<BASEID> == i_corpse) && (<LINK> != 04fffffff)
		IF (<LINK.FLAGS>&STATF_DEAD) && (<LINK.REGION.UID> == <LOCAL.CHAMPSPAWN>)
			IF (<SRC.ISINPARTY>) && (<LINK.ISINPARTY>)
				IF (!(<LINK.PARTY.ISSAMEPARTYOF <SRC.UID>>))
				LINK.GO 1749,236,58,2
				ENDIF
			ELIF (<SRC.GUILD>) && (<LINK.GUILD>)
				IF (<SRC.GUILD.ALIGN> != <LINK.GUILD.ALIGN>)
				LINK.GO 1749,236,58,2
				ENDIF
			ELSE
			LINK.GO 1749,236,58,2
			ENDIF
		ENDIF
	ENDIF
ENDFOR

[Spell 117]
DEFNAME=s_Exorcism
NAME=Exorcism
SOUND=0
RUNES=
CAST_TIME=2.0
RESOURCES=1 i_reag_nox_crystal,1 i_reag_grave_dust
RUNE_ITEM=0
SCROLL_ITEM=0
FLAGS=spellflag_playeronly
EFFECT_ID=
EFFECT=
DURATION=0.0
MANAUSE=40
SKILLREQ=SKILL_NECROMANCY 80.0
INTERRUPT=0.0,0.0

ON=@Start
IF (<ISPLAYER>)
	IF (<SPIRITSPEAK> < 100.0)
	SYSMESSAGELOC -1,1072112 // You must have GM Spirit Speak to use this spell
	RETURN 1
	ENDIF
SAY @,3,1 Ort Corp Grav
ENDIF

ON=@Effect
REF1=<REGION.UID>
IF (<REF1.BASEID> != i_champion_spawn)
SYSMESSAGELOC -1,1072111 // You are not in a valid exorcism region.
ELSE
REF1.F_EXORCISM_EFFECT
ENDIF

[EOF]