Description: 3.5 - 4.0/Commands
Commands
/trader reload
This command reloads the plugin, the global trader settings, and the locale file.
/trader help
Shows a list of all available commands.
/trader create [name]
Creates a new trader with the trader and wallet traits.
/trader startstock <action> (stock)
This command allows to manage the start stock setting for the selected (in manager mode) trader. Start stock settings allows you to tell what stock should be displayed when opening a trader for buying/selling.
Depending on the <action> argument you can:
show - Show the current start stock
reset - Reset the start stock to the default start stock (in config)
set - Set a specific start stock, buy or sell
example:
/trader startstock set buy
/trader stocksize <action> (size)
This command allows to manage the stock size setting for the selected (in manager mode) trader. Stock size allows you to change how much items a trader can carry. Size can be set from 1 to 6, and this number is like a row of items. You need to take under consideration there are 4 items set for managing.
Depending on the <action> argument you can:
show - Show the current stock size
reset - Reset the stock size to the default stock size (in config)
set - Set a specific stock size, from 1 to 6
example:
/trader stocksize set 3
.. this will allow you to add 3*9 - 4 items to the stock.
WARNING! If you are decreasing the stock size, be aware to have the stock empty or all items does not go over the item row you will have as your new max.
/trader stockname <action> {args}
This command allows to manage the stock name format setting for the selected (in manager mode) trader. Stock name setting allows you to set a specific stock name, like for a Weapon merchant you can set the stock name "{npc}'s Magic Weapons".
Depending on the <action> argument you can:
show - Show the current stock name format
reset - Reset the stock name to the default stock name (in config)
set - Set a specific stock name format, use the {npc} tag to show the npc's name in the stock name automatically.
example:
/trader stockname set {npc}'s magic weapons shop
/trader wallet <option> <action> (value)
This command allows to change the wallet type (infinite, private, owner, player) and some of the wallets options, including the wallets amount (private wallet), or the wallets target player (player wallet).
The <option> argument has three valid values:
type, player, amount
Depending on the <action> argument you can:
show - Show the wallet type, amount or player
set - Set the wallet type, amount or player
The (value) argument differs depending on the <option> argument:
type - the value is one of the following: infinite, private, owner, player
player - the value should be a valid player name
amount - the value should be a valid number
examples:
/trader wallet type set player
/trader wallet player set dandielo
/trader pattern <action> (pattern)
Allows to manage and edit the pattern list for a selected trader. You can show, add, remove, clear or reset to default the pattern list.
Depending on the <action> argument you can:
show - shows a list of all patterns the trader has applied.
add - adds a new pattern to the list, even when you add a invalid one it wll just ignore it
remove - removes a pattern from the list
removeall - removes all patterns from the list
default - clears the list and adds all default patterns set in the config
The (pattern) argument is valid for the #add and #remove action where you should put the pattern name that should be added or removed
examples:
/trader pattern add test_pattern
/trader pattern removeall
/trader sellprice/buyprice {args}
Allows to set prices for items in stock without using the UI, this command uses the price pattern syntax, so you can apply easily one price to all items in stock or change prices very precise, or change a price only for a group of items (like all wools).
examples:
/trader sellprice 35 p:12.2
/trader sellprice 0 p:10
/trader reset <option>
Resets an option for the selected trader.
Available options:
prices - removes for every item the price attribute, you can use this to allow listening pattern prices.
examples:
/trader reset prices
Created with our experience @4Creation
Comments