[Spell 210]
DEFNAME=s_Sacred_Journey
NAME=Sacred Journey
SOUND=
RUNES=
CAST_TIME=1.5
RESOURCES=
RUNE_ITEM=0
SCROLL_ITEM=0
FLAGS=spellflag_playeronly|spellflag_targ_item|spellflag_nofreezeoncast|spellflag_no_castanim
EFFECT_ID=
EFFECT=15
DURATION=0.0
MANAUSE=10
SKILLREQ=SKILL_CHIVALRY 15.0
INTERRUPT=0.0,0.0

ON=@Start
SAY @,,2 1060727
IF (<FLAGS>&STATF_CRIMINAL)
SYSMESSAGELOC -1,1005561
RETURN 1
ELIF (<FLAGS>&STATF_WAR)
SYSMESSAGELOC -1,1061282
RETURN 1
ELIF (<WEIGHT> > <MAXWEIGHT>)
SYSMESSAGELOC 022,502359
RETURN 1
ENDIF

ON=@Effect
IF (<ISITEM>)
	IF (<TYPE> != T_RUNE)
	SRC.MESSAGE @,,2 502357 //you can not recall from that object
	ELIF (!(<MOREX>))
	SRC.MESSAGE @,,2 501805 //that rune is not yet marked
	ELIF (<SERV.MAP(<MOREP>).REGION.FLAGS>&region_antimagic_recall_in)
	SRC.SYSMESSAGELOC -1,1019004  // You are not allowed to travel there.
	ELIF (<SRC.REGION.FLAGS>&region_antimagic_recall_out
	SRC.SYSMESSAGELOC -1,501035	//You cannot teleport from here to the destination.
	ELIF (<SRC.FLAGS>&STATF_CRIMINAL)
	SRC.SYSMESSAGELOC -1,1005561 // Thou'rt a criminal and cannot escape so easily.
	ELIF (<SRC.FLAGS>&STATF_WAR)
	SRC.SYSMESSAGELOC -1,1061282 // You cannot use the Sacred Journey ability to flee from combat.
	ELIF (<SRC.WEIGHT> > <SRC.MAXWEIGHT>)
	SRC.SYSMESSAGELOC 022,502359 // Thou art too encumbered to move.
	ELSE
	SRC.GO <MOREP>
	ENDIF
ENDIF

[EOF]