Shop : Change Prices
#1
Shop : Change Prices
Version: 3.5
Written by Kain Nobel

Introduction

This is a system which allows you to change shop prices.

Features
  • Change prices of items in your shops.
  • System automatically resets prices once the shop closes.

Script

Script

Instructions

Place below Main and anything that modifies Shops in any major way.

Compatibility

This script was written for RMXP.

This script overwrites the following...
  • RPG::Item#price=
  • RPG::Armor#price=
  • RPG::Weapon#price=

I do suppose these could be aliased. I forget if I had a good reason for an overwrite, this was written eons ago...

(NOTE: This script does call SDK.log_ovewrite if the SDK is in your project. It does not matter if you're using SDK or not, those lines shouldn't interfere with anything.)

Author's Notes

It may sound dangerous, but before you call your shop, you can simply do...

Code:
$data_items[id].price = 100
$data_armors[id].price = 4999
$data_weapons[id].price = 9999

Don't worry; once the shop closes, these prices are reverted back to their normal database values.

You can also do...

Code:
$game_system.item_price[id] = 100
$game_system.armor_price[id] = 4999
$game_system.weapon_price[id] = 9999

...which does the same exact thing. It's whatever you prefer.

Terms and Conditions

Free to use in commercial and non-commercial games. Credits optional, but I do like credits!  Grinning
[Image: Button-BOTB.png]
[Image: Save-Point.gif][Image: Button-You-Tube2.png][Image: Button-Sound-Cloud2.png][Image: Button-Audio-Mack2.png]
[Image: LS-Banner.gif]
NEW ALBUM OUT NOW!

Reply }


Possibly Related Threads…
Thread Author Replies Views Last Post
   Klass Change & Skills XP kyonides 1 1,293 05-29-2023, 07:39 AM
Last Post: kyonides
Star  Shop : Command Help Kain Nobel 0 1,592 04-04-2022, 10:46 AM
Last Post: Kain Nobel
   KSkill Shop XP kyonides 7 15,952 12-23-2019, 05:57 AM
Last Post: kyonides
   Skyla's Unique Item Shop DerVVulfman 2 5,953 01-19-2018, 04:18 AM
Last Post: DerVVulfman
   Moghunter Menus: Scene Shop Felicia DerVVulfman 0 4,546 05-29-2017, 01:01 AM
Last Post: DerVVulfman
   Skill Shop Legacy 1 7,753 06-30-2012, 07:36 PM
Last Post: KasperKalamity
   Advanced Shop Status Window RPG Advocate 4 12,534 08-21-2011, 05:12 AM
Last Post: DerVVulfman
   MultiSlots! Store Patch - Advanced Shop DerVVulfman 0 6,128 10-24-2010, 03:39 AM
Last Post: DerVVulfman
   Map : Change Encounters Kain Nobel 0 4,992 02-07-2010, 06:48 PM
Last Post: Kain Nobel
   Final Fantasy Tactics Advance Shop System Mac 1 7,566 12-12-2009, 07:01 PM
Last Post: explocion200



Users browsing this thread: 2 Guest(s)