- Requirements
- ServUO 57/58
Boxing Day Sale - Automated Vendor Refunds
Looking for a way to celebrate the holidays with your community? This script introduces an automated Boxing Day Sale that rewards players with a gold refund on their purchases, mirroring the real-world shopping holiday!
How it Works
On December 26th (UTC), the script automatically activates. Whenever a player purchases an item from a standard NPC vendor, a percentage of the total gold spent is immediately calculated and dropped back into their backpack as a refund.- Automatic Activation: No command required. It checks the system date on startup and toggles itself on/off.
- Default Refund: Set to 20% out of the box (easily configurable).
- Staff Protection: Prevents Game Masters and higher from receiving refunds to avoid accidental gold generation during testing or world-building.
- Player Feedback: Sends a clear message to the player confirming their savings.
Configuration
You can easily adjust the refund rate at the top of the script:
C#:
private const double RefundPercentage = 0.20; // 0.20 = 20% refund
Installation
- Download the attached BoxingDaySale.cs.
- Drop it into your Scripts/Custom folder (or your preferred custom scripts directory).
- Restart your server.