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

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

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

ON COMBINE {
 IF (^$param1 ISCLASS "powder_morning_glory") {
    IF (§identified == 0) {
      SPEAK -p [player_no] NOP
      ACCEPT
    }
  DESTROY ^$PARAM1 
  REPLACEME \\magic\\Potion2bebluefull\\Potion2bebluefull
 ACCEPT
 }
 IF (^$param1 ISCLASS "potion2beblue") {
    IF (§identified == 0) {
      SPEAK -p [player_no] NOP
      ACCEPT
    }
  DESTROY ^$PARAM1
 INVENTORY PLAYERADD "\\provisions\\bottle_empty\\bottle_empty"
 REPLACEME \\magic\\Potion2bebluefull\\Potion2bebluefull
 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\\Potion2bebluefull\\Potion2bebluefull
 ACCEPT
 }
 IF (^$param1 ISCLASS "potion2bebone") {
    IF (^PLAYER_SKILL_OBJECT_KNOWLEDGE < 50) {
      SPEAK -p [player_not_skilled_enough] NOP
      HEROSAY [required_obj_50]
      ACCEPT
    }
  DESTROY ^$PARAM1
 INVENTORY PLAYERADD "\\provisions\\bottle_empty\\bottle_empty"
 REPLACEME \\magic\\Potion2bebluefull\\Potion2bebluefull
 ACCEPT
 }
 IF (^$param1 ISCLASS "Potion_oil") {
    PLAY "bottle_fill"
  DESTROY ^$PARAM1 
  INVENTORY PLAYERADD "\\provisions\\bottle_empty\\bottle_empty"
  REPLACEME \\magic\\Potion2bemana\\Potion2bemana
 ACCEPT
 }
 IF (^$param1 ISCLASS "Powder_water_lily") {
    IF (§identified == 0) {
      SPEAK -p [player_no] NOP
      ACCEPT
    }
    IF (^PLAYER_SKILL_OBJECT_KNOWLEDGE < 60) {
      SPEAK -p [player_not_skilled_enough] NOP
      HEROSAY [required_obj_60]
      ACCEPT
    }
  DESTROY ^$PARAM1 
 REPLACEME \\magic\\Potion2bepurple\\Potion2bepurple
 ACCEPT
 }
 IF (^$param1 ISCLASS "potion2bered") {
    IF (§identified == 0) {
      SPEAK -p [player_no] NOP
      ACCEPT
    }
    IF (^PLAYER_SKILL_OBJECT_KNOWLEDGE < 60) {
      SPEAK -p [player_not_skilled_enough] NOP
      HEROSAY [required_obj_60]
      ACCEPT
    }
  DESTROY ^$PARAM1
 INVENTORY PLAYERADD "\\provisions\\bottle_empty\\bottle_empty"
 REPLACEME \\magic\\Potion2bepurple\\Potion2bepurple
 ACCEPT
 }
ACCEPT
}