ON INIT {
 SETNAME [description_empty_potion]
 SET_MATERIAL GLASS
 SET_GROUP PROVISIONS
 SET_PRICE 5
 PLAYERSTACKSIZE 10
 SET_STEAL 50
 //SET_THROW_DAMAGE 1
 SET_WEIGHT 0
 ACCEPT
}

ON COMBINE {
 IF (^$param1 ISCLASS "powder_bone") {
 SENDEVENT CUSTOM ^$PARAM1 POWDER_FILL
  DESTROY SELF
 ACCEPT
 }
 IF (^$param1 ISCLASS "powder_fern") {
 SENDEVENT CUSTOM ^$PARAM1 POWDER_FILL
  DESTROY SELF
 ACCEPT
 }
 IF (^$param1 ISCLASS "powder_poison") {
 SENDEVENT CUSTOM ^$PARAM1 POWDER_FILL
  DESTROY SELF
 ACCEPT
 }
 IF (^$param1 ISCLASS "raw_poison") {
 SENDEVENT CUSTOM ^$PARAM1 POWDER_FILL
  DESTROY SELF
 ACCEPT
 }
 IF (^$param1 ISCLASS "powder_antidote") {
 SENDEVENT CUSTOM ^$PARAM1 POWDER_FILL
  DESTROY SELF
 ACCEPT
 }
 IF (^$param1 ISCLASS "powder_realcure") {
 SENDEVENT CUSTOM ^$PARAM1 POWDER_FILL
  DESTROY SELF
 ACCEPT
 }
 IF (^$param1 ISCLASS "powder_chitin") {
 SENDEVENT CUSTOM ^$PARAM1 POWDER_FILL
  DESTROY SELF
 ACCEPT
 }
 IF (^$param1 ISCLASS "powder_snow_drop") {
 SENDEVENT CUSTOM ^$PARAM1 POWDER_FILL
  DESTROY SELF
 ACCEPT
 }
 IF (^$param1 ISCLASS "powder_water_lily") {
 SENDEVENT CUSTOM ^$PARAM1 POWDER_FILL
  DESTROY SELF
 ACCEPT
 }
 IF (^$param1 ISCLASS "powder_morning_glory") {
 SENDEVENT CUSTOM ^$PARAM1 POWDER_FILL
  DESTROY SELF
 ACCEPT
 }
 IF (^$param1 ISCLASS "powder_rust") {
 SENDEVENT CUSTOM ^$PARAM1 DIE
 REPLACEME \\magic\\Potion2berust\\Potion2berust
 ACCEPT
 }
 IF (^$param1 ISCLASS "shredded_meat") {
 SENDEVENT CUSTOM ^$PARAM1 DIE
 REPLACEME \\magic\\Potion2beoil\\Potion2beoil
 ACCEPT
 }
 IF (^$param1 ISCLASS "powder_restoration") {
 SENDEVENT CUSTOM ^$PARAM1 POWDER_FILL
  DESTROY SELF
 ACCEPT
 }
ACCEPT
}

ON CUSTOM {
  if (^$PARAM1 == "FILL_WITH_WATER" ) {
    PLAY "bottle_fill"
    REPLACEME "\\provisions\\bottle_water\\bottle_water"
    ACCEPT
  }
  if (^$PARAM1 == "FILL_WITH_POISON" ) {
    PLAY "bottle_fill"
    REPLACEME "Magic\\Potion_green\\Potion_green"
    ACCEPT
  }
  if (^$PARAM1 == "FILL_WITH_BLOOD" ) {
    PLAY "bottle_fill"
    REPLACEME "\\provisions\\bottle_blood\\bottle_blood"
    ACCEPT
  }
 if (^$PARAM1 == "FILL_WITH_WINE" ) {
    PLAY "bottle_fill"
    REPLACEME "\\provisions\\bottle_wine\\bottle_wine"
    ACCEPT
  }
 ACCEPT
} 