:cook_on_pit
  # Before calling this event, assign the old and new item ids to the following variables:
  # fireCookingOldItemId and fireCookingNewItemId

  lose item variable fireCookingOldItemId x 1
  displayItemId none
  play sound DropItem
  wait 20
  gain item variable fireCookingNewItemId x 1
  displayItemId variable fireCookingNewItemId
  play sound PickItem
  wait 20
  displayItemId none
  wait 20
  displayItemId undefined