DtlTraders/config: Difference between revisions

From Citizens Wiki
No edit summary
No edit summary
Line 36: Line 36:
       item-value: 10.0   
       item-value: 10.0   
          
          
=== Locale configuration (same for bankers and traders) ===
=== Locale configuration (same for bankers and traders) ===


Line 44: Line 45:
<pre> trader.locale.file: locale.eng
<pre> trader.locale.file: locale.eng
  trader.locale.path </pre>
  trader.locale.path </pre>


=== Trader configuration ===
=== Trader configuration ===
Line 122: Line 124:
   tab9: 50000.0
   tab9: 50000.0
</pre>
</pre>


==== Bank accounts files ====
==== Bank accounts files ====
Line 134: Line 135:
   path: ''
   path: ''
</pre>
</pre>


=== Money bankers ===
=== Money bankers ===
This kind of banker is different than all others, it hasn't got a <i>manager-mode</i> or <i>settings-mode</i> but it's more like an exchange between the players money and a item you set in the config, with a exchange value. So lets say you set an <b>emerland</b> for the price of <b>10.0</b>$. Now when you and add <b>10 emerlands</b> to this bank, you will get <b>100</b>$.
This kind of banker is different than all others, it hasn't got a <i>manager-mode</i> or <i>settings-mode</i> but it's more like an exchange between the players money and a item you set in the config, with a exchange value. So lets say you set an <b>emerland</b> for the price of <b>10.0</b>$. Now when you and add <b>10 emerlands</b> to this bank, you will get <b>100</b>$.
<pre>
<pre>

Revision as of 23:23, 8 September 2012

Here you got the default config file and a description.

!NOTE! Any other config nodes appearing in the config are at this moment not used.

General config

   trader: 
     locale:
       file: locale.eng
     manager-mode-toggle: 280
     inventory-navigation: 
       sell-tab: '35:5'
       buy-tab: '35:3'
       manage-price: '35:15'
       manage-buy-limit: '35:12'
       manage-global-limit: '35:11'
       manage-player-limit: '35:12'
       return: 35
       amounts-return: '35:14'
   bank: 
     tab-size: 3
     default-withdraw-fee: 0.0
     default-deposit-fee: 0.0
     default-max-tabs: 9
     tab-prices: 
       tab2: 100.0
       tab3: 200.0
       tab4: 500.0
       tab5: 1000.0
       tab6: 2000.0
       tab7: 5000.0
       tab8: 10000.0
       tab9: 50000.0
     player-accounts:
       file: player_accounts.yml
   money-bank:
     exchange-item: 388
     item-value: 10.0   
       

Locale configuration (same for bankers and traders)

This will be moved out of the trader section.

changes the file name and path for the locale file.

 trader.locale.file: locale.eng
 trader.locale.path 


Trader configuration

Configuration used by player, server and enchant traders.

Wand item

config node will be renamed to manager-wand and moved out of the trader section.

Allows to change the item which is used to toggle a trader into manager-mode or to open the Player bankers tab settings inventory. Default _**stick**_

 manager-mode-toggle: 280 

Navigation settings

Allows to change the traders menu navigation items, in both trader modes. Default: different _**wool colors**_.

Changes the items used to switch through the sell and buy tab.

 sell-tab: '35:5'
 buy-tab: '35:3'

Changes the item used to toggle on the price management.

 manage-price: '35:15'

Changes the item used to toggle the buy limit management. (player trader)

 manage-buy-limit: '35:12'

Changes the items used to toggle global and player limits. (server trader).

 manage-global-limit: '35:11
 manage-player-limit: '35:12

Changes the item used to go back from an specific management to the stock management. Like from price management.

 return: 35

Changes the item shown up when you want to go back from amount selection window.

 amounts-return: '35:14'


Banker configuration

Configuration used by player and guild banks.

Tab size

Allows to change the "inventory size" of the bank account. Values are valid from 1 up to 5.

 bank.tab-size: 3 

Available tabs

You can set how many tabs may a user buy. This is a global property, so you can change this amount for each player in the player_accounts.yml file. Commands will be added in future.

 default-max-tabs: 9

Fees

You can set fees for withdrawing or depositing items in a bank tab.

Note:
Fees are counted for each item, so adding two stacks of 1 dirt into a bank will cause to pay the fee 2 times!
 default-withdraw-fee: 0.0
 default-deposit-fee: 0.0

Tab prices

Allows to set prices for each tab within the player banker. If there is an amount set to tab1 a player can open a account only when he has got the required money.

 tab-prices: 
   tab1: 0.0
   tab2: 100.0
   tab3: 200.0
   tab4: 500.0
   tab5: 1000.0
   tab6: 2000.0
   tab7: 5000.0
   tab8: 10000.0
   tab9: 50000.0

Bank accounts files

Accounts for players will be saved by default in player_accounts.yml, and for guilds/factions/etc. in the guild_accounts.yml file. You can change the file names and path for both of these files.

 player-accounts:
   file: player_accounts.yml
   path: ''
 guild-accounts:
   file: guild_accounts.yml
   path: ''


Money bankers

This kind of banker is different than all others, it hasn't got a manager-mode or settings-mode but it's more like an exchange between the players money and a item you set in the config, with a exchange value. So lets say you set an emerland for the price of 10.0$. Now when you and add 10 emerlands to this bank, you will get 100$.

    money-bank:
      exchange-item: 388
      item-value: 10.0