// lootlara t_spellgem ekleyerek loota ekleyebilirsiniz :S garip bir cümle oldu :D
[EVENTS e_spellgem] // tüm oyunculara verin
ON=@HIT
///////MAGICAL DAMAGES/////////
IF (<EVAL <ARGO.TAG0.MAGICSPELL>>=1)
src.spelleffect=s_flamestrike,1000 <uid>
ENDIF
IF (<EVAL <ARGO.TAG0.MAGICSPELL>>=2)
src.spelleffect=s_lightning,1000 <uid>
ENDIF
IF (<EVAL <ARGO.TAG0.MAGICSPELL>>=3)
src.spelleffect=s_harm,1000 <uid>
ENDIF
IF (<EVAL <ARGO.TAG0.MAGICSPELL>>=4)
src.spelleffect=s_explosion,1000 <uid>
ENDIF
IF (<EVAL <ARGO.TAG0.MAGICSPELL>>=5)
obj=<uid>
FORCHARS 11
if !(<uid>=<obj>)
spelleffect s_chain_lightning,10000 <obj>
endif
ENDFOR
ENDIF
IF (<EVAL <ARGO.TAG0.MAGICSPELL>>=6)
obj=<uid>
FORCHARS 11
if (<uid>!=<obj>)
spelleffect s_flamestrike,10000 <obj>
endif
ENDFOR
ENDIF
IF (<EVAL <ARGO.TAG0.MAGICSPELL>>=7)
IF (<hits><<str>)
hits += <eval <str>/20>
endif
if (<mana>><int>)
mana=<int>
endif
IF (<mana><<int>)
mana += <eval <int>/20>
endif
if (<mana>><int>)
mana=<int>
endif
ENDIF
IF (<EVAL <ARGO.TAG0.MAGICSPELL>>=8)
ARGN1 += <MANA>/2
MANA 0
ENDIF
[itemdef i_gem_manaflow]
ID=i_bottle_empty
NAME=Magical Potion
TYPE=t_script
ON=@CREATE
COLOR=0b51
TAG.MAGICAL 1
TAG.IDNAME="Mana Flow"
ON=@ContextMenuRequest
IF (<src.itemid>>980)
SRC.AddContextEntry 101,3006003,00
ELSE
SRC.AddContextEntry 100,3006003,01
ENDIF
ON=@ContextMenuSelect
IF (<ARGN> >= 100)
attr |= attr_identified
fix
update
ENDIF
ON=@Tooltip
IF (<attr>=01)
ADD_TOOLTIP Magical Spell Bottle
ADD_TOOLTIP [Mana Flow]
else
ADD_TOOLTIP Useable on weapons.
ENDIF
ON=@DCLICK
IF ( <CONT> != <SRC.FINDLAYER.21> )
src.SYSMESSAGE @,3,1 The item must be in your backpack.
RETURN 1
ENDIF
IF !(<attr>&attr_identified)
src.SYSMESSAGE @,3,1 You must identfy first to use this.
return 1
endif
IF !(<src.restest 1 i_gem_manaflow>)
src.SYSMESSAGE @,3,1 <name> must be in your pack.
return 1
endif
if (<src.armslore><980)
src.SYSMESSAGE @,3,1 You lack armslore skill to use this.
return 1
endif
TARGET @,3,1 What would you like to enchant?
RETURN 1
ON=@TARGON_ITEM
IF ( <SRC.TARG.cont> != <SRC.FINDLAYER.21> )
src.SYSMESSAGE @,3,1 <src.targ.name> must be in your backpack.
RETURN 1
ENDIF
if <src.targ.attr>&04
src.SYSMESSAGE @,3,1 You cannot bless newbified items.
RETURN 1
ENDIF
if (<src.targ.value><40)
src.sysMESSAGE @,3,1 You cannot bless <src.targ.name>.
return 1
endif
IF ((<src.targ.type>==t_weapon_sword) || (<src.targ.type>==t_weapon_mace_staff) || (<src.targ.type>==t_weapon_axe) || (<src.targ.type>==t_weapon_mace_smith) || (<src.targ.type>==t_weapon_fence) || (<src.targ.type>==t_weapon_mace_sharp) || (<src.targ.type>==t_weapon_bow) || (<src.targ.type>==t_weapon_xbow))
IF <SRC.TARG.TAG0.MAGICSPELL>>0
SRC.MESSAGE @,3,1 This is already magical.
RETURN 1
ENDIF
IF (<SRC.TARG.TOPOBJ.UID>==<SRC.UID>)
SRC.TARG.TAG.MAGICSPELL = 8
SRC.TARG.COLOR = 0b51
SRC.CONSUME 1 i_gem_manaflow
ELSE
SRC.MESSAGE @,3,1 It must be on your person!
ENDIF
ELSE
SRC.MESSAGE @,3,1 You cannot enchant this.
ENDIF
RETURN 1
[itemdef i_gem_heal]
ID=i_bottle_empty
NAME=Magical Potion
TYPE=t_script
ON=@CREATE
COLOR=0b18
TAG.MAGICAL 1
TAG.IDNAME="Refilling"
ON=@ContextMenuRequest
IF (<src.itemid>>980)
SRC.AddContextEntry 101,3006003,00
ELSE
SRC.AddContextEntry 100,3006003,01
ENDIF
ON=@ContextMenuSelect
IF (<ARGN> >= 100)
attr |= attr_identified
fix
update
ENDIF
ON=@Tooltip
IF (<attr>=01)
ADD_TOOLTIP Magical Spell Bottle
ADD_TOOLTIP [Refilling]
else
ADD_TOOLTIP Useable on weapons.
ENDIF
ON=@DCLICK
IF ( <CONT> != <SRC.FINDLAYER.21> )
src.SYSMESSAGE @,3,1 The item must be in your backpack.
RETURN 1
ENDIF
IF !(<attr>&attr_identified)
src.SYSMESSAGE @,3,1 You must identfy first to use this.
return 1
endif
IF !(<src.restest 1 i_gem_heal>)
src.SYSMESSAGE @,3,1 <name> must be in your pack.
return 1
endif
if (<src.armslore><980)
src.SYSMESSAGE @,3,1 You lack armslore skill to use this.
return 1
endif
TARGET @,3,1 What would you like to enchant?
RETURN 1
ON=@TARGON_ITEM
IF ( <SRC.TARG.cont> != <SRC.FINDLAYER.21> )
src.SYSMESSAGE @,3,1 <src.targ.name> must be in your backpack.
RETURN 1
ENDIF
if <src.targ.attr>&04
src.SYSMESSAGE @,3,1 You cannot bless newbified items.
RETURN 1
ENDIF
if (<src.targ.value><40)
src.sysMESSAGE @,3,1 You cannot bless <src.targ.name>.
return 1
endif
IF ((<src.targ.type>==t_weapon_sword) || (<src.targ.type>==t_weapon_mace_staff) || (<src.targ.type>==t_weapon_axe) || (<src.targ.type>==t_weapon_mace_smith) || (<src.targ.type>==t_weapon_fence) || (<src.targ.type>==t_weapon_mace_sharp) || (<src.targ.type>==t_weapon_bow) || (<src.targ.type>==t_weapon_xbow))
IF <SRC.TARG.TAG0.MAGICSPELL>>0
SRC.MESSAGE @,3,1 This is already magical.
RETURN 1
ENDIF
IF (<SRC.TARG.TOPOBJ.UID>==<SRC.UID>)
SRC.TARG.TAG.MAGICSPELL = 7
SRC.TARG.COLOR = 0b18
SRC.CONSUME 1 i_gem_heal
ELSE
SRC.MESSAGE @,3,1 It must be on your person!
ENDIF
ELSE
SRC.MESSAGE @,3,1 You cannot enchant this.
ENDIF
RETURN 1
[itemdef i_gem_infernalstrike]
ID=i_bottle_empty
NAME=Magical Potion
TYPE=t_script
ON=@CREATE
COLOR=0b94
TAG.MAGICAL 1
TAG.IDNAME="Infernal Strike"
ON=@ContextMenuRequest
IF (<src.itemid>>980)
SRC.AddContextEntry 101,3006003,00
ELSE
SRC.AddContextEntry 100,3006003,01
ENDIF
ON=@ContextMenuSelect
IF (<ARGN> >= 100)
attr |= attr_identified
fix
update
ENDIF
ON=@Tooltip
IF (<attr>=01)
ADD_TOOLTIP Magical Spell Bottle
ADD_TOOLTIP [Infernal Strike]
else
ADD_TOOLTIP Useable on weapons.
ENDIF
ON=@DCLICK
IF ( <CONT> != <SRC.FINDLAYER.21> )
src.SYSMESSAGE @,3,1 The item must be in your backpack.
RETURN 1
ENDIF
IF !(<attr>&attr_identified)
src.SYSMESSAGE @,3,1 You must identfy first to use this.
return 1
endif
IF !(<src.restest 1 i_gem_infernalstrike>)
src.SYSMESSAGE @,3,1 <name> must be in your pack.
return 1
endif
if (<src.armslore><980)
src.SYSMESSAGE @,3,1 You lack armslore skill to use this.
return 1
endif
TARGET @,3,1 What would you like to enchant?
RETURN 1
ON=@TARGON_ITEM
IF ( <SRC.TARG.cont> != <SRC.FINDLAYER.21> )
src.SYSMESSAGE @,3,1 <src.targ.name> must be in your backpack.
RETURN 1
ENDIF
if <src.targ.attr>&04
src.SYSMESSAGE @,3,1 You cannot bless newbified items.
RETURN 1
ENDIF
if (<src.targ.value><40)
src.sysMESSAGE @,3,1 You cannot bless <src.targ.name>.
return 1
endif
IF ((<src.targ.type>==t_weapon_sword) || (<src.targ.type>==t_weapon_mace_staff) || (<src.targ.type>==t_weapon_axe) || (<src.targ.type>==t_weapon_mace_smith) || (<src.targ.type>==t_weapon_fence) || (<src.targ.type>==t_weapon_mace_sharp) || (<src.targ.type>==t_weapon_bow) || (<src.targ.type>==t_weapon_xbow))
IF <SRC.TARG.TAG0.MAGICSPELL>>0
SRC.MESSAGE @,3,1 This is already magical.
RETURN 1
ENDIF
IF (<SRC.TARG.TOPOBJ.UID>==<SRC.UID>)
SRC.TARG.TAG.MAGICSPELL = 6
SRC.TARG.COLOR = 0b94
SRC.CONSUME 1 i_gem_infernalstrike
ELSE
SRC.MESSAGE @,3,1 It must be on your person!
ENDIF
ELSE
SRC.MESSAGE @,3,1 You cannot enchant this.
ENDIF
RETURN 1
[itemdef i_gem_flamestrike]
ID=i_bottle_empty
NAME=Magical Potion
TYPE=t_script
ON=@CREATE
COLOR=0b49
TAG.MAGICAL 1
TAG.IDNAME="Flame Strike"
ON=@ContextMenuRequest
IF (<src.itemid>>980)
SRC.AddContextEntry 101,3006003,00
ELSE
SRC.AddContextEntry 100,3006003,01
ENDIF
ON=@ContextMenuSelect
IF (<ARGN> >= 100)
attr |= attr_identified
fix
update
ENDIF
ON=@Tooltip
IF (<attr>=01)
ADD_TOOLTIP Magical Spell Bottle
ADD_TOOLTIP [Flame Strike]
else
ADD_TOOLTIP Useable on weapons.
ENDIF
ON=@DCLICK
IF ( <CONT> != <SRC.FINDLAYER.21> )
src.SYSMESSAGE @,3,1 The item must be in your backpack.
RETURN 1
ENDIF
IF !(<attr>&attr_identified)
src.SYSMESSAGE @,3,1 You must identfy first to use this.
return 1
endif
IF !(<src.restest 1 i_gem_flamestrike>)
src.SYSMESSAGE @,3,1 <name> must be in your pack.
return 1
endif
if (<src.armslore><980)
src.SYSMESSAGE @,3,1 You lack armslore skill to use this.
return 1
endif
TARGET @,3,1 What would you like to enchant?
RETURN 1
ON=@TARGON_ITEM
IF ( <SRC.TARG.cont> != <SRC.FINDLAYER.21> )
src.SYSMESSAGE @,3,1 <src.targ.name> must be in your backpack.
RETURN 1
ENDIF
if <src.targ.attr>&04
src.SYSMESSAGE @,3,1 You cannot bless newbified items.
RETURN 1
ENDIF
if (<src.targ.value><40)
src.sysMESSAGE @,3,1 You cannot bless <src.targ.name>.
return 1
endif
IF ((<src.targ.type>==t_weapon_sword) || (<src.targ.type>==t_weapon_mace_staff) || (<src.targ.type>==t_weapon_axe) || (<src.targ.type>==t_weapon_mace_smith) || (<src.targ.type>==t_weapon_fence) || (<src.targ.type>==t_weapon_mace_sharp) || (<src.targ.type>==t_weapon_bow) || (<src.targ.type>==t_weapon_xbow))
IF <SRC.TARG.TAG0.MAGICSPELL>>0
SRC.MESSAGE @,3,1 This is already magical.
RETURN 1
ENDIF
IF (<SRC.TARG.TOPOBJ.UID>==<SRC.UID>)
SRC.TARG.TAG.MAGICSPELL = 1
SRC.TARG.COLOR = 0b49
SRC.CONSUME 1 i_gem_flamestrike
ELSE
SRC.MESSAGE @,3,1 It must be on your person!
ENDIF
ELSE
SRC.MESSAGE @,3,1 You cannot enchant this.
ENDIF
RETURN 1
[itemdef i_gem_lightning]
ID=i_bottle_empty
NAME=Magical Potion
TYPE=t_script
ON=@CREATE
COLOR=0b22
TAG.MAGICAL 1
TAG.IDNAME="Lightning"
ON=@ContextMenuRequest
IF (<src.itemid>>980)
SRC.AddContextEntry 101,3006003,00
ELSE
SRC.AddContextEntry 100,3006003,01
ENDIF
ON=@ContextMenuSelect
IF (<ARGN> >= 100)
attr |= attr_identified
fix
update
ENDIF
ON=@Tooltip
IF (<attr>=01)
ADD_TOOLTIP Magical Spell Bottle
ADD_TOOLTIP [Lightning]
else
ADD_TOOLTIP Useable on weapons.
ENDIF
ON=@DCLICK
IF ( <CONT> != <SRC.FINDLAYER.21> )
src.SYSMESSAGE @,3,1 The item must be in your backpack.
RETURN 1
ENDIF
IF !(<attr>&attr_identified)
src.SYSMESSAGE @,3,1 You must identfy first to use this.
return 1
endif
IF !(<src.restest 1 i_gem_lightning>)
src.SYSMESSAGE @,3,1 <name> must be in your pack.
return 1
endif
if (<src.armslore><980)
src.SYSMESSAGE @,3,1 You lack armslore skill to use this.
return 1
endif
TARGET @,3,1 What would you like to enchant?
RETURN 1
ON=@TARGON_ITEM
IF ( <SRC.TARG.cont> != <SRC.FINDLAYER.21> )
src.SYSMESSAGE @,3,1 <src.targ.name> must be in your backpack.
RETURN 1
ENDIF
if <src.targ.attr>&04
src.SYSMESSAGE @,3,1 You cannot bless newbified items.
RETURN 1
ENDIF
if (<src.targ.value><40)
src.sysMESSAGE @,3,1 You cannot bless <src.targ.name>.
return 1
endif
IF ((<src.targ.type>==t_weapon_sword) || (<src.targ.type>==t_weapon_mace_staff) || (<src.targ.type>==t_weapon_axe) || (<src.targ.type>==t_weapon_mace_smith) || (<src.targ.type>==t_weapon_fence) || (<src.targ.type>==t_weapon_mace_sharp) || (<src.targ.type>==t_weapon_bow) || (<src.targ.type>==t_weapon_xbow))
IF <SRC.TARG.TAG0.MAGICSPELL>>0
SRC.MESSAGE @,3,1 This is already magical.
RETURN 1
ENDIF
IF (<SRC.TARG.TOPOBJ.UID>==<SRC.UID>)
SRC.TARG.TAG.MAGICSPELL = 2
SRC.TARG.COLOR = 0b22
SRC.CONSUME 1 i_gem_lightning
ELSE
SRC.MESSAGE @,3,1 It must be on your person!
ENDIF
ELSE
SRC.MESSAGE @,3,1 You cannot enchant this.
ENDIF
RETURN 1
[itemdef i_gem_harm]
ID=i_bottle_empty
NAME=Magical Potion
TYPE=t_script
ON=@CREATE
COLOR=066d
TAG.MAGICAL 1
TAG.IDNAME="Harm"
ON=@ContextMenuRequest
IF (<src.itemid>>980)
SRC.AddContextEntry 101,3006003,00
ELSE
SRC.AddContextEntry 100,3006003,01
ENDIF
ON=@ContextMenuSelect
IF (<ARGN> >= 100)
attr |= attr_identified
fix
update
ENDIF
ON=@Tooltip
IF (<attr>=01)
ADD_TOOLTIP Magical Spell Bottle
ADD_TOOLTIP [Harm]
else
ADD_TOOLTIP Useable on weapons.
ENDIF
ON=@DCLICK
IF ( <CONT> != <SRC.FINDLAYER.21> )
src.SYSMESSAGE @,3,1 The item must be in your backpack.
RETURN 1
ENDIF
IF !(<attr>&attr_identified)
src.SYSMESSAGE @,3,1 You must identfy first to use this.
return 1
endif
IF !(<src.restest 1 i_gem_harm>)
src.SYSMESSAGE @,3,1 <name> must be in your pack.
return 1
endif
if (<src.armslore><980)
src.SYSMESSAGE @,3,1 You lack armslore skill to use this.
return 1
endif
TARGET @,3,1 What would you like to enchant?
RETURN 1
ON=@TARGON_ITEM
IF ( <SRC.TARG.cont> != <SRC.FINDLAYER.21> )
src.SYSMESSAGE @,3,1 <src.targ.name> must be in your backpack.
RETURN 1
ENDIF
if <src.targ.attr>&04
src.SYSMESSAGE @,3,1 You cannot bless newbified items.
RETURN 1
ENDIF
if (<src.targ.value><40)
src.sysMESSAGE @,3,1 You cannot bless <src.targ.name>.
return 1
endif
IF ((<src.targ.type>==t_weapon_sword) || (<src.targ.type>==t_weapon_mace_staff) || (<src.targ.type>==t_weapon_axe) || (<src.targ.type>==t_weapon_mace_smith) || (<src.targ.type>==t_weapon_fence) || (<src.targ.type>==t_weapon_mace_sharp) || (<src.targ.type>==t_weapon_bow) || (<src.targ.type>==t_weapon_xbow))
IF <SRC.TARG.TAG0.MAGICSPELL>>0
SRC.MESSAGE @,3,1 This is already magical.
RETURN 1
ENDIF
IF (<SRC.TARG.TOPOBJ.UID>==<SRC.UID>)
SRC.TARG.TAG.MAGICSPELL = 3
SRC.TARG.COLOR = 066d
SRC.CONSUME 1 i_gem_harm
ELSE
SRC.MESSAGE @,3,1 It must be on your person!
ENDIF
ELSE
SRC.MESSAGE @,3,1 You cannot enchant this.
ENDIF
RETURN 1
[itemdef i_gem_explosion]
ID=i_bottle_empty
NAME=Magical Potion
TYPE=t_script
ON=@CREATE
COLOR=0ba1
TAG.MAGICAL 1
TAG.IDNAME="Explosion"
ON=@ContextMenuRequest
IF (<src.itemid>>980)
SRC.AddContextEntry 101,3006003,00
ELSE
SRC.AddContextEntry 100,3006003,01
ENDIF
ON=@ContextMenuSelect
IF (<ARGN> >= 100)
attr |= attr_identified
fix
update
ENDIF
ON=@Tooltip
IF (<attr>=01)
ADD_TOOLTIP Magical Spell Bottle
ADD_TOOLTIP [Explosion]
else
ADD_TOOLTIP Useable on weapons.
ENDIF
ON=@DCLICK
IF ( <CONT> != <SRC.FINDLAYER.21> )
src.SYSMESSAGE @,3,1 The item must be in your backpack.
RETURN 1
ENDIF
IF !(<attr>&attr_identified)
src.SYSMESSAGE @,3,1 You must identfy first to use this.
return 1
endif
IF !(<src.restest 1 i_gem_explosion>)
src.SYSMESSAGE @,3,1 <name> must be in your pack.
return 1
endif
if (<src.armslore><980)
src.SYSMESSAGE @,3,1 You lack armslore skill to use this.
return 1
endif
TARGET @,3,1 What would you like to enchant?
RETURN 1
ON=@TARGON_ITEM
IF ( <SRC.TARG.cont> != <SRC.FINDLAYER.21> )
src.SYSMESSAGE @,3,1 <src.targ.name> must be in your backpack.
RETURN 1
ENDIF
if <src.targ.attr>&04
src.SYSMESSAGE @,3,1 You cannot bless newbified items.
RETURN 1
ENDIF
if (<src.targ.value><40)
src.sysMESSAGE @,3,1 You cannot bless <src.targ.name>.
return 1
endif
IF ((<src.targ.type>==t_weapon_sword) || (<src.targ.type>==t_weapon_mace_staff) || (<src.targ.type>==t_weapon_axe) || (<src.targ.type>==t_weapon_mace_smith) || (<src.targ.type>==t_weapon_fence) || (<src.targ.type>==t_weapon_mace_sharp) || (<src.targ.type>==t_weapon_bow) || (<src.targ.type>==t_weapon_xbow))
IF <SRC.TARG.TAG0.MAGICSPELL>>0
SRC.MESSAGE @,3,1 This is already magical.
RETURN 1
ENDIF
IF (<SRC.TARG.TOPOBJ.UID>==<SRC.UID>)
SRC.TARG.TAG.MAGICSPELL = 4
SRC.TARG.COLOR = 0ba1
SRC.CONSUME 1 i_gem_explosion
ELSE
SRC.MESSAGE @,3,1 It must be on your person!
ENDIF
ELSE
SRC.MESSAGE @,3,1 You cannot enchant this.
ENDIF
RETURN 1
[itemdef i_gem_chainlight]
ID=i_bottle_empty
NAME=Magical Potion
TYPE=t_script
ON=@CREATE
COLOR=0480
TAG.MAGICAL 1
TAG.IDNAME="Chain Lightning"
ON=@ContextMenuRequest
IF (<src.itemid>>980)
SRC.AddContextEntry 101,3006003,00
ELSE
SRC.AddContextEntry 100,3006003,01
ENDIF
ON=@ContextMenuSelect
IF (<ARGN> >= 100)
attr |= attr_identified
fix
update
ENDIF
ON=@Tooltip
IF (<attr>=01)
ADD_TOOLTIP Magical Spell Bottle
ADD_TOOLTIP [Chain Lightning]
else
ADD_TOOLTIP Useable on weapons.
ENDIF
ON=@DCLICK
IF ( <CONT> != <SRC.FINDLAYER.21> )
src.SYSMESSAGE @,3,1 The item must be in your backpack.
RETURN 1
ENDIF
IF !(<attr>&attr_identified)
src.SYSMESSAGE @,3,1 You must identfy first to use this.
return 1
endif
IF !(<src.restest 1 i_gem_chainlight>)
src.SYSMESSAGE @,3,1 <name> must be in your pack.
return 1
endif
if (<src.armslore><980)
src.SYSMESSAGE @,3,1 You lack armslore skill to use this.
return 1
endif
TARGET @,3,1 What would you like to enchant?
RETURN 1
ON=@TARGON_ITEM
IF ( <SRC.TARG.cont> != <SRC.FINDLAYER.21> )
src.SYSMESSAGE @,3,1 <src.targ.name> must be in your backpack.
RETURN 1
ENDIF
if <src.targ.attr>&04
src.SYSMESSAGE @,3,1 You cannot bless newbified items.
RETURN 1
ENDIF
if (<src.targ.value><40)
src.sysMESSAGE @,3,1 You cannot bless <src.targ.name>.
return 1
endif
IF ((<src.targ.type>==t_weapon_sword) || (<src.targ.type>==t_weapon_mace_staff) || (<src.targ.type>==t_weapon_axe) || (<src.targ.type>==t_weapon_mace_smith) || (<src.targ.type>==t_weapon_fence) || (<src.targ.type>==t_weapon_mace_sharp) || (<src.targ.type>==t_weapon_bow) || (<src.targ.type>==t_weapon_xbow))
IF <SRC.TARG.TAG0.MAGICSPELL>>0
SRC.MESSAGE @,3,1 This is already magical.
RETURN 1
ENDIF
IF (<SRC.TARG.TOPOBJ.UID>==<SRC.UID>)
SRC.TARG.TAG.MAGICSPELL = 5
SRC.TARG.COLOR = 0480
SRC.CONSUME 1 i_gem_chainlight
ELSE
SRC.MESSAGE @,3,1 It must be on your person!
ENDIF
ELSE
SRC.MESSAGE @,3,1 You cannot enchant this.
ENDIF
RETURN 1
[TEMPLATE t_spellgem]
ITEM={ i_gem_manaflow 1 i_gem_flamestrike 15 i_gem_harm 70 i_gem_lightning 50 i_gem_explosion 30 i_gem_chainlight 10 i_gem_heal 10 i_gem_infernalstrike 10 }