shop.txt: Difference between revisions

From OpenKore Wiki
Jump to navigation Jump to search
(Created page with 'If your character has the Vending Skill, Kore can setup a shop and vend items. The file shop.txt allows you to specify the shop name and the items to be put in the shop with the …')
 
m (Removed some newlines)
Line 2: Line 2:


You can open a shop manually by typing the openshop command in the console. You can also setup Kore to automatically open a shop when it has been idle for a certain amount of time (see shopAuto_open in [[config.txt]]). It is advisable to disable all other actions like random walk, auto-attack, auto-skill use, item auto-gather, etc. while vending.
You can open a shop manually by typing the openshop command in the console. You can also setup Kore to automatically open a shop when it has been idle for a certain amount of time (see shopAuto_open in [[config.txt]]). It is advisable to disable all other actions like random walk, auto-attack, auto-skill use, item auto-gather, etc. while vending.


==Syntax==
==Syntax==
Line 12: Line 11:
This is the full name of an item as it exactly appears in the cart list.
This is the full name of an item as it exactly appears in the cart list.


 
===<price>===
===<price>===
This is the price of the item. This value can have commas (e.g. 2,000). If it has commas, it must appear at the right places. This can be useful to prevent you from accidentally specifying the wrong price for an item.
This is the price of the item. This value can have commas (e.g. 2,000). If it has commas, it must appear at the right places. This can be useful to prevent you from accidentally specifying the wrong price for an item.
Line 20: Line 18:


The following example will create a shop called "My Little Shop", with all Red Potions that you have in cart, for 39z each, and two Andre Cards, for 150,000z each. <rawhtml>
The following example will create a shop called "My Little Shop", with all Red Potions that you have in cart, for 39z each, and two Andre Cards, for 150,000z each. <rawhtml>
    
    
==Examples===
==Examples==
The following example will create a shop called "My Little Shop", with all Red Potions that you have in cart, for 39z each, and two Andre Cards, for 150,000z each.
The following example will create a shop called "My Little Shop", with all Red Potions that you have in cart, for 39z each, and two Andre Cards, for 150,000z each.
  My Little Shop
  My Little Shop
Line 36: Line 33:
  Stiletto [3] 50,000 1
  Stiletto [3] 50,000 1
  Stiletto [3] 50,000 1
  Stiletto [3] 50,000 1


'''''Note.''''' Lines that begin with the pound sign (#) are comment lines. They are ignored by Openkore.
'''''Note.''''' Lines that begin with the pound sign (#) are comment lines. They are ignored by Openkore.

Revision as of 21:01, 17 October 2009

If your character has the Vending Skill, Kore can setup a shop and vend items. The file shop.txt allows you to specify the shop name and the items to be put in the shop with the corresponding price and amount when Kore opens your shop.

You can open a shop manually by typing the openshop command in the console. You can also setup Kore to automatically open a shop when it has been idle for a certain amount of time (see shopAuto_open in config.txt). It is advisable to disable all other actions like random walk, auto-attack, auto-skill use, item auto-gather, etc. while vending.

Syntax

The first line in this file is the shop title. A shop title is required: you cannot have a shop without a title. The subsequent lines specify the items that you want to put in your shop. Those lines observe the following format:

<item name> (TAB(s)) <price> (TAB(s)) <amount>

Details

<item name>

This is the full name of an item as it exactly appears in the cart list.

<price>

This is the price of the item. This value can have commas (e.g. 2,000). If it has commas, it must appear at the right places. This can be useful to prevent you from accidentally specifying the wrong price for an item.

<amount>

This specifies the amount of a stackable item to vend. This value is optional. If it is not given, the maximum amount of that item will be put in the shop. Note that you can't use this for non-stackable items (like armors). If you want to sell multiple armors, you must put multiple entries in your shop.txt (see the examples below).

The following example will create a shop called "My Little Shop", with all Red Potions that you have in cart, for 39z each, and two Andre Cards, for 150,000z each. <rawhtml>

Examples

The following example will create a shop called "My Little Shop", with all Red Potions that you have in cart, for 39z each, and two Andre Cards, for 150,000z each.

My Little Shop
Red Potion	39
Andre Card	150,000	2

If you want to sell two 3-slotted Stilettos, for 50,000z each. This example is wrong:

My Little Shop
Stiletto [3]    50,000	2

Stilettos (weapons) are non-stackable items. This is the correct example:

My Little Shop
Stiletto [3] 	50,000	1
Stiletto [3] 	50,000	1

Note. Lines that begin with the pound sign (#) are comment lines. They are ignored by Openkore.