DtlTraders

From Citizens Wiki

Revision as of 11:37, 17 September 2012 by Dandielo (talk | contribs)

File:DltTraders.png

DtlTraders


Author dandielo
Version 1.9.6 Beta
Citizens build 2.0.1 dev build #324
Other dependencies Citizens 2.0. Vault and an economy plugin
Download Link
Description: Trader trait for Citizens 2.0. Issues page

This page will change rapidly during the whole "Beta" phase, keep in mind that the plugin version you are running may quickly become outdated! v1.9.6 (last 2.0 pre-release) incoming!

Eventually DtlTraders will offer several trader types which allow creation of admin shops, player-owned shops, enchant shops, bankers and similar. The author is also working hard to make an auction house npc a reality.

This plugin was developed to be flexible and easy in use.

Features

At this time four different trader types are available, each has its own specific purpose.

  1. Server trader - Admin shop, fully customizable to meet your needs.
  2. Player trader - Allows players to set up and manage their own traders.
  3. Money banker (beta) - Enables the use of in-game items as a currency (set in the config). You can withdraw your money as an item to store or trade with another player. (Only limited testing was done, feel free to report any problems)
  4. Player banker (beta) - atm it lacks only permissions setup, but it can be still buggy so be aware


Locale support

Almost any message displayed by this plugin can be very easily modified.

DtlTraders is available in english only at this moment.

If you are willing to help translate this plugin to a different languange please contact the author.

Installation

Updating from 1.9.04 to 1.9.4

When you are moving from version 1.9.04 you need to remove the config.yml, and the locale.yml. It's needed to move to the new config and locale system.

Dependencies

  1. Citizens 2.0 or 2.0.1
  2. Vault
  3. economy plugin (vault compatible)


Installation steps

  1. Download the latest build at: http://dev.bukkit.org/server-mods/dtltraders/
  2. Put the dtlTrader.jar file in the plugins directory


The plugin will generate default configuration files when it is run for the first time.

Configuration

All configuration nodes can be found here http://wiki.citizensnpcs.com/DtlTraders/config

How to start

Creating a trader

To create a trader you can add a trait to an existing npc by using the following command:
/trait trader
be sure to respawn the npc for the changes to take effect.

There are two ways you can accomplish the above when creating a completely new character. The first one is to use:
/npc create trader name -- trait trader

The second way is taking advantage of the trader command. It has 3 optional arguments that control the type, wallet (for traders) and entity type. Arguments can be supplied in any order.
/trader create trader name [t:<trader-type>] [w:<wallet-type>] [e:<entity-type>]
if you don't supply any arguments the plugin will default to a server trader type with infinite wallet.

Creating a banker

Bankers can only be created by using the /trader command. /trader create Name t:money-bank or /trader create Name t:player-bank

Commands

A complete list of available commands and their description can be found here.

Permissions

A complete list of permission nodes and their description can be found here.

Types

A list of supported trader types can be found here.

More information

The wiki pages are currently beeing updated, any missing information should show up in the coming days. If you have any questions or ideas to implement you can usually find me on the esper.net IRC channel #dtlTraders. You can also e-mail me at [email protected] .

Version 1.9.6

  1. added Sold trigger (denizen)
  2. added Bought trigger (denizen)
  3. added Transaction trigger, counts for both triggers sold and bought (denizen)
  4. minor bug fixes
  5. locale update

Version 1.9.5

  1. changed the /trader pattern command
  2. fixed pattern issues
- items defined in will now be treated as pattern items, and won't be saved
- fixed the issue with the items arrangement and slot settings s:-1
- fixed an issue not properly removing a pattern
  1. added manager mode for player banker now you can set for every banker their own fee for withdraws and deposits (more incoming)
  2. added a few /banker commands
  3. ADDED DENIZEN COMMANDS! they are not big but always a new way to interact with traders ;> atm only for server traders supported a description will be provided soon ;>
- TRADER_TRANSACTION [START/CANCEL] (SELL/BUY)
- TRADER_PATTERN [SET/REMOVE] (PAT:pattern_name)
  1. some code cleanup and minor locale fixes. As always it's recommended to delete the locale file

Version 1.9.4

  1. Added transactions patterns, now you can make patterns and assign them to traders!
  2. Added logging system for player trader owners, you can easily call the last transactions made by you'r trader
  3. Commands are now separated /trader and /banker
  4. Permissions was been redone, i hope they are now more readable
  5. Locale file was redone, it has now an easier system to translate (but still it's not the end system)
  6. Added Simple-clans, Factions, Towny wallets! (if you wish a wallet to add just say it)
  7. Added more messages, now you know why a transaction failed (still needs some improvements ;P)
  8. The configuration file has been changed (needed to move many things you of the "trader" section)

Navigation

DtlTraders
Usage Managing | Trading | Patterns
Configuration Configuration | Commands | Permissions | Locale
Types Traders | Bankers
Denizen Support Commands | Triggers