Multisell

This page contains info about multisell files and their content. Multisell is a commonly used type of files for shops, mostly because it's easy to make. The file of the name is it's ID, you should only use numbers to name your multisell. Same as with skills, these files are written in XML, which means that all files contain the following:

List
The   tag can have additional tags:

applyTaxes="true" If absent, taxes are not applied. If true, the tax is applied only to Adena (57) and Ancient Adena (6673). Depends on isTaxIngredient (read below).

maintainEnchantment="true" If true and, for example, you have a sealed armor +3, and using your list you unseal it, it gives you an unsealed +3 armor. If absent, gives +0 unsealed armor (Enchantment is lost). Note: also applies to elements and augments.

Example:

Item
Inside the   tags each item contains the following:

The tags are self-explanatory. The no# variable is the index number of the item in the list, increases by one with each new item. Remember to always double-check the ID sequence, if it's wrong, it might not display correct items or not display them at all. The ingredientitemID# and productionitemID# should also be self-explanatory. Use the database to find item IDs. Tables etcitem, weapons, armor contain them all. Except -200 (clan reputation) and -300 (fame).

Additional tags
enchant="value#" Applied after ingredient or production id (weapon/armor/anything, that can be enchanted), value# is the enchant value. Example 1: This will trade your +0 Brigandine Tunic into the same one, but with +15 enchant. If ingredient enchant level is not defined, it will show any Brigandine tunics you have, but will trade them only for +15 one.

isTaxIngredient="true" Applied only after ingredient id. If absent, items are not taxed. If applyTaxes (see above) is not defined, does not apply. If true and item is Adena, taxes are fully applied. If true and item is Ancient Adena, taxes are applied in form of Adena based on formula (aa count/6*5)*tax.

All examples are with a tax rate of 10%. Example 1: No taxes are applied even if applyTaxes="true". Example 2: Amount of adena is increased by taxes, resulting price=1320 adena (1200*1.1). Example 3: Adena is absent, but Ancient Adena is a tax ingredient, so adena is added using formula (aa count/6*5)*tax, resulting in a price of 1000AA+1100 adena.

HTML
To call your multisell list from an NPC's .htm: Obviously the list_id is what I mentioned at the beginning, the name of the file. File extension not necassary.

Credits
Created by wasabi2k Edited by jurchiks