ON INIT {
 SETNAME [description_Tool_Craft_Mail]
 SET_MATERIAL WOOD
 SET_GROUP ARMORY
 SET_PRICE 250
 SET_STEAL 50
 SETSCALE 30
 SET_WEIGHT 1
 SET §craft 0
 ACCEPT
}

ON INVENTORYUSE {
 IF (§craft == 0) {
  SET §craft 1
  HEROSAY [craft_chestObj]
   ACCEPT
  }
 IF (§craft == 1) {
  SET §craft 2
  HEROSAY [craft_LeggingObj]
   ACCEPT
  }
 IF (§craft == 2) {
  SET §craft 0
  HEROSAY [craft_helmetObj]
   ACCEPT
  }
 ACCEPT
}

ON COMBINE {
 IF (^INPLAYERINVENTORY != 1) {
  SPEAK -p [player_no] NOP
  ACCEPT
 }
///////////////////
///ITEM CRAFTING///
///////////////////
 IF (^$PARAM1 ISCLASS "Chest_Leather_AC") {
  DESTROY ^$PARAM1
  PLAY "equip_armor_chain"
  REPLACEME \\ARMOR\\Chest_Merc\\Chest_Merc
  ACCEPT
 }
 IF (^$PARAM1 ISCLASS "Legging_Leather_AC") {
  DESTROY ^$PARAM1
  PLAY "equip_armor_chain"
  REPLACEME \\ARMOR\\Legging_Merc\\Legging_Merc
  ACCEPT
 }
 IF (^$PARAM1 ISCLASS "Leather_Normal") {
 IF (§craft == 1) {
  DESTROY ^$PARAM1
  PLAY "equip_armor_chain"
  REPLACEME \\ARMOR\\Chest_Chain\\Chest_Chain
  ACCEPT
 }
 IF (§craft == 2) {
  DESTROY ^$PARAM1
  PLAY "equip_armor_chain"
  REPLACEME \\ARMOR\\Legging_Chain\\Legging_Chain
  ACCEPT
 }
 IF (§craft == 0) {
  SPEAK -p [player_no] NOP
  ACCEPT
 }
  ACCEPT
 }
 IF (^$PARAM1 ISCLASS "Ingot_Metal_Hot") {
 IF (§craft == 0) {
  DESTROY ^$PARAM1
  PLAY "equip_armor_chain"
  REPLACEME \\ARMOR\\Helmet_Chain\\Helmet_Chain
  ACCEPT
 }
 IF (§craft > 0) {
  SPEAK -p [player_no] NOP
  ACCEPT
 }
  ACCEPT
 }
  SPEAK -p [player_no] NOP
 ACCEPT
}