[RunUO 2.0 RC1] NPC Sales Tax
Changelog
Fun little script that lets you apply sales tax to NPC vendors in any town region. Easily customizable for your own preferred tax values, or even your own custom map.
Features
Drop the contents of the "Distros" folder into your Scripts folder. The distro files consist of: BaseVendor.cs, TownRegion.cs. Put Taxes.xml in your Data folder. Put the rest of the files in your custom scripts folder. Recompile and enjoy!
If you want to edit the tax values, or change it for your custom map, see the tutorial HERE.
Future Plans
Code:
/**************************************
*Script Name: NPC Sales Tax *
*Author: Joeku AKA Demortris *
*For use with RunUO 2.0 *
*Client Tested with: 5.0.7.1 *
*Version: 1.02 *
*Initial Release: 01/06/07 *
*Revision Date: 01/06/07 *
**************************************/
- Version 1.0 January 6, 2007: Initial release.
- Version 1.0 -> 1.01 Post #6 January 6, 2007: Forgot to upload the modified TownRegion.cs
- Version 1.01 -> 1.02 Post #18 January 7, 2007: Accidentally uploaded a modified BaseVendor.cs
Fun little script that lets you apply sales tax to NPC vendors in any town region. Easily customizable for your own preferred tax values, or even your own custom map.
Features
- Easily customizable.
- Full console readout upon load.
Drop the contents of the "Distros" folder into your Scripts folder. The distro files consist of: BaseVendor.cs, TownRegion.cs. Put Taxes.xml in your Data folder. Put the rest of the files in your custom scripts folder. Recompile and enjoy!
If you want to edit the tax values, or change it for your custom map, see the tutorial HERE.
Future Plans
- Active XML reading (ability to change tax values in XML files and not have to recompile).