Difference between revisions of "shop.txt"

From OpenKore Wiki
Jump to navigation Jump to search
m (Reverted edits by Afuvuco (Talk) to last revision by Mushrom)
Line 3: Line 3:
 
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 ==
 
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:  
 
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>
+
  <item name> (TAB(s)) <price> (TAB(s)) <amount>
  
 
=== Details ===
 
=== Details ===
 
----
 
----
  
; &lt;[[References#Item Names|item name]]&gt;
+
; <[[References#Item Names|item name]]>
 
: 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.
  
  
; &lt;price&gt;
+
; <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.
  
  
; &lt;amount&gt;
+
; <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.  
 
: 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.''' 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.
 
'''Note.''' 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.
  
----
+
 
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
 
----
 
=[http://ijilotefuru.co.cc Page Is Unavailable Due To Site Maintenance, Please Visit Reserve Copy Page]=
 
----
 
=[http://ijilotefuru.co.cc CLICK HERE]=
 
----
 
</div>
 
 
 
 
== 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.

Revision as of 22:13, 15 November 2010

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. 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.


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