[Spell 9]
// Raise dex
DEFNAME=s_Agility
NAME=Agility
SOUND=snd_SPELL_AGILITY
RUNES=EU
CAST_TIME=0.7
RESOURCES=i_reag_blood_moss,i_reag_mandrake_root
RUNE_ITEM=i_rune_AGILITY
SCROLL_ITEM=i_scroll_AGILITY
FLAGS=SPELLFLAG_TARG_CHAR|SPELLFLAG_FX_TARG|SPELLFLAG_GOOD|spellflag_playeronly
EFFECT_ID=i_fx_BLESS_EFFECT
EFFECT=4,18
DURATION=2*60.0,4*60.0
MANAUSE=6
SKILLREQ=SKILL_MAGERY 20.0
INTERRUPT=0.0,0.0

ON=@Effect
IF (<ARGO.ISITEM>)
	IF (<ARGO.TYPE>==T_POTION)
		IF (<FINDLAYER.LAYER_RING.TAG0.ENCHANCEPOTIONS>)
		ARGN2 += <EVAL ((<ARGN2>*<FINDLAYER.LAYER_RING.TAG0.ENCHANCEPOTIONS>)/100)>
		ENDIF
		IF (<FINDLAYER.LAYER_WRIST.TAG0.ENCHANCEPOTIONS>)
		ARGN2 += <EVAL ((<ARGN2>*<FINDLAYER.LAYER_WRIST.TAG0.ENCHANCEPOTIONS>)/100)>
		ENDIF
	ENDIF
	IF (<SRC.ALCHEMY> >= 33.0)
	ARGN2 += <EVAL ((<ARGN2>*(10*(<ALCHEMY>/330)))/100)>
	ENDIF
ENDIF

[Spell 10]
// Raise int.
DEFNAME=s_Cunning
NAME=Cunning
SOUND=snd_SPELL_CUNNING
RUNES=UW
CAST_TIME=0.7
RESOURCES=i_reag_mandrake_root,i_reag_nightshade
RUNE_ITEM=i_rune_CUNNING
SCROLL_ITEM=i_scroll_CUNNING
FLAGS=SPELLFLAG_TARG_CHAR|SPELLFLAG_FX_TARG|SPELLFLAG_GOOD|spellflag_playeronly
EFFECT_ID=i_fx_BLESS_EFFECT
EFFECT=4,18
DURATION=2*60.0,4*60.0
MANAUSE=6
SKILLREQ=SKILL_MAGERY 20.0
INTERRUPT=0.0,0.0

ON=@Effect
IF (<ARGO.ISITEM>)
	IF (<ARGO.TYPE>==T_POTION)
		IF (<FINDLAYER.LAYER_RING.TAG0.ENCHANCEPOTIONS>)
		ARGN2 += <EVAL ((<ARGN2>*<FINDLAYER.LAYER_RING.TAG0.ENCHANCEPOTIONS>)/100)>
		ENDIF
		IF (<FINDLAYER.LAYER_WRIST.TAG0.ENCHANCEPOTIONS>)
		ARGN2 += <EVAL ((<ARGN2>*<FINDLAYER.LAYER_WRIST.TAG0.ENCHANCEPOTIONS>)/100)>
		ENDIF
	ENDIF
	IF (<SRC.ALCHEMY> >= 33.0)
	ARGN2 += <EVAL ((<ARGN2>*(10*(<ALCHEMY>/330)))/100)>
	ENDIF
ENDIF

[FUNCTION F_POISONLEVEL]
IF (<MOREY> > 1100)
RETURN 5
ELIF (<MOREY> > 730)
RETURN 4
ELIF (<MOREY> > 325)
RETURN 3
ELIF (<MOREY> > 130)
RETURN 2
ELSE
RETURN 1
ENDIF

[Spell 11]
DEFNAME=s_cure
NAME=Cure
SOUND=snd_SPELL_CURE
RUNES=AN
CAST_TIME=0.7
RESOURCES=i_reag_garlic,i_reag_ginseng
RUNE_ITEM=i_rune_CURE
SCROLL_ITEM=i_scroll_CURE
FLAGS=SPELLFLAG_TARG_CHAR|SPELLFLAG_FX_TARG|SPELLFLAG_GOOD|spellflag_playeronly
EFFECT_ID=i_fx_HEAL_EFFECT
EFFECT=0
DURATION=0.0
MANAUSE=6
SKILLREQ=SKILL_MAGERY 20.0
INTERRUPT=0.0,0.0

ON=@Effect
IF (<ARGO.ISITEM>)
	IF (<ARGO.TYPE>==T_POTION)
		IF (<FINDLAYER.LAYER_RING.TAG0.ENCHANCEPOTIONS>)
		ARGN2 += <EVAL ((<ARGN2>*<FINDLAYER.LAYER_RING.TAG0.ENCHANCEPOTIONS>)/100)>
		ENDIF
		IF (<FINDLAYER.LAYER_WRIST.TAG0.ENCHANCEPOTIONS>)
		ARGN2 += <EVAL ((<ARGN2>*<FINDLAYER.LAYER_WRIST.TAG0.ENCHANCEPOTIONS>)/100)>
		ENDIF
	ENDIF
	IF (<SRC.ALCHEMY> >= 33.0)
	ARGN2 += <EVAL ((<ARGN2>*(10*(<ALCHEMY>/330)))/100)>
	ENDIF
ENDIF
IF (<FINDID.i_rune_poison>)
FLOAT.CHANCETOCURE=<FLOATVAL (((<ARGN2>/10)*0.75)+(110-(<FINDID.i_rune_poison.F_POISONLEVEL>*33)))/100>
	IF (<FLOAT.CHANCETOCURE> <= <RANDOMDOUBLE>)
	SYSMESSAGELOC -1,1008073
	RETURN 1
	ENDIF
ENDIF
	

[Spell 12]
DEFNAME=s_harm
NAME=Harm
SOUND=snd_SPELL_HARM
RUNES=AM
CAST_TIME=0.7
RESOURCES=i_reag_nightshade,i_reag_spider_silk
RUNE_ITEM=i_rune_HARM
SCROLL_ITEM=i_scroll_HARM
FLAGS=SPELLFLAG_TARG_CHAR|SPELLFLAG_HARM|SPELLFLAG_FX_TARG|spellflag_playeronly
EFFECT_ID=i_fx_curse
EFFECT=5,7
DURATION=0.0
MANAUSE=6
SKILLREQ=SKILL_MAGERY 20.0
INTERRUPT=0.0,0.0

[Spell 13]
DEFNAME=s_magic_trap
NAME=Magic Trap
SOUND=snd_SPELL_MAGIC_TRAP
RUNES=IJ
CAST_TIME=0.7
RESOURCES=i_reag_garlic,i_reag_spider_silk,i_reag_sulfur_ash
RUNE_ITEM=i_rune_MAGIC_TRAP
SCROLL_ITEM=i_scroll_MAGIC_TRAP
FLAGS=SPELLFLAG_TARG_OBJ|spellflag_playeronly
EFFECT_ID=0
EFFECT=0
DURATION=0.0
MANAUSE=6
SKILLREQ=SKILL_MAGERY 20.0
INTERRUPT=0.0,0.0

[Spell 14]
DEFNAME=s_magic_untrap
NAME=Magic Untrap
SOUND=snd_SPELL_MAGIC_UNTRAP
RUNES=AJ
CAST_TIME=0.7
RESOURCES=i_reag_blood_moss,i_reag_sulfur_ash
RUNE_ITEM=i_rune_MAGIC_UNTRAP
SCROLL_ITEM=i_scroll_MAGIC_UNTRAP
FLAGS=SPELLFLAG_TARG_OBJ|spellflag_playeronly
EFFECT_ID=0
EFFECT=0
DURATION=0.0
MANAUSE=6
SKILLREQ=SKILL_MAGERY 20.0
INTERRUPT=0.0,0.0

[Spell 15]
DEFNAME=s_protection
NAME=Protection
SOUND=snd_SPELL_PROTECTION
RUNES=US
CAST_TIME=0.7
RESOURCES=i_reag_garlic,i_reag_ginseng,i_reag_sulfur_ash
RUNE_ITEM=i_rune_PROTECTION
SCROLL_ITEM=i_scroll_PROTECTION
FLAGS=SPELLFLAG_FX_TARG|SPELLFLAG_GOOD|spellflag_playeronly
EFFECT_ID=i_fx_BLESS_EFFECT
EFFECT=0,0
DURATION=60*60.0,90*60.0
MANAUSE=6
SKILLREQ=SKILL_MAGERY 20.0
INTERRUPT=0.0,0.0

[Spell 16]
DEFNAME=s_strength
NAME=Strength
SOUND=snd_SPELL_STRENGTH
RUNES=UM
CAST_TIME=0.7
RESOURCES=i_reag_mandrake_root,i_reag_nightshade
RUNE_ITEM=i_rune_STRENGTH
SCROLL_ITEM=i_scroll_STRENGTH
FLAGS=SPELLFLAG_TARG_CHAR|SPELLFLAG_FX_TARG|SPELLFLAG_GOOD|spellflag_playeronly
EFFECT_ID=i_fx_BLESS_EFFECT
EFFECT=5,15
DURATION=1*60.0,3*60.0
MANAUSE=6
SKILLREQ=SKILL_MAGERY 20.0
INTERRUPT=0.0,0.0

ON=@Effect
IF (<ARGO.ISITEM>)
	IF (<ARGO.TYPE>==T_POTION)
		IF (<FINDLAYER.LAYER_RING.TAG0.ENCHANCEPOTIONS>)
		ARGN2 += <EVAL ((<ARGN2>*<FINDLAYER.LAYER_RING.TAG0.ENCHANCEPOTIONS>)/100)>
		ENDIF
		IF (<FINDLAYER.LAYER_WRIST.TAG0.ENCHANCEPOTIONS>)
		ARGN2 += <EVAL ((<ARGN2>*<FINDLAYER.LAYER_WRIST.TAG0.ENCHANCEPOTIONS>)/100)>
		ENDIF
	ENDIF
	IF (<SRC.ALCHEMY> >= 33.0)
	ARGN2 += <EVAL ((<ARGN2>*(10*(<ALCHEMY>/330)))/100)>
	ENDIF
ENDIF

[EOF]