ON INIT {
 SETNAME [description_Tool_Craft_Leather]
 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_LeggingObj]
   ACCEPT
  }
 IF (§craft == 1) {
  SET §craft 0
  HEROSAY [craft_chestObj]
   ACCEPT
  }
 ACCEPT
}

ON COMBINE {
 IF (^INPLAYERINVENTORY != 1) {
  SPEAK -p [player_no] NOP
  ACCEPT
 }
///////////////////////
///Material CRAFTING///
///////////////////////
 IF (^$PARAM1 ISCLASS "Powder_Chitin") {
  DESTROY ^$PARAM1
  PLAY "equip_armor"
  REPLACEME \\PROVISIONS\\leather_black\\leather_black
  ACCEPT
 }
///////////////////
///ITEM CRAFTING///
///////////////////
 IF (^$PARAM1 ISCLASS "Leather_Normal") {
 IF (§craft == 0) {
  DESTROY ^$PARAM1
  PLAY "equip_armor"
  REPLACEME \\ARMOR\\Chest_leather\\Chest_leather
  ACCEPT
 }
 IF (§craft == 1) {
  DESTROY ^$PARAM1
  PLAY "equip_armor"
  REPLACEME \\ARMOR\\Legging_leather\\Legging_leather
  ACCEPT
 }
  SPEAK -p [player_no] NOP
 ACCEPT
}
//////////////////////
///Upgrade CRAFTING///
//////////////////////
 IF (^$PARAM1 ISCLASS "legging_mage_clothes") {
  DESTROY ^$PARAM1
  PLAY "equip_armor"
  REPLACEME \\ARMOR\\legging_mage_clothesAC\\legging_mage_clothesAC
  ACCEPT
 }
  SPEAK -p [player_no] NOP
 ACCEPT
}