> For the complete documentation index, see [llms.txt](https://durumi.gitbook.io/en-dynamicshop-3-wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://durumi.gitbook.io/en-dynamicshop-3-wiki/05.-item-settings.md).

# 05. Item Settings

<figure><img src="/files/XEPlaiqHi6AU2IuYsiOV" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/AsK6bH6Os15hkJWGrjDd" alt=""><figcaption></figcaption></figure>

## Price calculation formula

| Price = (Median \* Value) / Stock |
| :-------------------------------: |

## Components of item data

### Purchase Value

One of the factors that determines the purchase price of an item.

### Sales Value

One of the factors that determine the selling price of an item. By default, it has the same value as the purchase value. Normally, sales tax is applied, so shop users sell items at a lower price than they bought them. If a separate sales value is specified, sales tax is ignored.

### Price Min

The item price cannot be less than this value.

### Price Max

The item price cannot be greater than this value.

### Median

The median is the reference point for stock. stock values change as shoppers buy and sell, but the median is always fixed. The larger the median, the slower the price changes. Conversely, the smaller the median, the faster the price changes.

### Stock

Indicates how many of this item are in the store. If stock equals median, then price equals value. If inventory is less than the median, it means that the item is currently in short supply relative to demand. So the price goes up.

### Stock Max

When the stock reaches its maximum value, users will no longer be able to sell this item to the store.

## Set to recommended

<figure><img src="/files/0PGnD320D1dytAE2B17A" alt=""><figcaption></figcaption></figure>

Press the button at the bottom center of the screen to automatically set all values. The recommended value is based on the Shop.NumberOfPlayer entry in config.yml and data in the Worth.yml file.

{% hint style="info" %}
If you want to apply the recommended value to all items in the store, enter the following command.

/ds shop \<shop name> setToRecAll
{% endhint %}

{% hint style="info" %}
Recommended Median Calculation Formula

$$(4/(w^0.35))*1000*p$$

w = item value from Worth.yml&#x20;

p = the number of players on the server (does not mean the actual number of people connected. Value defined in Config.yml)
{% endhint %}

## Buy only, Sell only

<figure><img src="/files/4YZkM3o2eakVve6zTbxr" alt=""><figcaption></figcaption></figure>

On the item trading screen, press the button on the left side of the screen. Or use the following command.

```
/ds shop <shop name> sellbuy <sellonly|buyonly|clear>
```

## Infinite stock

Setting the stock to -1 makes the stock infinite.

## Fixed price

If you set the median to -1, the price will not change.

## Discount

<figure><img src="/files/fqw0ZQWCMW97ld0GkFeF" alt=""><figcaption></figcaption></figure>

You can set the discount rate for each item.\
Use the editAll command to apply it to all items in the store.

```
/ds shop <shop name> editall discount = 50
```

## Trading volume limit

<figure><img src="/files/Y84YQT4iLYKMmjFmrzTw" alt=""><figcaption></figcaption></figure>

You can set a limit on the quantity a player can buy/sell within a certain period of time.\
If you sell an item with a purchase limit, the limit will increase, and vice versa.

You can reset only the trading volume while maintaining the trading volume limit setting.

```
/ds shop <shopName> resetTradingVolume [<player>]
```

{% hint style="warning" %}
Note that if you edit the itemMeta of an item with Notepad, it will be treated as a different item. (The trading volume limit for that item will be reset.)
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://durumi.gitbook.io/en-dynamicshop-3-wiki/05.-item-settings.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
