ADVANCING DISCOUNT VENDOR SCRIPT
This script allows you to set up special vendor boxes.
You can set the price, the discount and the interval. The box will drop the price by the chosen discount in the chosen interval, for instance by 10% every hour, and return to the original price everytime somebody buys the item, so the game will start from the beginning.
Great for special events and marketing purposes.
enter the start price, the discount and the interval (in minutes) into the object description, separated by comma.
Example: 999,5,120
means, the start price is 999L$, and it will drop by 5% every 2 hours (120 minutes)
The discount is based on the actual current price, so the first step from 999 will be 50L$ discount (rounded!) to 949,
the second step 47L$ to 902, then 45L$ to 857 and so on.
You can put one item and a notecard into the box. If you want to give away more than 1 item, they have to be boxed.
A floating text shows the current price, the discount and interval. After somebody bought from the box, the text will show how much the last customer paid.
After changing the values in the object description you have to reset the script.
When you initially put the script into a box, or when you reset it, you have to confirm the yellow permission debit box in order to make the script work.