ON INIT {
 SETNAME [description_foodprep]
 SET_MATERIAL CLOTH
 SET_GROUP PROVISIONS
 SET_GROUP FOOD
 SET_PRICE 8
 PLAYERSTACKSIZE 10
 SET §enchanted 0
 SET_STEAL 50
 SET_WEIGHT 0
 TWEAK SKIN "L2_CAVES_[STONE]_GROUND11" "ITEM_MEAT_01"
 TWEAK SKIN "L1_PRISON_(WOOD)_PIECE03" "Veggies_01"
 SETSCALE 25
 ACCEPT
}

ON INVENTORYUSE {
 SPEAK -p [player_off_uncooked] NOP
 ACCEPT
}

ON COMBINE {
 if (^$PARAM1 ISCLASS "SALT" ) {
  DESTROY ^$PARAM1  
  REPLACEME "\\provisions\\iron_ration\\iron_ration"
  ACCEPT
 }
 if (^$PARAM1 ISCLASS "GARLIC" ) {
  DESTROY ^$PARAM1
 TWEAK ICON "food_prep_garlic[icon]"
 TWEAK SKIN "L2_CAVES_[STONE]_GROUND11" "ITEM_MEAT_03"
 SETNAME [description_foodprep_garlic]
 SET §enchanted 1
  ACCEPT
 }
 if (^$PARAM1 ISCLASS "BOTTLE_WINE" ) {
  DESTROY ^$PARAM1
 TWEAK ICON "food_prep_garlic[icon]"
 TWEAK SKIN "L2_CAVES_[STONE]_GROUND11" "ITEM_MEAT_03"
 SETNAME [description_foodprep_garlic]
 SET §enchanted 1
  ACCEPT
 }
 if (^$PARAM1 ISCLASS "POTION_OIL" ) {
  DESTROY ^$PARAM1
 TWEAK ICON "food_prep_garlic[icon]"
 TWEAK SKIN "L2_CAVES_[STONE]_GROUND11" "ITEM_MEAT_03"
 SETNAME [description_foodprep_garlic]
 SET §enchanted 1
  ACCEPT
 }
 ACCEPT
}

ON COOK {
 IF (§enchanted == 1) { 
 SET_INTERACTIVITY NONE
 PLAY "cooking"
 TIMERpoule 1 5 REPLACEME "\\provisions\\food_prep_cooked_garlic\\food_prep_cooked_garlic"
 ACCEPT
}
 IF (^INPLAYERINVENTORY == 1) {
  HEROSAY -D "FISH_IN_PLAYER"
  ACCEPT
 }
 SET_INTERACTIVITY NONE
 PLAY "cooking"
 TIMERpoule 1 5 REPLACEME "\\provisions\\food_prep_cooked\\food_prep_cooked"
 ACCEPT
}

ON ACTIVATE_PHYSICS {
 ACTIVATE_PHYSICS
 ACCEPT
}