[ITEMDEF 0238c]
defname=i_spellbook_bushido
type=t_spellbook_bushido
name=Book of Bushido
weight=1
resources=80 i_parchment,1 i_hide, 1 i_cloth
layer=1

ON=@Create
	ATTR=attr_magic|attr_newbie
	CATEGORY=Provisions - Alchemy & Magic
	SUBSECTION=Bushido
	DESCRIPTION=Bushido Spellbook
	
[ITEMDEF 023a0]
defname=i_spellbook_ninjitsu
type=t_spellbook_ninjitsu
name=Book of Ninjitsu
weight=1
resources=80 i_parchment,1 i_hide, 1 i_cloth
layer=1

ON=@Create
	ATTR=attr_magic|attr_newbie
	CATEGORY=Provisions - Alchemy & Magic
	SUBSECTION=Ninjitsu
	DESCRIPTION=Ninjitsu Spellbook
	
[ITEMDEF 02d50]
defname=i_spellbook_arcanist
type=t_spellbook_arcanist
name=Book of Arcanist
weight=1
resources=80 i_parchment,1 i_hide, 1 i_cloth
layer=1

ON=@Create
	ATTR=attr_magic|attr_newbie
	CATEGORY=Provisions - Alchemy & Magic
	SUBSECTION=Arcanist
	DESCRIPTION=Arcanist Spellbook

[itemdef 8785]
DEFNAME=i_daemon_skull
NAME=Daemon Skull
TYPE=t_normal
VALUE=5000

[itemdef 8753]
DEFNAME=i_giant_mush
NAME=Giant Mushroom
TYPE=t_normal

[itemdef 8754]
DEFNAME=i_ant_hill
NAME=Ant Hill
TYPE=t_normal

[itemdef 9000]
DEFNAME=i_snowman
NAME=Snow Man
TYPE=t_normal

[itemdef 9002]
DEFNAME=i_giftbox
NAME=Gift Box
TYPE=t_normal

[itemdef 9935]
DEFNAME=i_paladin_sword
NAME=Paladin Sword
TYPE=t_weapon_sword
SKILL=swordsmanship
SPEED=24
DAM=16,22

ON=@create
hitpoints={50 100}

[itemdef 9921]
DEFNAME=i_double_blade
NAME=Crescent Blade
TYPE=t_weapon_sword
SKILL=swordsmanship
SPEED=47
DAM=11,14
RESOURCES=20 i_ingot_iron
SKILLMAKE=SKILL_BLACKSMITH 90.0
WEIGHT=6.5
REQSTR=55
TWOHANDS=Y

ON=@create
hitpoints={50 100}

[itemdef 9920]
DEFNAME=i_lance
NAME=Lance
TYPE=t_weapon_fence
SKILL=Fencing
SPEED=24
DAM=17,18
REQSTR=95
TWOHANDS=N
WEIGHT=9
RESOURCES=20 i_ingot_iron
SKILLMAKE=SKILL_BLACKSMITH 48.0

ON=@create
hitpoints={50 100}

[itemdef 9914]
DEFNAME=i_scyth
NAME=Scythe
TYPE=t_weapon_fence
SKILL=Fencing
SPEED=32
DAM=15,18
REQSTR=45
RESOURCES=20 i_ingot_iron
SKILLMAKE=SKILL_BLACKSMITH 45.0
WEIGHT=6.0

ON=@create
hitpoints={50 100}

[ITEMDEF 026BB]
DEFNAME=i_bone_harvester
NAME=Bone Harvester
TYPE=T_WEAPON_SWORD
FLIP=1
DAM=13,15
SPEED=36
SKILL=Swordsmanship
REQSTR=25
TWOHANDS=N
WEIGHT=3
CATEGORY=Provisions - Weapons
SUBSECTION=Age of Shadows
DESCRIPTION=Bone Harvester
SKILLMAKE=SKILL_BLACKSMITH 60.0
RESOURCES=10 i_ingot_iron

ON=@create
hitpoints={50 100}

[ITEMDEF 026BC]
DEFNAME=i_scepter
NAME=Scepter
TYPE=T_WEAPON_MACE_SMITH
FLIP=1
DAM=14,17
SPEED=30
SKILL=Macefighting
REQSTR=40
TWOHANDS=N
WEIGHT=8
CATEGORY=Provisions - Weapons
SUBSECTION=Age of Shadows
DESCRIPTION=Scepter
SKILLMAKE=SKILL_BLACKSMITH 60.0
RESOURCES=10 i_ingot_iron

ON=@create
hitpoints={50 100}

[ITEMDEF 10150]
DEFNAME=i_tetsubo
TYPE=T_WEAPON_MACE_SMITH
NAME=Tetsubo
DAM=12,14
SPEED=45
SKILL=Macefighting
REQSTR=35
TWOHANDS=Y
WEIGHT=8
CATEGORY=Provisions - Weapons
SUBSECTION=Age of Shadows
DESCRIPTION=Tetsubo
SKILLMAKE=SKILL_CARPENTRY 80.0
RESOURCES=10 i_log

ON=@create
hitpoints={50 100}

[ITEMDEF 026BD]
DEFNAME=i_bladed_staff
NAME=Bladed Staff
TYPE=T_WEAPON_SWORD
FLIP=1
DAM=14,16
SPEED=37
SKILL=Swordsmanship
REQSTR=40
TWOHANDS=Y
WEIGHT=4
CATEGORY=Provisions - Weapons
SUBSECTION=Age of Shadows
DESCRIPTION=Bladed Staff
SKILLMAKE=SKILL_BLACKSMITH 55.0
RESOURCES=12 i_ingot_iron

ON=@create
hitpoints={50 100}

[ITEMDEF 10157]
DEFNAME=i_kama
NAME=Kama
TYPE=T_WEAPON_FENCE
DAM=9,11
SPEED=55
SKILL=Fencing
REQSTR=15
TWOHANDS=Y
WEIGHT=6
CATEGORY=Provisions - Weapons
SUBSECTION=Age of Shadows
DESCRIPTION=Kama
SKILLMAKE=SKILL_BLACKSMITH 40.0
RESOURCES=14 i_ingot_iron

ON=@create
hitpoints={50 100}

[ITEMDEF 10151]
DEFNAME=i_Lajatang
NAME=Lajatang
TYPE=T_WEAPON_FENCE
DAM=16,28
SPEED=32
SKILL=Fencing
REQSTR=65
TWOHANDS=Y
WEIGHT=12
CATEGORY=Provisions - Weapons
SUBSECTION=Age of Shadows
DESCRIPTION=Lajatang
SKILLMAKE=SKILL_BLACKSMITH 90.0
RESOURCES=25 i_ingot_iron

ON=@create
hitpoints={50 100}

[ITEMDEF 026BE]
DEFNAME=i_pike
TYPE=T_WEAPON_FENCE
FLIP=1
DAM=14,16
SPEED=37
SKILL=Fencing
REQSTR=50
TWOHANDS=Y
WEIGHT=8
CATEGORY=Provisions - Weapons
SUBSECTION=Age of Shadows
DESCRIPTION=Pike
SKILLMAKE=SKILL_BLACKSMITH 70.0
RESOURCES=12 i_ingot_iron

ON=@create
hitpoints={50 100}

[ITEMDEF 026BF]
DEFNAME=i_double_bladed_staff
NAME=Double Bladed Staff
TYPE=T_WEAPON_FENCE
FLIP=1
DAM=12,13
SPEED=49
SKILL=Fencing
REQSTR=50
TWOHANDS=Y
WEIGHT=2
CATEGORY=Provisions - Weapons
SUBSECTION=Age of Shadows
DESCRIPTION=Double Bladed Staff
SKILLMAKE=SKILL_BLACKSMITH 85.0
RESOURCES=16 i_ingot_iron

ON=@create
hitpoints={50 100}

[ITEMDEF i_gem_arcane]
ID=i_worldgem_lg
TYPE=T_EQ_SCRIPT
VALUE=5000
CATEGORY=Provisions - Jewels and Jewelry
SUBSECTION=Special Jewels
DESCRIPTION=Arcane Gem

ON=@DCLICK
   TARGET Select the item you wish to enchant
   RETURN 1

ON=@TARGON_ITEM
   IF (<SRC.TARG.ID>==01f03)||(<SRC.TARG.ID>==01515)||(<SRC.TARG.ID>==01711)||(<SRC.TARG.ID>==013c6)
      IF (<SRC.TARG.TOPOBJ.UID>==<SRC.UID>)
         IF (<SRC.TARG.QUALITY> > 176)
            IF !(<SRC.TARG.ATTR>&(attr_magic|attr_newbie))
               SRC.EMOTE enchant the <SRC.TARG.NAME>
               SRC.SOUND snd_SPELL_PROTECTION
               IF (<SRC.TARG.ID>==01f03)
                  SRC.NEWITEM i_robe_arcane
                  SRC.NEW.QUALITY={177 200}
               ELSEIF (<SRC.TARG.ID>==01515)
                  SRC.NEWITEM i_cape_arcane
                  SRC.NEW.QUALITY={177 200}
               ELSEIF (<SRC.TARG.ID>==01711)
                  SRC.NEWITEM i_boots_thigh_arcane
                  SRC.NEW.QUALITY={177 200}
               ELSEIF (<SRC.TARG.ID>==013c6)
                  SRC.NEWITEM i_leather_gloves_arcane
                  SRC.NEW.QUALITY={177 200}
               ELSE
                  SERV.LOG Logic error in i_gem_arcane
               ENDIF
               NEW.NAME=<SRC.NEW.NAME> crafted by <SRC.NAME>
               NEW.ATTR=021
               NEW.BOUNCE
               SRC.TARG.REMOVE
               REMOVE
            ELSE
               SRC.SYSMESSAGE @021 That clothing is already enchanted
            ENDIF
         ELSE
            SRC.SYSMESSAGE @021 The clothing you wish to enchant must be exceptional
         ENDIF
      ELSE
         SRC.SYSMESSAGE @021 The clothing you wish to enchant must be in your backpac
      ENDIF
   ELSEIF (<SRC.TARG.ID>==026ad)||(<SRC.TARG.ID>==026ae)||(<SRC.TARG.ID>==026af)||(<SRC.TARG.ID>==026b0)
      SRC.EMOTE recharge <SRC.TARG.NAME>
      SRC.TARG.MORE2=<SRC.TARG.MORE2> + <EVAL <SRC.TAILORING>/50>
      IF (<SRC.TARG.MORE2>>24)
         SRC.TARG.MORE2=24
      ENDIF
      SRC.SYSMESSAGE @030 The <SRC.TARG.NAME> now has <EVAL <SRC.TARG.MORE2>> charges
   ELSE
      SRC.SYSMESSAGE @021 You can not enchant that item with this gem
   ENDIF
   RETURN 1

[EVENTS e_arcane_clothing]
ON=@SPELLCAST
   // This event does nothing since @SPELLCAST is not called if the caster
   // has no regs ... sigh
   IF (<CANCAST <ARGN>>==0)
      SYSMESSAGE You can not cast this spell ... but the Arcane robe uses a charge to help you!
      TRY CAST <ARGN>
   ENDIF
   RETURN 1

[FUNCTION f_arcane_equip]
   IF (<MORE2> > 0)
      SRC.EVENTS +e_arcane_clothing
      SRC.SOUND=0fd
      SRC.EFFECT=3,i_fx_bless_effect,6,16,0
   ENDIF

[FUNCTION f_arcane_unequip]
   LOCAL.KeepEvent=0
   IF (<ARGN>=026ad)
      IF (<SRC.FINDLAYER(22).ID>==026ae)&&(<SRC.FINDLAYER(22).MORE2>>0)
         LOCAL.KeepEvent=1
      ELSEIF (<SRC.FINDLAYER(3).ID>==026af)&&(<SRC.FINDLAYER(3).MORE2>>0)
         LOCAL.KeepEvent=1
      ELSEIF (<SRC.FINDLAYER(7).ID>==026b0)&&(<SRC.FINDLAYER(7).MORE2>>0)
         LOCAL.KeepEvent=1
      ELSE
         LOCAL.KeepEvent=0
      ENDIF
   ELSEIF (<ARGN>=026ae)
      IF (<SRC.FINDLAYER(20).ID>==026ad)&&(<SRC.FINDLAYER(20).MORE2>>0)
         LOCAL.KeepEvent=1
      ELSEIF (<SRC.FINDLAYER(3).ID>==026af)&&(<SRC.FINDLAYER(3).MORE2>>0)
         LOCAL.KeepEvent=1
      ELSEIF (<SRC.FINDLAYER(7).ID>==026b0)&&(<SRC.FINDLAYER(7).MORE2>>0)
         LOCAL.KeepEvent=1
      ELSE
         LOCAL.KeepEvent=0
      ENDIF
   ELSEIF (<ARGN>=026af)
      IF (<SRC.FINDLAYER(20).ID>==026ad)&&(<SRC.FINDLAYER(20).MORE2>>0)
         LOCAL.KeepEvent=1
      ELSEIF (<SRC.FINDLAYER(22).ID>==026ae)&&(<SRC.FINDLAYER(22).MORE2>>0)
         LOCAL.KeepEvent=1
      ELSEIF (<SRC.FINDLAYER(7).ID>==026b0)&&(<SRC.FINDLAYER(7).MORE2>>0)
         LOCAL.KeepEvent=1
      ELSE
         LOCAL.KeepEvent=0
      ENDIF
   ELSEIF (<ARGN>=026b0)
      IF (<SRC.FINDLAYER(20).ID>==026ad)&&(<SRC.FINDLAYER(20).MORE2>>0)
         LOCAL.KeepEvent=1
      ELSEIF (<SRC.FINDLAYER(22).ID>==026ae)&&(<SRC.FINDLAYER(22).MORE2>>0)
         LOCAL.KeepEvent=1
      ELSEIF (<SRC.FINDLAYER(3).ID>==026af)&&(<SRC.FINDLAYER(3).MORE2>>0)
         LOCAL.KeepEvent=1
      ELSE
         LOCAL.KeepEvent=0
      ENDIF
   ELSE
      SERV.LOG logic error in f_arcane_unequip
   ENDIF
   IF (<LOCAL.KeepEvent>==0)
      SRC.EVENTS -e_arcane_clothing
      SRC.SOUND=0fd
   ENDIF

[ITEMDEF 026ad]
DEFNAME=i_cape_arcane
NAME=Arcane Cloak
TYPE=t_clothing
REQSTR=16
WEIGHT=5
DYE=1
RESOURCES=14 i_cloth, 1 i_thread, 1 i_gem_arcane
SKILLMAKE=TAILORING 45.4, t_sewing_kit
CATEGORY=Provisions - Clothes
SUBSECTION=Magic
DESCRIPTION=Arcane Cloak
ON=@CREATE
   HITPOINTS={50 100}
   MORE2=24

ON=@EQUIP
   f_arcane_equip
ON=@UNEQUIP
   f_arcane_unequip 026ad
ON=@CLIENTTOOLTIP
   SRC.ADDCLILOC 1060728,<EVAL <MORE2>>,24

[ITEMDEF 026ae]
DEFNAME=i_robe_arcane
NAME=Arcane Robe
TYPE=t_clothing
REQSTR=32
WEIGHT=3
DYE=1
RESOURCES=16 i_cloth, 1 i_thread, 1 i_gem_arcane
SKILLMAKE=TAILORING 59.0, t_sewing_kit
CATEGORY=Provisions - Clothes
SUBSECTION=Magic
DESCRIPTION=Arcane Robe

ON=@CREATE
   HITPOINTS={50 100}
   MORE2=24

ON=@EQUIP
   f_arcane_equip
ON=@UNEQUIP
   f_arcane_unequip 026ae
ON=@CLIENTTOOLTIP
   SRC.ADDCLILOC 1060728,<EVAL <MORE2>>,24

[ITEMDEF 026af]
DEFNAME=i_boots_thigh_arcane
NAME=Arcane Thigh Boots
TYPE=T_CLOTHING
REQSTR=8
WEIGHT=5
DYE=1
RESOURCES=10 i_hides_cut, 1 i_thread, 1 i_gem_arcane
SKILLMAKE=TAILORING 25.0, t_sewing_kit
CATEGORY=Provisions - Clothes
SUBSECTION=Magic
DESCRIPTION=Arcane Thigh Boots
ON=@CREATE
   HITPOINTS={50 100}
   MORE2=24
ON=@EQUIP
   f_arcane_equip
ON=@UNEQUIP
   f_arcane_unequip 026af
ON=@CLIENTTOOLTIP
   SRC.ADDCLILOC 1060728,<EVAL <MORE2>>,24

[ITEMDEF 026b0]
DEFNAME=i_leather_gloves_arcane
NAME=Arcane Leather Gloves
TYPE=t_armor_leather
REQSTR=8
WEIGHT=1
DYE=1
ARMOR=13
REQSTR=10
RESOURCES=3 i_hides_cut, 1 i_gem_arcane
SKILLMAKE=TAILORING 56.8, t_sewing_kit
CATEGORY=Provisions - Armor
SUBSECTION=Magic
DESCRIPTION=Arcane Leather Gloves
ON=@CREATE
   HITPOINTS={50 100}
   MORE2=24
ON=@EQUIP
   f_arcane_equip
ON=@UNEQUIP
   f_arcane_unequip 026b0
ON=@CLIENTTOOLTIP
   SRC.ADDCLILOC 1060728,<EVAL <MORE2>>,24

[itemdef 9793]
DEFNAME=i_dragon_platemail
NAME=Dragon Breast Place
TYPE=t_armor
ARMOR=35
REQSTR=75
SKILLMAKE=SKILL_BLACKSMITH 75.6
RESOURCES=10 i_ingot_iron,10 i_hide_dragon

ON=@create
hitpoints={50 80}

[itemdef 9795]
DEFNAME=i_dragon_platemail_gloves
NAME=Dragon Gloves
TYPE=t_armor
ARMOR=35
REQSTR=75
SKILLMAKE=SKILL_BLACKSMITH 75.6
RESOURCES=10 i_ingot_iron,10 i_hide_dragon

ON=@create
hitpoints={50 80}

[itemdef 9799]
DEFNAME=i_dragon_platemail_leggings
NAME=Dragon Leggings
TYPE=t_armor
ARMOR=35
REQSTR=75
SKILLMAKE=SKILL_BLACKSMITH 75.6
RESOURCES=10 i_ingot_iron,10 i_hide_dragon

ON=@create
hitpoints={50 80}

[itemdef 9815]
DEFNAME=i_dragon_platemail_sleeves
NAME=Dragon Sleeves
TYPE=t_armor
ARMOR=35
REQSTR=75
SKILLMAKE=SKILL_BLACKSMITH 75.6
RESOURCES=10 i_ingot_iron,10 i_hide_dragon

ON=@create
hitpoints={50 80}

[itemdef 9797]
DEFNAME=i_dragon_helm
NAME=Dragon Helm
TYPE=t_armor
ARMOR=35
REQSTR=75
SKILLMAKE=SKILL_BLACKSMITH 75.6
RESOURCES=10 i_ingot_iron,10 i_hide_dragon

ON=@create
hitpoints={50 80}

[itemdef 9007]
DEFNAME=i_snowflake
NAME=Snow Flake
TYPE=t_normal

[itemdef 8979]
DEFNAME=i_mini_tower1
NAME=Mini House
TYPE=t_normal

[itemdef 8710]
DEFNAME=i_crystal_1
NAME=Crystal
TYPE=t_wall

///SE/////

[itemdef 10146]
DEFNAME=i_nodachi
NAME=No-Dachi
TYPE=T_WEAPON_SWORD
DAM=16,18
SPEED=32
SKILL=Swordsmanship
REQSTR=40
TWOHANDS=Y
WEIGHT=7
CATEGORY=Provisions - Weapons
SUBSECTION=Samurai Empire
DESCRIPTION=No-Dachi
SKILLMAKE=SKILL_BLACKSMITH 75.0
RESOURCES=20 i_ingot_iron

ON=@create
hitpoints={50 100}

[itemdef 10152]
DEFNAME=i_Bokuto
NAME=Bokuto
TYPE=T_WEAPON_SWORD
DAM=9,11
SPEED=53
SKILL=Swordsmanship
REQSTR=20
TWOHANDS=N
WEIGHT=7
CATEGORY=Provisions - Weapons
SUBSECTION=Samurai Empire
DESCRIPTION=Bokuto
SKILLMAKE=SKILL_CARPENTRY 70.0
RESOURCES=6 i_log

ON=@create
hitpoints={50 100}

[itemdef 10153]
DEFNAME=i_daicho
NAME=Daicho
TYPE=T_WEAPON_SWORD
DAM=13,15
SPEED=40
SKILL=Swordsmanship
REQSTR=50
TWOHANDS=Y
WEIGHT=7
CATEGORY=Provisions - Weapons
SUBSECTION=Samurai Empire
DESCRIPTION=Daicho
SKILLMAKE=SKILL_BLACKSMITH 60.0
RESOURCES=15 i_ingot_iron

ON=@create
hitpoints={50 100}

[itemdef 10148]
DEFNAME=i_wakizashi
NAME=Wakizashi
TYPE=T_WEAPON_SWORD
DAM=11,13
SPEED=44
SKILL=Swordsmanship
REQSTR=20
WEIGHT=6
CATEGORY=Provisions - Weapons
SUBSECTION=Samurai Empire
DESCRIPTION=Wakizashi
SKILLMAKE=SKILL_BLACKSMITH 50.0
RESOURCES=8 i_ingot_iron

ON=@create
hitpoints={50 100}

[itemdef 10234]
DEFNAME=i_sai
NAME=Sai
TYPE=T_WEAPON_FENCE
DAM=9,11
SPEED=55
SKILL=Fencing
REQSTR=15
TWOHANDS=Y
WEIGHT=5
CATEGORY=Provisions - Weapons
SUBSECTION=Samurai Empire
DESCRIPTION=Sai
SKILLMAKE=SKILL_BLACKSMITH 55.0
RESOURCES=12 i_ingot_iron

ON=@create
hitpoints={50 100}

[itemdef 10230]
DEFNAME=i_tekagi
NAME=Tekagi
TYPE=T_WEAPON_FENCE
DAM=10,12
SPEED=53
SKILL=Fencing
REQSTR=10
TWOHANDS=Y
WEIGHT=4
CATEGORY=Provisions - Weapons
SUBSECTION=Samurai Empire
DESCRIPTION=Tekagi
SKILLMAKE=SKILL_BLACKSMITH 55.0
RESOURCES=12 i_ingot_iron

ON=@create
hitpoints={50 100}

[ITEMDEF 9585]
DEFNAME=i_horseman_bow
NAME=Horseman's Bow
DAM=15,20
SPEED=30
WEIGHT=7
TYPE=T_WEAPON_BOW
TWOHANDS=Y
TDATA3=i_arrow
TDATA4=i_arrow_x
SKILLMAKE=SKILL_BOWCRAFT 90.0
RESOURCES=25 i_log
SKILL=Archery
CATEGORY=Provisions - Weapons
SUBSECTION=Samurai Empire
DESCRIPTION=Horseman Bow
REQSTR=40

ON=@create
hitpoints={50 100}

[ITEMDEF 9932]
DEFNAME=i_composite_bow
NAME=Composite Bow
DAM=15,17
SPEED=25
WEIGHT=5.3
TWOHANDS=Y
TYPE=T_WEAPON_BOW
TDATA3=i_arrow
TDATA4=i_arrow_x
SKILLMAKE=SKILL_BOWCRAFT 70.0
RESOURCES=7 i_log
SKILL=Archery
CATEGORY=Provisions - Weapons
SUBSECTION=Samurai Empire
DESCRIPTION=Composite Bow
REQSTR=45

ON=@create
hitpoints={50 100}

[ITEMDEF 10149]
DEFNAME=i_yumi
NAME=Yumi
DAM=18,20
WEIGHT=6
SPEED=25
TWOHANDS=Y
TYPE=T_WEAPON_BOW
TDATA3=i_arrow
TDATA4=i_arrow_x
SKILLMAKE=SKILL_BOWCRAFT 90.0
RESOURCES=10 i_log
SKILL=Archery
CATEGORY=Provisions - Weapons
SUBSECTION=Samurai Empire
DESCRIPTION=Yumi
REQSTR=35

ON=@create
hitpoints={50 100}

[ITEMDEF 026c3]
DEFNAME=i_repeating_crossbow
NAME=Repeating Crossbow
DAM=8,12
SPEED=41
WEIGHT=5
TEVENTS=T_PROPRIEDADES
TYPE=t_weapon_XBOW
TWOHANDS=Y
TDATA3=i_xbolt
TDATA4=i_xbolt_x
SKILLMAKE=SKILL_BOWCRAFT 90.0
RESOURCES=10 i_log
SKILL=Archery
CATEGORY=Provisions - Weapons
SUBSECTION=Bows
DESCRIPTION=Repeating Crossbow
REQSTR=30

ON=@create
hitpoints={50 100}

[EOF]