ON INIT {
 SETNAME [description_potion]
 SET_MATERIAL GLASS
 SET_GROUP PROVISIONS
 SET_PRICE 150
 PLAYERSTACKSIZE 10
 SET_STEAL 50
 SET_WEIGHT 0
 SETEQUIP identify_value 56
 SET §identified 0
 TWEAK ICON "potion_unknown[icon]"
  TWEAK SKIN "ITEM_POTION_PURPLE" "ITEM_POTION_unknown"
 ACCEPT
}

ON IDENTIFY {
 SETNAME [description_purple_potion]
 SET §identified 1
 TWEAK ICON "potion_purple[icon]"
  TWEAK SKIN "ITEM_POTION_unknown" "ITEM_POTION_PURPLE"
 SET_PRICE 570
 ACCEPT
}

ON INVENTORYUSE {
    IF (§identified == 0) {
 PLAY "drink"
 SPECIALFX HEAL 15
 SPECIALFX MANA 15
 SPELLCAST -msf 1 HEAL PLAYER
 SETINTERACTIVITY NONE
 timerreplace -m 1 500 SETINTERACTIVITY YES REPLACEME "\\provisions\\bottle_empty\\bottle_empty"
      ACCEPT
    }
//    IF (^PLAYER_SKILL_OBJECT_KNOWLEDGE > 80) {
// PLAY "potion_life"
// PLAY "potion_mana"
// SPECIALFX HEAL 25
// SPECIALFX MANA 25
// SPELLCAST -msf 1 HEAL PLAYER
// SETINTERACTIVITY NONE
// timerreplace -m 1 500 SETINTERACTIVITY YES REPLACEME "\\Magic\\Potion_Purple_Half\\Potion_Purple_Half"
//      ACCEPT
//    }
 PLAY "potion_life"
 PLAY "potion_mana"
 SPECIALFX HEAL 25
 SPECIALFX MANA 25
 SPELLCAST -msf 1 HEAL PLAYER
 SETINTERACTIVITY NONE
 timerreplace -m 1 500 SETINTERACTIVITY YES REPLACEME "\\provisions\\bottle_empty\\bottle_empty"
 ACCEPT
}

ON EMPTY {
 REPLACEME "\\provisions\\bottle_empty\\bottle_empty"
 ACCEPT
}

ON CUSTOM {
 IF (^$PARAM1 == "MAKE_POTION"){
    IF (§identified == 0) {
      SPEAK -p [player_no] NOP
      ACCEPT
    }
 SET_INTERACTIVITY NONE
// TELEPORT ~^SENDER~
 TIMERmakepotion 1 2 SETINTERACTIVITY YES REPLACEME "\\magic\\Potion_aqua_vitae\\Potion_aqua_vitae"
 ACCEPT
 }
ACCEPT
} 