ON INIT {
 SETNAME [description_pie_uncooked]
 SET_MATERIAL CLOTH
 SET_GROUP PROVISIONS
 SET_GROUP FOOD
 SET_PRICE 5
 PLAYERSTACKSIZE 10
 SET_STEAL 50
 SET_SHADOW OFF
 SET §scale 100
 SET_WEIGHT 0
 ACCEPT
}

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

ON COMBINE {
 if (^$PARAM1 ISCLASS "shredded_meat" ) {
  DESTROY ^$PARAM1  
  REPLACEME "\\provisions\\meatpie_uncooked\\meatpie_uncooked"
  ACCEPT
 }
 if (^$PARAM1 ISCLASS "FOOD_APPLE" ) {
  DESTROY ^$PARAM1  
  REPLACEME "\\provisions\\Applepie_uncooked\\applepie_uncooked"
  ACCEPT
 }
 if (^$PARAM1 ISCLASS "CARROT" ) {
  DESTROY ^$PARAM1  
  REPLACEME "\\provisions\\Applepie_uncooked\\applepie_uncooked"
  ACCEPT
 }
 ACCEPT
}

ON CUSTOM {
 if (^$PARAM1 == "COOK" ) {
  REPLACEME "\\provisions\\pie\\pie"
  ACCEPT
 }
}

ON COOK {
 IF (^INPLAYERINVENTORY == 1) ACCEPT
 SET_INTERACTIVITY NONE
 TIMERchicken -m 50 100 GOTO changescale 
 PLAY "cooking"
 TIMERpoule 1 5 REPLACEME "\\provisions\\pie\\pie"
 SET_INTERACTIVITY YES
 ACCEPT
}

>>changescale
 SET_SCALE §scale
 INC §scale 1
ACCEPT 