DragonPrime - LoGD Resource Community
Welcome Guest
  • Good evening, Guest.
    Please log in, or register.
  • March 25, 2017, 10:13:38 PM
Home Forums News Links Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Resource Pages
IRC Channels

Pages: [1]   Go Down
Author Topic: Generic Shop  (Read 1996 times)
0 Members and 1 Guest are viewing this topic.
« on: May 10, 2004, 02:43:49 PM »

To make adding extra shops easy for everyone, the code is commented throughout so all you have to do is add in the dialog, and change a few bits to set what the shop sells.

You set a base value for how much 1 item costs, and then you set what quantities the item is sold in, so for instance if you want to sell 1, 2 or 3 gems, you could change the array to 1,2,3

there is also a multiple, which is useful for something like buying favour, you could set it to 5, and the array to 1,2,4, this would result in selling favour in 5, 10 and 20 quantities.  If you want to sell more than 1 as your lowest quantity you have to use the multiple for the pricing to work.

The pricing also varies, so you get a discount on the items if you're buying more than one of them.

I hope the script is nice and clearly commented, so please enjoy :-)

« Last Edit: May 10, 2004, 03:01:20 PM by Spider » Logged
Pages: [1]   Go Up
Jump to:  

DragonPrime Notices
Version 1.1.2 is the current supported version and is available for download.

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Who's Online
40 Guests, 0 Users
DragonPrime LoGD
Recent Topics
Home Forums News Links Downloads Login Register Advanced Search