DtlTraders/managing: Difference between revisions
(Created page with "Going to update this page soon!") |
No edit summary |
||
Line 1: | Line 1: | ||
== Introduction == | |||
<b>What does this managing means?</b> | |||
Mainly, ''managing'' a trader, tells about changing his variables. We can change the traders ''owner'' or ''wallet'', but also we can ''manage'' his stock, or in other words inventory. Managing is different for each trader type, because every type has got his own ''features''. | |||
<b>How much differs the managing systems?</b> | |||
The biggest difference is how we ''add'', ''edit'' and ''remove'' items within the traders stock. Any other managing like ''price managing'' or ''limits managing'' are similar and often easy to make it up how it works. | |||
<b>Is there a way to manage traders with commands?</b> | |||
So far i didn't created commands to ''add'', ''edit'' or ''remove'' items, but I will add it, so be prepared for ''commands'' update in near future. | |||
== Server trader == | |||
==== Features ==== | |||
Lets list some features we can use | |||
# has got a buy and sell stock (max 51 slots) | |||
# allows to set ''global limits'' | |||
# allows to set ''player limits'' (at this moment it's broken, will be fixed till 2.0R) | |||
# allows to toggle ''stack price'' format | |||
# allows to add ''multiple amounts'' | |||
# 6 different wallets | |||
==== Stock managing ==== | |||
<b>Adding an item</b> | |||
To add an item into a ''server traders'' stock we just take an item from our inventory and put it into the traders inventory. Thats it. When an items is added it saves it's slot and appears always in this slot. So we can arrange the inventory displayed to a customer. | |||
<b>Editing an item</b> | |||
When we pickup an item in the traders stock it will inform us about this, we can now change it's position in the inventory. Nothing else will be change just the items position. | |||
<b>Removing an item</b> | |||
But we have got an idea we don't want to sell anymore an item, it makes players too strong, so we grab that item and put it back into out inventory. Done!. This item has never been in the traders stock. ;> | |||
<b>Switching between ''sell'' and ''buy'' stock (tab)</b> | |||
But we also want to allow players sell items to the trader, how we do this? In the right bottom corner are three different wool colors (if not changed in the config file). So far wee need to know that the most right items is a toggle between a traders ''sell'' and ''buy'' tab. It will be announced to us which tab has been toggled. | |||
==== Price managing ==== | |||
<b>Enabling the price managing</b> | |||
But wait, all items I've added into the traders inventory don't got a price! So, thats an job for the '''black wool'''! This default wool enables the ''price managing'' for items found in the traders inventory. If we click it, it will change its color to ''white'', that means always '''go back to stock managing'''. | |||
Once we clicked it we can show up and change prices for every item; | |||
<b>Showing up a price</b> | |||
To see the items current price just click it with an '''empty''' cursor. | |||
<b>Changing a price</b> | |||
To change the items price, you just need to take any item you got in the inventory and click with it on a ''stock item''. | |||
* '''left click''' will increase the price by the amount of the holding item (so clicking an ''stock item'' with '''3 wool''' will increase the price by 3$) | |||
* '''right click''' will decrease the price by the amount of the holding item (so clicking an ''stock item'' with '''2 emerlands''' will decrease the price by 2$) |
Revision as of 22:12, 9 September 2012
Introduction
What does this managing means?
Mainly, managing a trader, tells about changing his variables. We can change the traders owner or wallet, but also we can manage his stock, or in other words inventory. Managing is different for each trader type, because every type has got his own features.
How much differs the managing systems?
The biggest difference is how we add, edit and remove items within the traders stock. Any other managing like price managing or limits managing are similar and often easy to make it up how it works.
Is there a way to manage traders with commands?
So far i didn't created commands to add, edit or remove items, but I will add it, so be prepared for commands update in near future.
Server trader
Features
Lets list some features we can use
- has got a buy and sell stock (max 51 slots)
- allows to set global limits
- allows to set player limits (at this moment it's broken, will be fixed till 2.0R)
- allows to toggle stack price format
- allows to add multiple amounts
- 6 different wallets
Stock managing
Adding an item
To add an item into a server traders stock we just take an item from our inventory and put it into the traders inventory. Thats it. When an items is added it saves it's slot and appears always in this slot. So we can arrange the inventory displayed to a customer.
Editing an item
When we pickup an item in the traders stock it will inform us about this, we can now change it's position in the inventory. Nothing else will be change just the items position.
Removing an item
But we have got an idea we don't want to sell anymore an item, it makes players too strong, so we grab that item and put it back into out inventory. Done!. This item has never been in the traders stock. ;>
Switching between sell and buy stock (tab)
But we also want to allow players sell items to the trader, how we do this? In the right bottom corner are three different wool colors (if not changed in the config file). So far wee need to know that the most right items is a toggle between a traders sell and buy tab. It will be announced to us which tab has been toggled.
Price managing
Enabling the price managing
But wait, all items I've added into the traders inventory don't got a price! So, thats an job for the black wool! This default wool enables the price managing for items found in the traders inventory. If we click it, it will change its color to white, that means always go back to stock managing.
Once we clicked it we can show up and change prices for every item;
Showing up a price
To see the items current price just click it with an empty cursor.
Changing a price
To change the items price, you just need to take any item you got in the inventory and click with it on a stock item.
- left click will increase the price by the amount of the holding item (so clicking an stock item with 3 wool will increase the price by 3$)
- right click will decrease the price by the amount of the holding item (so clicking an stock item with 2 emerlands will decrease the price by 2$)