Inputing a prices

Hi people I was working on a somewhat inn manager script where you can buy the desired room you want for the night 

the problem is I don't know how to input a "room prices" and who will affect the money of the party (in simple I don't know when the person buy a room how to remove the money from the party with the room prices)

I tried to see in the scene shop but I don't really understand at all how work the mechanism they use for retrieve the money when you buy something

How I work my script : 

module Nio module sc_17 SYSTEM ={ :room1_name => "poor", :room2_name => "casual", :room3_name => "deluxe", :room1_price => 10, :room2_price => 50, :room3_price => 100 } endend  the price and the name will be modifeable but this not my point on this thread for the moment

Thanks for any further answer! 

(DO not suggest me any "EVENT" making I am not asking for the event solution this a script I work) 
From what I understand when reading this, you're trying to make the player's party lose money for purchasing an inn room. You'll want 

$game_party.lose_gold(amount) for that, which is equivalent to calling 

Code:
$game_party.gain_gold(-amount)
wow this seem so simple oo"....why in the shop script this seem so complicate?

Original thread: https://forums.rpgmakerweb.com/threads/inputing-a-prices.38960/