DtlTraders/managing: Difference between revisions
(dodane opisy limitow, trzeba uzupelnic player limits) |
m (dodane info do player limits) |
||
Line 98: | Line 98: | ||
==== Player Limits ==== | ==== Player Limits ==== | ||
Player limits work the same as above. The only difference is that the limit is applied individualy per player instead of a global effect. | Player limits work the same as above. The only difference is that the limit is applied individualy per player instead of a global effect. | ||
Player limits are not implemented at this time. |
Revision as of 11:01, 10 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$)
Price patterns (will be added in ver 2.0)
Up from version 2.0 there will be added price patterns, so you can set an pattern and assign it to a trader. Within that pattern you can set the default global prices for items set within a server trader. So just add items and all other things will be done automatically! Until you don't change the price manually.
Stack price
Stack price flag is just an improvement for price managing so you don't need to calculate the price for 1 item to get the beloved price. So lets say we want to set a stack of 3 dirts to cost 3$ but how we should do that? Setting the items price to .66 will give us a partial win because the price will be 2.99$. So here using the stack price flag is a way to fix this.
To toggle the flag you just need to right click the item in the stock management. From up now prices will be added for the whole stack.
Warning: so far toggling the stack price flag prevents opening the multiple amounts selection. It will be changed in near future.
Global limits
Limits are used to control how many items can be bought in a given time frame. Buying an item decreases the limit counter and when it reaches zero the item is no longer offered. When a set amount of time has passed the limit counter resets back to its original value and the item can be bought again.
To place limits on the number of offered items click the blue wool
- right click lowers the limit
- left click raises the limit
- shift right click decreases the time it takes for the limit to reset
- shift left click increases the time it takes for the limit to reset
Player Limits
Player limits work the same as above. The only difference is that the limit is applied individualy per player instead of a global effect.
Player limits are not implemented at this time.