[EVENTS e_npc_necromancer_paladin]
ON=@NpcActFight
IF (<NECROMANCY>)
	IF (<CANSEELOS>) && (<TAG0.LASTCASTING> <= <SERV.TIME>) && (<FLOATVAL 0.25> > <RANDOMDOUBLE>)
	SERV.LOG Necromancy, going to cast a spell, selecting:
		WHILE (!(<LOCAL.SPELL>))
		DORAND 7
			BEGIN
				IF (!(<SRC.ISEVENT.e_evil_omen>))
				LOCAL.SPELL=s_Evil_Omen
				ENDIF
			END
			BEGIN
				IF (!(<SRC.ISEVENT.e_bloodoath_affected>)) && (!(<SRC.ISEVENT.e_bloodoath_caster>)) && (!(<ISEVENT.e_bloodoath_caster>)) && (!(<ISEVENT.e_bloodoath_affected>))
				LOCAL.SPELL=s_blood_oath
				ENDIF
			END
			BEGIN
				IF (!(<SRC.ISEVENT.e_mind_rot>)) && (<SRC.ISPLAYER>)
				LOCAL.SPELL=s_mind_rot
				ENDIF
			END
			BEGIN
				IF (<FLOATVAL 0.5> > <RANDOMDOUBLE>)
				LOCAL.SPELL=s_Vengeful_Spirit
				ENDIF
			END
			LOCAL.SPELL=s_Pain_Spike
			LOCAL.SPELL=s_Poison_Strike
			LOCAL.SPELL=s_Wither
			ENDDO
		ENDWHILE
	SERV.LOG <LOCAL.SPELL> Necro spell cast!
	TAG.LASTCASTING=<EVAL <SERV.TIME>+50>
		IF (<LOCAL.SPELL> != s_Wither)
		SRC.SPELLEFFECT <LOCAL.SPELL>,<NECROMANCY>,<UID>
		ELSE
		SPELLEFFECT S_Wither,<NECROMANCY>,<UID>
		ENDIF
	ENDIF
ENDIF
IF (<CHIVALRY>)
	IF (<TAG0.LASTCASTING> <= <SERV.TIME>) && (<FLOATVAL 0.25> > <RANDOMDOUBLE>)
		DORAND 5
		LOCAL.SPELL=s_Cleanse_By_Fire
		LOCAL.SPELL=s_Close_Wounds
		LOCAL.SPELL=s_Divine_Fury
		LOCAL.SPELL=s_Holy_Light
		LOCAL.SPELL=s_Dispel_Evil
		ENDDO
	TAG.LASTCASTING=<EVAL <SERV.TIME>+65>
	SPELLEFFECT <LOCAL.SPELL>,<CHIVALRY>,<UID>
	ENDIF
ENDIF

[EOF]