Not Scripts

Merchant

This script is primarily for calculating prices for orders of herbs, inks, comms, tattoos, runes/totems, enchantments, and concoctions. It also allows you to easily give an entire order of herbs/inks/comms to someone, and record all sales.

The script currently doesn't track orders of enchantments/concoctions/runes/totems, though I may include them eventually.

Ink prices are set to Rurin's prices, herb and comm prices will need to be set manually. Runes, totems, tattoos, enchantments, and concoctions are priced as the cost of the required items. You can also specify a percent increase/discount in the total price.

You can use MERCHANTHELP to see the list of commands any time.

To set herb/comm prices:
HERBPRICE <herb> <price>
COMMPRICE <comm> <price>

You can also set multiple herbs/comms at once, by separating the list with commas.

Examples:
herbprice myrrh 10
commprice leather 20, steel 15, wood 100

To check prices and make orders:
PRICECHECK <type> <comma-separated list of items>: This will calculate the price of the listed items, and display the total cost. If you have a price modifier set, it will display the base price and the modified price.
Valid types: inks, comms, herbs, runes*, concoctions, enchantments
 *Totems are counted as runes.
Example: pricecheck herbs moss, 100 myrrh, 500 bloodroot

PRICEMOD <number>: The number to multiply the price by. The default is 1, which is no change. 0.9 is a 10% discount, 1.1 is a 10% increase, etc.

MAKEORDER <type> <comma-separated list of items>: Similar to pricecheck, but saves the list of items as the current order. If you use it again, it will overwrite any existing orders.
ADDORDER <type> <comma-separated list of items>: Adds a list of items to the existing order, instead of overwriting it. Gives the price of the total order so far.
Valid item types for orders: inks, herbs, comms

CHECKORDER: Displays the items in the current order, and the total price.
CANCELORDER: Clears the current order.
GIVEORDER <target>: Outrifts and gives all items in the current order to the specified target. If you have sale recording turned on, the order is automatically saved.

To record sales and view/delete records:
RECORD <on|off>: Enables/disables the automatic recording of sales. The information recorded is: the name of the buyer, the date, the items sold, the price, and the price modifier. Recording is off by default.

SAVEORDER <name>: Manually saves the current order. If you don't include the name, the buyer will be listed as "Unknown".
UNDORECORD: Deletes the most recent recorded sale.
CLEARRECORD: Deletes all recorded sales.

VIEWRECORD <#|last|all>: See a specific sale by number, the most recent sale, or all sales.
        WARNING: I strongly recommend against using "all" if you have a large number of sales.
        Each displayed sale is 5 lines (followed by a blank line), so if you have 100 sales recorded, you'll be spammed with 600 lines.
Č
ċ
ď
Merchant.txt
(18k)
Sena SF,
16 Jul 2010 04:03