DtlTraders/Commands: Difference between revisions

From Citizens Wiki
No edit summary
No edit summary
Line 8: Line 8:
'''Require Selected''' - whether the command requires an trader or banker to be selected <br />
'''Require Selected''' - whether the command requires an trader or banker to be selected <br />
'''Require Ownership''' - whether the commands requires you to be the owner of the trader <br />
'''Require Ownership''' - whether the commands requires you to be the owner of the trader <br />
'''Required mode''' - whether the command requires to be in a certain mode <br />
'''Required Mode''' - whether the command requires to be in a certain mode <br />
'''Permission''' - command's permission node <br />
'''Permission''' - command's permission node <br />
'''Description''' - short description of the command <br />
'''Description''' - short description of the command <br />

Revision as of 22:16, 8 September 2012

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's syntax
Args Description - description of the command's arguments
Require Selected - whether the command requires an trader or banker to be selected
Require Ownership - whether the commands requires you to be the owner of the trader
Required Mode - whether the command requires to be in a certain mode
Permission - command's permission node
Description - short description of the command


Trader Commands

Trader commands
Command Args Description Require Selected Require Ownership Required mode Permission Description
/trader None No No None dtl.trader.command Shows up the current version and command list
/trader create [trader name] - the traders actually name
(t:type) - the traders type
(w:wallet) - used wallet
(o:player) - the traders owner (coming in 1.9.1)
(e:entity) - the entity type of the NPC
No No None dtl.trader.command.create
dtl.trader.options.type.<type>
dtl.traders.options.wallet.<wallet>
dtl.traders.options.entity.<entity-type> (going to be deleted)
Creates a new "Trader" NPC with the given type, wallet, entity-type, name. Default wallet and type depends on permissions a player got.
/trader sell list (page) - set the page you want to look at Yes Yes (will change this) Manager dtl.trader.commands.list
dtl.trader.options.sell
Lists items the trader is selling (formating available in the locale file)
/trader buy list (page) - set the page you want to look at Yes Yes (will change this) Manager dtl.trader.commands.list
dtl.trader.options.buy
Lists items the trader is buying (formating available in the locale file)
/trader type (new_type) - sets a new trader-type Yes Yes Manager dtl.trader.commands.type
dtl.trader.options.type.<type>
Shows up the current trader type (only for player or server traders), or changes the type by the supplied argument
/trader wallet (new_wallet) - sets a new wallet
(bank_account_name) - used with the "bank" wallet to set the bank account (needs to be the owner or member of the bank account)
Yes Yes Manager dtl.trader.commands.wallet
dtl.trader.options.wallet.<wallet>
Shows up the current wallet the trader is using, or changes the type by the supplied argument (only for player or server traders)
/trader owner (new_owner) - sets the new owner Yes Yes Manager dtl.trader.commands.owner Shows up the current owner of the selected trader, or changes the owner by the supplied argument (only for player or server traders)
/trader balance None Yes Yes Manager dtl.trader.commands.balance Shows up the balance of the selected trader.
Requires npc-wallet to use
/trader deposit [amount] - the amount we want to deposit Yes Yes Manager dtl.trader.commands.deposit Deposit given amount of money to traders wallet
Requires npc-wallet to use
/trader withdraw [amount] - the amount we want to withdraw Yes Yes Manager dtl.trader.commands.withdraw Withdraw given amount of money from traders wallet
Requires npc-wallet to use

Banker Commands (planned)