ON INIT {
 SETNAME [description_potion2begreen]
 SET_MATERIAL GLASS
 SET_GROUP PROVISIONS
 SET_PRICE 60
 PLAYERSTACKSIZE 10
 SET_STEAL 50
 SET_WEIGHT 0
 SETEQUIP identify_value 41
 SET §identified 0
 TWEAK ICON "potion2beUnknown[icon]"
 ACCEPT
}

ON IDENTIFY {
 TWEAK ICON "potion2beGreen[icon]"
 SET §identified 1
 ACCEPT
} 

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

ON COMBINE {
 IF (^$param1 ISCLASS "powder_fern") {
    IF (§identified == 0) {
      SPEAK -p [player_no] NOP
      ACCEPT
    }
  DESTROY ^$PARAM1 
  REPLACEME \\magic\\Potion2begreenfull\\Potion2begreenfull
 ACCEPT
 }
 IF (^$param1 ISCLASS "powder_bone") {
    IF (^PLAYER_SKILL_OBJECT_KNOWLEDGE < 30) {
      SPEAK -p [player_not_skilled_enough] NOP
      HEROSAY [required_obj_30]
      ACCEPT
    }
  DESTROY ^$PARAM1
  REPLACEME "\\magic\\potion2beGreenfull\\potion2beGreenfull"
 ACCEPT
 }
 IF (^$param1 ISCLASS "powder_rust") {
    IF (^PLAYER_SKILL_OBJECT_KNOWLEDGE < 30) {
      SPEAK -p [player_not_skilled_enough] NOP
      HEROSAY [required_obj_30]
      ACCEPT
    }
  DESTROY ^$PARAM1
  REPLACEME "\\magic\\potion2bePoison\\potion2bePoison"
 ACCEPT
 }
 IF (^$param1 ISCLASS "powder_antidote") {
    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_40]
      ACCEPT
    }
  DESTROY ^$PARAM1
  REPLACEME "\\magic\\potion2berealcure\\potion2berealcure"
 ACCEPT
 }
 ACCEPT
}

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