DtlTraders/Commands: Difference between revisions

From Citizens Wiki
No edit summary
Line 10: Line 10:




== Trader v2.5.0 general Commands <span style="color:red">Under construction!</span> ==  
== Trader v2.5.0 - General commands ==  


<div style="width:100%;vertical-align:top">
<div style="width:100%;vertical-align:top">
Line 137: Line 137:


</div>
</div>
div style="display:table;width:100%">
 
/p>
 
== Trader v2.5.0 - Trader Commands <span style="color:red">Under construction!</span> ==
 
<div style="width:100%;vertical-align:top">
<div style="display:table;width:100%">
<div style="display:table-cell;width:160px;border-right:solid 1px black"><p style="margin:0px;padding:2px 10px;"><b>Command</b></p>
</div>
<div style="display:table-cell;width:210px;border-right:solid 1px"><p style="margin:0px;padding:2px 10px;"><b>Args</b></p>
</div>
<div style="display:table-cell;width:160px;border-right:solid 1px black"><p style="margin:0px;padding:2px 10px;"><b>Mode</b></p>
</div>
<div style="display:table-cell;width:380px;"><p style="margin:0px;padding:2px 10px;"><b>Description</b></p>
</div>
</div>
 
<!-- /trader create -->
<div style="display:table;width:100%">
<div style="display:table-cell;width:160px;background-color: #F9F9F9;border-top:solid 1px"><!-- Cell -->
<p style="margin:0px"><code style="padding: 5px 10px;display:block">/trader create</code></p>
</div>
<div style="display:table-cell;width:210px;background-color: #F9F9F9;border-top:solid 1px"><!-- Cell -->
<p style="margin:0px"><code style="padding: 5px 10px;display:block">(trader name) (w:wallet) (e:entity) (t:type)</code></p>
</div>
<div style="display:table-cell;width:160px;background-color: #F9F9F9;border-top:solid 1px"><!-- Cell -->
<p style="margin:0px"><code style="padding: 5px 10px;display:block;color:green">no mode required</code></p>
</div>
<div style="display:table-cell;width:380px;background-color: #F9F9F9;border-top:solid 1px"><!-- Cell -->
<p style="margin:0px"><code style="padding: 5px 10px;display:block">creates a trader with the given flags, at the players position</code></p>
</div>
</div>
 
<!-- /trader hire-->
<div style="display:table;width:100%">
<div style="display:table-cell;width:160px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
<p style="margin:0px"><code style="padding: 5px 10px;display:block">/trader hire</code></p>
</div>
<div style="display:table-cell;width:210px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
<p style="margin:0px"><code style="padding: 5px 10px;display:block">(trader name) (w:wallet)</code></p>
</div>
<div style="display:table-cell;width:160px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
<p style="margin:0px"><code style="padding: 5px 10px;display:block;color:green">no mode required</code></p>
</div>
<div style="display:table-cell;width:380px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
<p style="margin:0px"><code style="padding: 5px 10px;display:block">creates a trader with the given name, at the players position. This commands checks "Trader limits", so how many traders a player can have</code></p>
</div>
</div>
 
<!-- /trader manage -->
<div style="display:table;width:100%">
<div style="display:table-cell;width:160px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
<p style="margin:0px"><code style="padding: 5px 10px;display:block">/trader manage</code></p>
</div>
<div style="display:table-cell;width:210px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
<p style="margin:0px"><code style="padding: 5px 10px;display:block">(trader name)</code></p>
</div>
<div style="display:table-cell;width:160px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
<p style="margin:0px"><code style="padding: 5px 10px;display:block;color:green">no mode required</code></p>
</div>
<div style="display:table-cell;width:380px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
<p style="margin:0px"><code style="padding: 5px 10px;display:block">toggles manager mode for the specified trader, or if no name was supplied disables the current management mode</code></p>
</div>
</div>
 
<!-- /trader open -->
<div style="display:table;width:100%">
<div style="display:table-cell;width:160px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
<p style="margin:0px"><code style="padding: 5px 10px;display:block">/trader open</code></p>
</div>
<div style="display:table-cell;width:210px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
<p style="margin:0px"><code style="padding: 5px 10px;display:block">no arguments</code></p>
</div>
<div style="display:table-cell;width:160px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
<p style="margin:0px"><code style="padding: 5px 10px;display:block;color:red">manager mode</code></p>
</div>
<div style="display:table-cell;width:380px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
<p style="margin:0px"><code style="padding: 5px 10px;display:block">opens the stock of the managed trader</code></p>
</div>
</div>
 
<!-- /trader owner -->
<div style="display:table;width:100%">
<div style="display:table-cell;width:160px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
<p style="margin:0px"><code style="padding: 5px 10px;display:block">/trader owner</code></p>
</div>
<div style="display:table-cell;width:210px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
<p style="margin:0px"><code style="padding: 5px 10px;display:block">no arguments</code>
                      <code style="padding: 5px 10px;display:block">set [player]</code></p>
</div>
<div style="display:table-cell;width:160px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
<p style="margin:0px"><code style="padding: 5px 10px;display:block;color:red">manager mode</code></p>
</div>
<div style="display:table-cell;width:380px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
<p style="margin:0px"><code style="padding: 5px 10px;display:block">shows up the current owner</code>
                      <code style="padding: 5px 10px;display:block">sets the new traders owner (not NPC owner!)</code></p>
</div>
</div>
 
<!-- /trader pattern -->
<div style="display:table;width:100%">
<div style="display:table-cell;width:160px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
<p style="margin:0px"><code style="padding: 5px 10px;display:block">/trader pattern</code></p>
</div>
<div style="display:table-cell;width:210px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
<p style="margin:0px"><code style="padding: 5px 10px;display:block">no arguments</code>
                      <code style="padding: 5px 10px;display:block">add [pattern] (priority)</code>
                      <code style="padding: 5px 10px;display:block">remove [pattern]</code>
                      <code style="padding: 5px 10px;display:block">save [pattern] (all/prices/items) (reset/clear)</code>
                      <code style="padding: 5px 10px;display:block">reload</code></p>
</div>
<div style="display:table-cell;width:160px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
<p style="margin:0px"><code style="padding: 5px 10px;display:block;color:red">manager mode</code>
                      <code style="padding: 5px 10px;height:19px;display:block;color:red"> </code>
                      <code style="padding: 5px 10px;height:19px;display:block;color:red"> </code>
                      <code style="padding: 5px 10px;height:38px;display:block;color:red"> </code>
                      <code style="padding: 5px 10px;display:block;color:green">no mode required</code></p>
</div>
<div style="display:table-cell;width:380px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
<p style="margin:0px"><code style="padding: 5px 10px;display:block">shows up the all assigned patterns</code>
                      <code style="padding: 5px 10px;display:block">adds a new pattern with the given priority</code>
                      <code style="padding: 5px 10px;display:block">removes the given pattern from the trader</code>
                      <code style="padding: 5px 10px;display:block">saves the traders stock the given name as a pattern, and allows to reset prices for the trader or to clear his entire stock</code>
                      <code style="padding: 5px 10px;display:block">reloads all patterns</code></p>
</div>
</div>
 
<!-- /trader wallet -->
<div style="display:table;width:100%">
<div style="display:table-cell;width:160px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
<p style="margin:0px"><code style="padding: 5px 10px;display:block">/trader wallet</code></p>
</div>
<div style="display:table-cell;width:210px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
<p style="margin:0px"><code style="padding: 5px 10px;display:block">no arguments</code>
                      <code style="padding: 5px 10px;display:block">set [wallet]</code>
                      <code style="padding: 5px 10px;display:block">withdraw [amount]</code>
                      <code style="padding: 5px 10px;display:block">deposit [amount]</code>
                      <code style="padding: 5px 10px;display:block">balance</code></p>
</div>
<div style="display:table-cell;width:160px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
<p style="margin:0px"><code style="padding: 5px 10px;display:block;color:red">manager mode</code></p>
</div>
<div style="display:table-cell;width:380px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
<p style="margin:0px"><code style="padding: 5px 10px;display:block">shows the current wallet type</code>
                      <code style="padding: 5px 10px;display:block">changes the wallet type</code>
                      <code style="padding: 5px 10px;display:block">withdraws money from a traders wallet (NPC wallet only)</code>
                      <code style="padding: 5px 10px;display:block">deposits money to a traders wallet (NPC wallet only)</code>
                      <code style="padding: 5px 10px;display:block">shows the current balance (NPC wallet only)</code></p>
</div>
</div>
 
</div>
 


== Banker Commands (planned) ==
== Banker Commands (planned) ==

Revision as of 18:22, 25 March 2013

DtlTraders strives to be as much user friendly as possible so there are only a few important commands to remember. Most tasks can be accomplished without their use.

[] - Mandatory
() - Optional

Command - command name
Args - arguments that must or may be parsed
Mode - whether the command requires to be in a certain mode
Description - short description of the command


Trader v2.5.0 - General commands

Command

Args

Mode

Description

/trader

no arguments

no mode required

shows info about the current selected trader or just the plugin version

/trader reload

no arguments

no mode required

reloads the config and the locale

/trader help

no arguments

no mode required

basic help command, displays all available commands

/trader help --all

(page)

no mode required

advanced help command, displays all available commands and additional information about them

/banker

no arguments

no mode required

shows info about the current selected banker or just the plugin version

/banker reload

no arguments

no mode required

reloads the config and the locale

/banker help

no arguments

no mode required

basic help command, displays all available commands


Trader v2.5.0 - Trader Commands Under construction!

Command

Args

Mode

Description

/trader create

(trader name) (w:wallet) (e:entity) (t:type)

no mode required

creates a trader with the given flags, at the players position

/trader hire

(trader name) (w:wallet)

no mode required

creates a trader with the given name, at the players position. This commands checks "Trader limits", so how many traders a player can have

/trader manage

(trader name)

no mode required

toggles manager mode for the specified trader, or if no name was supplied disables the current management mode

/trader open

no arguments

manager mode

opens the stock of the managed trader

/trader owner

no arguments set [player]

manager mode

shows up the current owner sets the new traders owner (not NPC owner!)

/trader pattern

no arguments add [pattern] (priority) remove [pattern] save [pattern] (all/prices/items) (reset/clear) reload

manager mode no mode required

shows up the all assigned patterns adds a new pattern with the given priority removes the given pattern from the trader saves the traders stock the given name as a pattern, and allows to reset prices for the trader or to clear his entire stock reloads all patterns

/trader wallet

no arguments set [wallet] withdraw [amount] deposit [amount] balance

manager mode

shows the current wallet type changes the wallet type withdraws money from a traders wallet (NPC wallet only) deposits money to a traders wallet (NPC wallet only) shows the current balance (NPC wallet only)


Banker Commands (planned)

Banker commands are not implemented at this time.

Navigation

DtlTraders
Configuration Commands | Permissions | Locale
Usage Patterns
Types