Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 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
   Choices Change Events kyonides 1 304 02-21-2024, 09:16 PM
Last Post: kyonides
   Klass Change & Skills kyonides 1 648 05-29-2023, 07:39 AM
Last Post: kyonides
Star  Shop : Command Help Kain Nobel 0 1,226 04-04-2022, 10:46 AM
Last Post: Kain Nobel
   KSkill Shop XP kyonides 7 14,307 12-23-2019, 05:57 AM
Last Post: kyonides
   Skyla's Unique Item Shop DerVVulfman 2 5,205 01-19-2018, 04:18 AM
Last Post: DerVVulfman
   Moghunter Menus: Scene Shop Felicia DerVVulfman 0 4,017 05-29-2017, 01:01 AM
Last Post: DerVVulfman
   In game Tone change ! Grimimi 1 4,730 10-09-2012, 01:31 AM
Last Post: Samven
   Skill Shop Legacy 1 7,099 06-30-2012, 07:36 PM
Last Post: KasperKalamity
   Advanced Shop Status Window RPG Advocate 4 11,193 08-21-2011, 05:12 AM
Last Post: DerVVulfman
   MultiSlots! Store Patch - Advanced Shop DerVVulfman 0 5,542 10-24-2010, 03:39 AM
Last Post: DerVVulfman



Users browsing this thread: