Shoplifting

https://grimoirecastle.wordpress.com/rgss3-scripts/gameplay-scripts/shoplifting/ I am trying to use this script in my game but it came up with this error:
Screenshot_1.png

How do i fix this?
Enter this as a new script below that one:
Code:
class Window_ShopCommand < Window_HorzCommand
  #--------------------------------------------------------------------------
  # ● Create the list of commands
  #--------------------------------------------------------------------------
  def make_command_list
    add_command(Vocab::ShopBuy,    :buy)
    add_command(Vocab::ShopSell,   :sell,   !@purchase_only)
    # Make sure the scene isn't the synthesis shop
    unless is_synthesis_shop?
      add_command(KRX::VOCAB::SHOPLIFT_COMMAND, :steal, steal_ok?)
    end # End check
    add_command(Vocab::ShopCancel, :cancel)
  end
 
  def is_synthesis_shop?
    return false unless $imported['KRX-SynthesisShop']
    return SceneManager.scene.is_a?(Scene_SynthesisShop)
  end
 
end
Enter this as a new script below that one:
Code:
class Window_ShopCommand < Window_HorzCommand
  #--------------------------------------------------------------------------
  # ● Create the list of commands
  #--------------------------------------------------------------------------
  def make_command_list
    add_command(Vocab::ShopBuy,    :buy)
    add_command(Vocab::ShopSell,   :sell,   !@purchase_only)
    # Make sure the scene isn't the synthesis shop
    unless is_synthesis_shop?
      add_command(KRX::VOCAB::SHOPLIFT_COMMAND, :steal, steal_ok?)
    end # End check
    add_command(Vocab::ShopCancel, :cancel)
  end
 
  def is_synthesis_shop?
    return false unless $imported['KRX-SynthesisShop']
    return SceneManager.scene.is_a?(Scene_SynthesisShop)
  end
 
end
It fixed it but now stuff I can buy is on the steal list, how do i fix that?
@slickdeath97 You already have a thread with the exact same title and asking about this error message here.
https://forums.rpgmakerweb.com/index.php?threads/shoplifting.116154/

We do not allow duplicate threads. One query, one thread.
Moderator note: I am, therefore, closing this one.

Original thread: https://forums.rpgmakerweb.com/threads/shoplifting.116191/