ON INIT {
 SETNAME [description_potion2beorange]
 SET_MATERIAL GLASS
 SET_GROUP PROVISIONS
 SET_PRICE 80
 PLAYERSTACKSIZE 10
 SET_STEAL 50
 SET_WEIGHT 0
 SETEQUIP identify_value 36
 SET §identified 0
 TWEAK ICON "potion2beUnknown[icon]"
  TWEAK SKIN "ITEM_POTION_2BEORANGE" "ITEM_POTION_2BEANTIDOTE"
 ACCEPT
}

ON IDENTIFY {
  SETNAME [description_potion2beorange]
  TWEAK ICON "potion2beOrange[icon]"
  SET §identified 1
 ACCEPT
} 

ON INVENTORYUSE {
  INVENTORY PLAYERADD "\\magic\\powder_antidote\\powder_antidote"
  REPLACEME "\\provisions\\bottle_empty\\bottle_empty"
 ACCEPT
}

ON COMBINE {
 IF (^$param1 ISCLASS "powder_antidote") {
    IF (§identified == 0) {
      SPEAK -p [player_no] NOP
      ACCEPT
    }
  DESTROY ^$PARAM1 
  REPLACEME \\magic\\Potion2beorangefull\\Potion2beorangefull
 ACCEPT
 }
 IF (^$param1 ISCLASS "powder_bone") {
    IF (^PLAYER_SKILL_OBJECT_KNOWLEDGE < 50) {
      SPEAK -p [player_not_skilled_enough] NOP
      HEROSAY [required_obj_50]
      ACCEPT
    }
  DESTROY ^$PARAM1 
  REPLACEME \\magic\\Potion2beorangefull\\Potion2beorangefull
 ACCEPT
 }
 IF (^$param1 ISCLASS "powder_fern") {
    IF (§identified == 0) {
      SPEAK -p [player_no] NOP
      ACCEPT
    }
    IF (^PLAYER_SKILL_OBJECT_KNOWLEDGE < 40) {
      SPEAK -p [player_not_skilled_enough] NOP
      HEROSAY [required_obj_60]
      ACCEPT
    }
  DESTROY ^$PARAM1 
 REPLACEME \\magic\\Potion2berealcure\\Potion2berealcure
 ACCEPT
 }
 ACCEPT
}

ON CUSTOM {
 IF (^$PARAM1 == "MAKE_POTION")
      SPEAK -p [player_no] NOP
ACCEPT
} 