ON INIT {
 SETNAME [description_meatpie_uncooked]
 SET_MATERIAL CLOTH
 SET_GROUP PROVISIONS
 SET_GROUP FOOD
 SET_PRICE 20
 PLAYERSTACKSIZE 10
 SET_STEAL 50
 SET_SHADOW OFF
 SET §scale 100
 SET_WEIGHT 1
 TWEAK SKIN "ITEM_APPLEPIE_WINE" "ITEM_MEATPIE_WINE"
 ACCEPT
}
ON CUSTOM {
 if (^$PARAM1 == "COOK" ) {
  REPLACEME "\\provisions\\meatpie_wine\\meatpie_wine"
  ACCEPT
 }
}

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

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

>>changescale
 SET_SCALE §scale
 INC §scale 1
ACCEPT 