:prince_offer_knife
  include prince_start_cutscene
  Prince "Only today, I'm offering you a chance of buying an incredible <color:item>Kitchen Knife</color> for only $800."
  Player ("Should I buy a <color:item>Kitchen Knife</color> for $800?", "Yes", "No")
  
  if response == "Yes"
    include prince_buy_knife
    return
  end

  if response == "No"
    Prince ("Are you sure? Such an opportunity won't be available again anytime soon.", "I'm sure", "OK, I'll buy it")
    if response == "I'm sure"
      Prince "I understand. I'll be back when I get a new opportunity for you. See you later."
      include prince_end_cutscene
      return
    end

    include prince_buy_knife
  end

:prince_buy_knife
  Prince "Really? You're really really buying? Thank you so much!"
  if Managers.Items.gold >= 800
    js Managers.Items.loseGold(800);
    + Switches.hasKitchenKnife = true;
    Prince "Here's your <color:item>Kitchen Knife</color>."
    js Managers.Items.displayItemId = 'kitchen-knife';
    wait 20
    js Managers.Items.displayItemId = 'none';
    wait 20
    js Managers.Items.displayItemId = undefined;
    Prince "I'll be going now. Make good use of it!"
  else
    Prince "Hang on, you don't even have enough money. Thanks for getting my hope up for nothing, young farmer."
  end

  include prince_end_cutscene

:prince_offer_pot
  include prince_start_cutscene
  Prince "Only today, I'm offering you a chance of buying an incredible <color:item>Kitchen Pot</color> for only $2,000."
  Player ("Should I buy a <color:item>Kitchen Pot</color> for $2,000?", "Yes", "No")
  
  if response == "Yes"
    include prince_buy_pot
    return
  end

  if response == "No"
    Prince ("Are you sure? Such an opportunity won't be available again anytime soon.", "I'm sure", "OK, I'll buy it")
    if response == "I'm sure"
      Prince "I understand. I'll be back when I get a new opportunity for you. See you later."
      include prince_end_cutscene
      return
    end

    include prince_buy_pot
  end

:prince_buy_pot
  Prince "Really? You're really really buying? Thank you so much!"
  if Managers.Items.gold >= 2000
    js Managers.Items.loseGold(2000);
    + Switches.hasKitchenPot = true;
    Prince "Here's your <color:item>Kitchen Pot</color>."
    js Managers.Items.displayItemId = 'kitchen-pot';
    wait 20
    js Managers.Items.displayItemId = 'none';
    wait 20
    js Managers.Items.displayItemId = undefined;
    Prince "I'll be going now. Make good use of it!"
  else
    Prince "Hang on, you don't even have enough money. Thanks for getting my hope up for nothing, young farmer."
  end

  include prince_end_cutscene

:prince_offer_pan
  include prince_start_cutscene
  Prince "Only today, I'm offering you a chance of buying an incredible <color:item>Frying Pan</color> for only $1,500."
  Player ("Should I buy a <color:item>Frying Pan</color> for $1,500?", "Yes", "No")
  
  if response == "Yes"
    include prince_buy_pan
    return
  end

  if response == "No"
    Prince ("Are you sure? Such an opportunity won't be available again anytime soon.", "I'm sure", "OK, I'll buy it")
    if response == "I'm sure"
      Prince "I understand. I'll be back when I get a new opportunity for you. See you later."
      include prince_end_cutscene
      return
    end

    include prince_buy_pan
  end

:prince_buy_pan
  Prince "Really? You're really really buying? Thank you so much!"
  if Managers.Items.gold >= 1500
    js Managers.Items.loseGold(1500);
    + Switches.hasKitchenPan = true;
    Prince "Here's your <color:item>Frying Pan</color>."
    js Managers.Items.displayItemId = 'kitchen-pan';
    wait 20
    js Managers.Items.displayItemId = 'none';
    wait 20
    js Managers.Items.displayItemId = undefined;
    Prince "I'll be going now. Make good use of it!"
  else
    Prince "Hang on, you don't even have enough money. Thanks for getting my hope up for nothing, young farmer."
  end

  include prince_end_cutscene

:prince_offer_oven
  include prince_start_cutscene
  Prince "Only today, I'm offering you a chance of buying an incredible <color:item>Oven</color> for only $3,000."
  Player ("Should I buy a <color:item>Oven</color> for $3,000?", "Yes", "No")
  
  if response == "Yes"
    include prince_buy_oven
    return
  end

  if response == "No"
    Prince ("Are you sure? Such an opportunity won't be available again anytime soon.", "I'm sure", "OK, I'll buy it")
    if response == "I'm sure"
      Prince "I understand. I'll be back when I get a new opportunity for you. See you later."
      include prince_end_cutscene
      return
    end

    include prince_buy_oven
  end

:prince_buy_oven
  Prince "Really? You're really really buying? Thank you so much!"
  if Managers.Items.gold >= 3000
    js Managers.Items.loseGold(3000);
    + Switches.hasKitchenOven = true;
    Prince "Here's your <color:item>Oven</color>."
    js Managers.Items.displayItemId = 'kitchen-oven';
    wait 20
    js Managers.Items.displayItemId = 'none';
    wait 20
    js Managers.Items.displayItemId = undefined;
    Prince "I'll be going now. Make good use of it!"
  else
    Prince "Hang on, you don't even have enough money. Thanks for getting my hope up for nothing, young farmer."
  end

  include prince_end_cutscene

:prince_offer_mixer
  include prince_start_cutscene
  Prince "Only today, I'm offering you a chance of buying an incredible <color:item>Mixer</color> for only $1,000."
  Player ("Should I buy a <color:item>Mixer</color> for $1,000?", "Yes", "No")
  
  if response == "Yes"
    include prince_buy_mixer
    return
  end

  if response == "No"
    Prince ("Are you sure? Such an opportunity won't be available again anytime soon.", "I'm sure", "OK, I'll buy it")
    if response == "I'm sure"
      Prince "I understand. I'll be back when I get a new opportunity for you. See you later."
      include prince_end_cutscene
      return
    end

    include prince_buy_mixer
  end

:prince_buy_mixer
  Prince "Really? You're really really buying? Thank you so much!"
  if Managers.Items.gold >= 1000
    js Managers.Items.loseGold(1000);
    + Switches.hasKitchenMixer = true;
    Prince "Here's your <color:item>Mixer</color>."
    js Managers.Items.displayItemId = 'kitchen-mixer';
    wait 20
    js Managers.Items.displayItemId = 'none';
    wait 20
    js Managers.Items.displayItemId = undefined;
    Prince "I'll be going now. Make good use of it!"
  else
    Prince "Hang on, you don't even have enough money. Thanks for getting my hope up for nothing, young farmer."
  end

  include prince_end_cutscene

:prince_offer_blender
  include prince_start_cutscene
  Prince "Only today, I'm offering you a chance of buying an incredible <color:item>Blender</color> for only $1,200."
  Player ("Should I buy a <color:item>Blender</color> for $1,200?", "Yes", "No")
  
  if response == "Yes"
    include prince_buy_blender
    return
  end

  if response == "No"
    Prince ("Are you sure? Such an opportunity won't be available again anytime soon.", "I'm sure", "OK, I'll buy it")
    if response == "I'm sure"
      Prince "I understand. I'll be back when I get a new opportunity for you. See you later."
      include prince_end_cutscene
      return
    end

    include prince_buy_blender
  end

:prince_buy_blender
  Prince "Really? You're really really buying? Thank you so much!"
  if Managers.Items.gold >= 1200
    js Managers.Items.loseGold(1200);
    + Switches.hasKitchenBlender = true;
    Prince "Here's your <color:item>Blender</color>."
    js Managers.Items.displayItemId = 'kitchen-blender';
    wait 20
    js Managers.Items.displayItemId = 'none';
    wait 20
    js Managers.Items.displayItemId = undefined;
    Prince "I'll be going now. Make good use of it!"
  else
    Prince "Hang on, you don't even have enough money. Thanks for getting my hope up for nothing, young farmer."
  end

  include prince_end_cutscene

:prince_start_cutscene
  create villager Prince 34,10,up
  wait 30

  if Managers.Player.isMale()
    Prince "Hello, young man."
  else
    Prince "Hello, young lady."
  end

  Player "...Hello?"
  Prince "I'm here this morning to present you with a unique opportunity."
  Player "Is that so?"

:prince_end_cutscene
  move villager Prince 44,10,up
  wait 30
  fade out
  wait 30
  remove villager Prince
  fade in
  wait 20

  end cutscene

:prince_offer_golden_orange
  include prince_start_cutscene
  Prince "You have bought every kitchen utensil I had, so I decided to offer you the best items on my catalog."
  Prince "They are very hard to come by, so you'll need to pick a single one."
  Prince "The first is the S.U.G.O.E.: It's short for SUPER ULTRA GREATEST ORANGE EXPERIENCE."
  Prince "The second one is the O.H.N.O.: It means OVERGENEROUS HEARTWARMING NECTAROUS ORANGE."
  Prince "Finally, the last one is the B.L.O.W.: BLESSED LOVELY ORANGE WISHES."

  Prince ("Which one do you want? They all cost $2,000.", "S.U.G.O.E.", "O.H.N.O.", "B.L.O.W.", "None")

  if response == "None"
    if Managers.Player.isMale()
      Prince "You don't even have $2,000? What a poor man you are."
    else
      Prince "You don't even have $2,000? What a poor girl you are."
    end

    include prince_end_cutscene
    return
  end

  if Managers.Items.gold >= 2000
    js Managers.Items.loseGold(2000);

    if response == "S.U.G.O.E."
      if !Managers.Items.tryPickItemId('sugoe-orange')
        Prince "You can't carry anything at the moment, so I'll just leave the S.U.G.O.E. orange here."
        js Managers.FarmObjects.createItemAt($gameMap._mapId, 21, 25, 'sugoe-orange', 1);
      end
    end

    if response == "O.H.N.O."
      if !Managers.Items.tryPickItemId('ohno-orange')
        Prince "You can't carry anything at the moment, so I'll just leave the O.H.N.O. orange here."
        js Managers.FarmObjects.createItemAt($gameMap._mapId, 21, 25, 'ohno-orange', 1);
      end
    end

    if response == "B.L.O.W."
      if !Managers.Items.tryPickItemId('blow-orange')
        Prince "You can't carry anything at the moment, so I'll just leave the B.L.O.W. orange here."
        js Managers.FarmObjects.createItemAt($gameMap._mapId, 21, 25, 'blow-orange', 1);
      end
      switch gotSalesmanGoldenOrange ON
    end

    Prince "Thank you for your business. I'll be leaving now."
  else
    Prince "Hang on, you don't even have enough money. Thanks for getting my hope up for nothing, young farmer."
  end

  include prince_end_cutscene