DtlTraders/basics: Difference between revisions

From Citizens Wiki
Line 24: Line 24:
'''You created a new trader: <span style="color:orange">Chef</span> Otto'''<br/>
'''You created a new trader: <span style="color:orange">Chef</span> Otto'''<br/>
'''Manager mode enabled for: <span style="color:orange">Chef</span> Otto'''<br/>
'''Manager mode enabled for: <span style="color:orange">Chef</span> Otto'''<br/>
'''''Sell Stock'' managing toggled'''
'''<span style="color:blue">Sell Stock</span> managing toggled'''
</code>
</code>




Every time you '''create a new trader''' with this command it '''switches automatically to manager mode''' for you and '''unlocks the stock'''. Unlocking the stock allows to change the content.  
Every time you '''create a new trader''' with this command it '''switches automatically to manager mode''' for you and '''unlocks the sell stock'''. Unlocking the stock allows to change the content.  


Now we only need to '''right click''' on the trader and get to the next section in this tutorial :)
Now we only need to '''right click''' on the trader and get to the next section in this tutorial :)

Revision as of 14:35, 1 November 2013

This tutorial will show you how to create an Admin shop like trader, how to change his stock and what you should be aware of when managing a trader. I will show you some exceptions and behavior connected with the manager mode and it's sub-modes. I'll also show you how to change the configuration to help you set up prices.

Creating a trader

You can create a trader in 2 different ways, first one is using the /trader create <name> command, or the trait assignment command from citizens /trait trader.

When you should use these command? Generally the create command create a new NPC with the given name, ready to be edited with the next click, whereas the trait command should be used on existing NPCs, so if you got, lets say, a NPC walking a long path you don't need to set his path from scratch.


Lets create a new trader so we can manage him not being afraid of any mistakes.

Lets create a trader with the name Chef Otto, we will also make Otto to have his title in a golden color.

/trader create &6Chef &rOtto

As you see we use the & character to tell that the next number or character is a color code, where &6 means gold and &r is used to reser all formating, so only the title has a color. All color codes are listed [|here].


After that command we have our npc standing before us, and we got three messages:

You created a new trader: Chef Otto
Manager mode enabled for: Chef Otto
Sell Stock managing toggled


Every time you create a new trader with this command it switches automatically to manager mode for you and unlocks the sell stock. Unlocking the stock allows to change the content.

Now we only need to right click on the trader and get to the next section in this tutorial :)


Add, edit and remove items

Setting prices

Multiple amounts

StackPrice and NoStack flags

Configuration

Trader configuration