#============================================================================== # # ▼ Vel System - Sell Only Shop: Junk Meister v1.00 # -- Last Updated: 3/23/2013 # -- Author: Ven01273 # -- Level: Normal # -- Requires: VS - Shop: Sell Only Script v1.01+ # #============================================================================== $imported = {} if $imported.nil? $imported["VS-SSOJM"] = true #============================================================================== # ▼ Updates # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= # 3/23/2013 - Started Script and finished. #============================================================================== # ▼ Introduction # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= # This script adds onto the Sell Only Shop script and allows you to be paid more, # less or normal for your unwanted items. #============================================================================== # ▼ Instructions # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= # To install this script, open up your script editor and copy/paste this script # to an open slot below ▼ Materials but above ▼ Main Process. Also make sure the # Sell Only Shop Script is above this one. Remember to save. #============================================================================== # ▼ Compatibility # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= # This script was made with RGSS3. I don't use the other versions, so I don't # know if it'll work. See for yourself. # Unfortunatly this script is incompatible with Ace Shop Options v1.01. #============================================================================== # ▼ Commercial? # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= # Yes, this script can be used in commercial games. #============================================================================== #============================================================================== # EDITABLE REGION #============================================================================== # For $bonus_type # Add = 1 # Sub = 2 # Mul = 3 # Div = 4 # Mod = 5 # # You can also set $bonus_type in game with b_type(x) # You can also set $bonus_price in game with b_price(x) # # $bonus_type is the operation used for calculating the price. # $bonus_price is the variable used in the formula. # # ex. # $bonus_type = 3 # $bonus_price = 2 # # A potion is priced at 250 Gold; Selling it in a normal shop will price it at # 125, but with the current setup above, in a sell only shop, the original price, 250, # will be multiplied by 2, the bonus_price, making a total price of 500. #============================================================================== $bonus_type = 3 $bonus_price = 2 #============================================================================== # END EDITABLE REGION #============================================================================== # Don't edit anything past this point, unless you know what you're doing. #============================================================================== if $bonus_type >= 5 msgbox_p('$bonus_type\'s value is greater than number of operations.') exit end if $bonus_type <= 1 msgbox_p('$bonus_type\'s value is less than 1.') exit end #-------------------------------------------------------------------------- # * Edit Script: Scene_Shop #-------------------------------------------------------------------------- class Scene_Shop < Scene_MenuBase #-------------------------------------------------------------------------- # * Overwrite Method: Get Sale Price #-------------------------------------------------------------------------- def selling_price if $game_temp.shop_sell_only == true if $bonus_type == 1 #Add @item.price + ($bonus_price) else if $bonus_type == 2 #Sub @item.price - ($bonus_price) else if $bonus_type == 3 #Mul @item.price * ($bonus_price) else if $bonus_type == 4 #Div @item.price / ($bonus_price) else if $bonus_type == 5 #Mod @item.price % ($bonus_price) end end end end end else # Normal @item.price / 2 end end end #-------------------------------------------------------------------------- # * Edit Script: Game_Interpreter #-------------------------------------------------------------------------- class Game_Interpreter #-------------------------------------------------------------------------- # * New Method: Change Bonus Type #-------------------------------------------------------------------------- def b_type(somenumber) $bonus_type = (somenumber) end #-------------------------------------------------------------------------- # * New Method: Change Bonus Type #-------------------------------------------------------------------------- def b_price(somenumber) $bonus_price = (somenumber) end end #============================================================================== # END OF FILE #==============================================================================