DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • May 21, 2018, 12:00:33 PM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Resource Pages

Pages: [1]   Go Down
Author Topic: Generic Shop  (Read 2175 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
Play LoGD on Dragonprime

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