# MINERTRADE

It adds various types of money, exchange table, Dispensing Machines, Strongbox in homes interconnected with ATMs in stores.

**Itens adicionados:**
 * Types of Moneys:
	* Minercoin 
	* Minermoney
	* Piggy Bank
	* Credit Card
 * Exchange Table (P2P)
	* It makes safe exchanges from player to player without the need to put your items on the ground.
 * Dispensing Machine
 	* Sells your items, even if you are not online.
 * Personal Strongbox
	* Save your money in this safe and withdraw your money at any shop that has an ATM.
 * Public ATM
	* Save your money in the ATM, and withdraw your money in your Personal Safe or other ATM in the shops scattered around the map.

**Dependencies:**
  * default → Minetest Game Included
  * dye → Minetest Game Included

**Optional Dependencies:**
  * [intllib](https://github.com/minetest-mods/intllib) → Facilitates the translation of several other mods into your native language, or other languages.
  * [tradelands](https://github.com/Lunovox/tradelands) → Protection of rent door (not yet implemented). 

**Licence:**
 * GNU AGPL: https://pt.wikipedia.org/wiki/GNU_Affero_General_Public_License

**Developers:**
 * [Lunovox](https://libreplanet.org/wiki/User:Lunovox)

<!--
**Comandos:**
 * Lets you check the contents of another players strongbox.
 	* /checkstrongbox <player_name>
 	* /csb <player_name>
-->

**Settings:**

In **minetest.conf** file:

You don't need to do any of these presets mentioned below to make this mod work. But it's worth knowing the configuration values ​​in case you want to directly change the ````minetest.conf```` file.

* ````minertrade.debug = <boolean>```` : If show debug info of this mod. Only util to developers. Default: ````false````
* ````minertrade.save_compressed = <boolean>```` : If enabled will save database bank in file '.db64', else in file '.tbl'. Default: ````true````
* ````minertrade.bank.max_statements = <number>```` : Specifies the amount statement records to each player in databade bank.  Default: ````30````; Min: ````1````, Max: ````300````.
* ````minertrade.salary.enabled = <boolean>```` : Allows for daily distribution of Salary. Default: ````true````
* ````minertrade.salary.value = <number>```` : Specifies the amount of salary paid daily.  Default: ````1````
* ````minertrade.salary.intervalcheck = <number>```` : Specifies how many seconds the salary will be checked who still has to receive. Values below 5 can cause server lag. Default: ````60````


**Translate to Others Languages:**

* This mod currently are configured to language:
	* English (DEFAULT)
	* [Portuguese](https://raw.githubusercontent.com/Lunovox/minertrade/master/locale/pt.txt)

* To add a new language to this mod just follow the steps below:
	* Enable the complementary mod **'intllib'.**
	* Set your language in **'minetest.conf'** by adding the [````language = <your language>````] property.
		* Example for French Language: ````language = fr````
	* Make a copy of the file [ **pt.txt** ] in the [ **locale** ] folder that is inside the mod for [````locale/<your_language>.txt````]. 
		* Example for French language: ````locale/fr.txt````
	* Open the file [````locale/<your_language>.txt````] in a simple text editor.
	* Translate all lines. But, just here that stems the right of the equals symbol (=). 
		* Example for French Language: ````DISPENSING MACHINE = MACHINE DE DISTRIBUTION````
	* Send your translated file to [lunovox@openmailbox.org](mailto:lunovox@openmailbox.org).
	
**SCREENSHOT IN PORTUGUESE:**
![](https://raw.githubusercontent.com/Lunovox/minertrade/master/screenshot.png)

![](https://raw.githubusercontent.com/Lunovox/minertrade/master/screenshot2.png)

![](https://raw.githubusercontent.com/Lunovox/minertrade/master/screenshot3.png)