DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • September 27, 2016, 03:19:01 PM
Home Forums News Links Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
IRC Channels
Search

Pages: [1]   Go Down
  Print  
Author Topic: Generic Shop  (Read 1931 times)
0 Members and 1 Guest are viewing this topic.
Spider
Guest
« 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 :-)

http://dragonprime.cawsquad.net/users/Spider/genericshop.zip
« Last Edit: May 10, 2004, 03:01:20 PM by Spider » Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Play LoGD on Dragonprime

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