DtlTraders/Commands: Difference between revisions

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




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


<div style="width:100%;vertical-align:top">
<div style="width:100%;vertical-align:top">
Line 22: Line 22:
<div style="display:table-cell;width:380px;"><p style="margin:0px;padding:2px 10px;"><b>Description</b></p>
<div style="display:table-cell;width:380px;"><p style="margin:0px;padding:2px 10px;"><b>Description</b></p>
</div>
</div>
</div><!-- /trader -->
</div>
 
<!-- /trader -->
<div style="display:table;width:100%">
<div style="display:table;width:100%">
<div style="display:table-cell;width:160px;background-color: #F9F9F9;border-top:solid 1px"><!-- Cell -->
<div style="display:table-cell;width:160px;background-color: #F9F9F9;border-top:solid 1px"><!-- Cell -->
Line 31: Line 33:
</div>
</div>
<div style="display:table-cell;width:160px;background-color: #F9F9F9;border-top:solid 1px"><!-- Cell -->
<div style="display:table-cell;width:160px;background-color: #F9F9F9;border-top:solid 1px"><!-- Cell -->
<p style="margin:0px;padding:2px 10px"><code style="margin:0px;display:block;color:green">no mode required</code></p>
<p style="margin:0px;padding:2px 10px"><code style="margin:0px;display:block;color:orange">no mode required</code></p>
</div>
</div>
<div style="display:table-cell;width:380px;background-color: #F9F9F9;border-top:solid 1px"><!-- Cell -->
<div style="display:table-cell;width:380px;background-color: #F9F9F9;border-top:solid 1px"><!-- Cell -->
<p style="margin:0px;padding:2px 10px"><code style="margin:0px;display:block">Shows up the currently selected trader, or the plugin version if nothing selected</code></p>
<p style="margin:0px;padding:2px 10px"><code style="margin:0px;display:block">shows info about the current selected trader or just the plugin version</code></p>
</div>
</div>
</div>
</div><!-- /trader reload -->
 
<!-- /trader reload -->
<div style="display:table;width:100%">
<div style="display:table;width:100%">
<div style="display:table-cell;width:160px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
<div style="display:table-cell;width:160px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
Line 48: Line 52:
</div>
</div>
<div style="display:table-cell;width:380px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
<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">Reloads the config and the locale</code></p>
<p style="margin:0px"><code style="padding: 5px 10px;display:block">reloads the config and the locale</code></p>
</div>
</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>
<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>
<!-- /trader help -->
</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</code></p>
</div>
</div><!-- /trader create -->
<div style="display:table;width:100%">
<div style="display:table;width:100%">
<div style="display:table-cell;width:160px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
<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 create</code></p>
<p style="margin:0px"><code style="padding: 5px 10px;display:block">/trader help</code></p>
</div>
</div>
<div style="display:table-cell;width:210px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
<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) (e:entity) (t:type)</code></p>
<p style="margin:0px"><code style="padding: 5px 10px;display:block">no arguments</code></p>
</div>
</div>
<div style="display:table-cell;width:160px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
<div style="display:table-cell;width:160px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
Line 76: Line 68:
</div>
</div>
<div style="display:table-cell;width:380px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
<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 flags, at the players position</code></p>
<p style="margin:0px"><code style="padding: 5px 10px;display:block">basic help command, displays all available commands</code></p>
</div>
</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>
<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>
<!-- /trader help --all (page) -->
</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 wallet -->
<div style="display:table;width:100%">
<div style="display:table;width:100%">
<div style="display:table-cell;width:160px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
<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>
<p style="margin:0px"><code style="padding: 5px 10px;display:block">/trader help --all</code></p>
</div>
</div>
<div style="display:table-cell;width:210px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
<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">(wallet type/name)</code></p>
<p style="margin:0px"><code style="padding: 5px 10px;display:block">(page)</code></p>
</div>
</div>
<div style="display:table-cell;width:160px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
<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>
<p style="margin:0px"><code style="padding: 5px 10px;display:block;color:green">no mode required</code></p>
</div>
</div>
<div style="display:table-cell;width:380px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
<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 wallet, or changes it when the argument is given</code></p>
<p style="margin:0px"><code style="padding: 5px 10px;display:block">advanced help command, displays all available commands and additional information about them</code></p>
</div>
</div>
</div><!-- /trader clear -->
<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 clear</code></p>
</div>
</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>
<!-- /banker -->
</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">Clears the traders stock (pattern items will persist)</code></p>
</div>
</div><!-- /trader owner -->
<div style="display:table;width:100%">
<div style="display:table;width:100%">
<div style="display:table-cell;width:160px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
<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>
<p style="margin:0px;padding:2px 10px"><code style="margin:0px;display:block">/banker </code></p>
</div>
</div>
<div style="display:table-cell;width:210px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
<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">(new owner)</code></p>
<p style="margin:0px;padding:2px 10px"><code style="margin:0px;display:block">no arguments</code></p>
</div>
</div>
<div style="display:table-cell;width:160px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
<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>
<p style="margin:0px;padding:2px 10px"><code style="margin:0px;display:block;color:green">no mode required</code></p>
</div>
</div>
<div style="display:table-cell;width:380px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
<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, or changes it when the argument is given</code></p>
<p style="margin:0px;padding:2px 10px"><code style="margin:0px;display:block">shows info about the current selected banker or just the plugin version</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>
<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">(remove)</code>
                      <code style="padding: 5px 10px;display:block">set [pattern]</code>
                      <code style="padding: 5px 10px;display:block">save [pattern_name] (all/prices/items) (reset/clear)</code></p>
</div>
</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>
<!-- /banker reload -->
</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 pattern, or removes it</code>
                      <code style="padding: 5px 10px;display:block">Changes the pattern by the given argument</code>
                      <code style="padding: 5px 10px;display:block">Saves the pattern under the given name, and allows to reset prices for the trader or to clear his entire stock</code></p>
</div>
</div><!-- /trader balance -->
<div style="display:table;width:100%">
<div style="display:table;width:100%">
<div style="display:table-cell;width:160px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
<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 balance</code></p>
<p style="margin:0px"><code style="padding: 5px 10px;display:block">/banker reload</code></p>
</div>
</div>
<div style="display:table-cell;width:210px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
<div style="display:table-cell;width:210px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
Line 161: Line 113:
</div>
</div>
<div style="display:table-cell;width:160px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
<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>
<p style="margin:0px"><code style="padding: 5px 10px;display:block;color:green">no mode required</code></p>
</div>
</div>
<div style="display:table-cell;width:380px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
<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 traders balance, needs NPC wallet</code></p>
<p style="margin:0px"><code style="padding: 5px 10px;display:block">reloads the config and the locale</code></p>
</div>
</div>
</div><!-- /trader deposit -->
<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 deposit</code></p>
</div>
</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">[amount]</code></p>
<!-- /banker help -->
</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">Deposit given amount to the trader, needs NPC wallet</code></p>
</div>
</div><!-- /trader withdraw -->
<div style="display:table;width:100%">
<div style="display:table;width:100%">
<div style="display:table-cell;width:160px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
<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 withdraw</code></p>
<p style="margin:0px"><code style="padding: 5px 10px;display:block">/banker help</code></p>
</div>
</div>
<div style="display:table-cell;width:210px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
<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">[amount]</code></p>
<p style="margin:0px"><code style="padding: 5px 10px;display:block">no arguments</code></p>
</div>
</div>
<div style="display:table-cell;width:160px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
<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>
<p style="margin:0px"><code style="padding: 5px 10px;display:block;color:green">no mode required</code></p>
</div>
</div>
<div style="display:table-cell;width:380px;background-color: #F9F9F9;border-top:dashed 1px red"><!-- Cell -->
<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">Withdraws given amount from the trader, needs NPC wallet</code></p>
<p style="margin:0px"><code style="padding: 5px 10px;display:block">basic help command, displays all available commands</code></p>
</div>
</div>
</div>
</div>
</div>
</div>
<!--
|-
| /trader list || [stock] - the given stock to display (buy/sell) <br /> (page) - page number || Yes || Yes || Manager || dtl.trader.commands.list<br />dtl.trader.options.<stock> || Lists items the trader is selling ''(formating available in the locale file)''
|-
| /trader type  || (type) - trader type || Yes || Yes || Manager || dtl.trader.commands.type<br />dtl.trader.types.<type> ''(when changing)'' || Shows up the current trader type (only for player or server traders), or changes the type by the supplied argument
|-
| /trader log  || (trader name) - traders name ''(allows whitespace characters)'' || No || Yes || Manager || dtl.trader.commands.log || Shows all transactions the trader has performed. Shows the ''Buyer/Seller'', the ''item'' he has bought/sold and the ''amount'. When no trader is selected it lists all transactions of each trader owned, when supplying a name only this traders log will be showed.
|-
| /trader clearlog  || (trader name) - traders name ''(allows whitespace characters)'' || No || Yes || Manager || dtl.trader.commands.clearlog || Clears the selected traders log. If not traders is selected it clears all traders logs until you specify a name.
-->


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

Revision as of 17:58, 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 Under construction!

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

Banker Commands (planned)

Banker commands are not implemented at this time.

Navigation

DtlTraders
Configuration Commands | Permissions | Locale
Usage Patterns
Types