# (NEW)Team Shop

Every day, each guild will randomly purchase a guild group purchase product, and each guild member can negotiate once. The price will be randomly reduced according to the mode set in the [config](https://gyzer.gitbook.io/legendaryguild-english/configuration/config.yml). Each product can be purchased with a set currency, base price, guaranteed price, and daily purchase limit.

## Example

<figure><img src="https://1285759441-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXahN5tRgf5Q7Bso4Grl4%2Fuploads%2FMHOoHOcbCkrK9pmuet1c%2FQQ%E5%9B%BE%E7%89%8720240607161906.png?alt=media&#x26;token=d041e656-61a2-45d9-a8c9-f6defd954581" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1285759441-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXahN5tRgf5Q7Bso4Grl4%2Fuploads%2F6nfKNWTO9qBb8t8wIJCb%2FQQ%E5%9B%BE%E7%89%8720240607161926.png?alt=media&#x26;token=2e0cefa4-1baf-44ee-be20-936b54240bfd" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1285759441-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXahN5tRgf5Q7Bso4Grl4%2Fuploads%2FMVOKtOZZdHMfDTtHFdyx%2FQQ%E5%9B%BE%E7%89%8720240607161930.png?alt=media&#x26;token=4c41592e-da01-408d-b37b-2c39a8e68885" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1285759441-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXahN5tRgf5Q7Bso4Grl4%2Fuploads%2FnFUhJqvrjxvsfFOiGIM9%2FQQ%E5%9B%BE%E7%89%8720240607161934.png?alt=media&#x26;token=30258635-870d-4598-8c6c-75af814ff6e3" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1285759441-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXahN5tRgf5Q7Bso4Grl4%2Fuploads%2FpTnKmZGh0BzvsTzPeFuw%2F%E8%81%94%E6%83%B3%E6%88%AA%E5%9B%BE_20240607161953.png?alt=media&#x26;token=985c8b1a-939b-463b-8027-fe789d7faf7c" alt=""><figcaption></figcaption></figure>

## Add a new team shop item

Just continue adding according to the default configuration

## Default Configuration

```
#每个公会每日将在下方礼包中随机选取一个礼包作为今日团购礼包
#每日团购数据都会刷新
#Each guild will randomly select a gift package from the following gift packages every day as the group buying gift package for today
#Daily group buying data will be refreshed
shops:
  #id
  团购礼包1:
    display: '&eTeam Shop Item &7[一]'
    pirce:
      #基础值 （即原价）
      #Basic price
      base: 1700
      #可被砍到的最低价格
      #The lowest price that can be discounted
      min: 250
    #该礼包每个成员可买多少次(-1为无限量)
    #How many times can each member buy this gift package (-1 is unlimited)
    limit: 1
    #Vault(需安装插件 Vault) / PlayerPoints(点券,需安装插件 PlayerPoints) / Guild_Points(公会贡献点)
    currency: PlayerPoints
    preview:
      material: CHEST
      data: 0
      amount: 1
      model: 0
      #可用变量，可使用 papi 变量
      #%placeholder_whether_bargain% 玩家当前是否已砍过价格变量（内容在GUI配置文件中更改） & Has the player currently cut the price variable
      #%placeholder_limit% 限购变量（内容在GUI配置文件中更改） & Restricted purchase variables
      #%current_price% 当前价格 & Current price
      #%bargain% 已砍价人数 & Number of people whose purchase restrictions have changed to bargaining
      #%members% 公会人数 & Number of guild members
      display: '%placeholder_whether_bargain% &e团购特惠礼包 &7[一] '
      lore:
        - '&6&lRewards'
        - '&f - Test...'
        - ''
        - '&e&l| &fBargaining People &d%bargain%/%members%'
        - '&e&l| &fCurrent Price: &a%current_price%&7&o(原价1700) &aPoints'
        - '%placeholder_limit%'
        - ''
        - '&f[ &bLeft Click to Bargain | Right Click to Buy &f]'
    run:
      - '[console]money give %player% 5000'
  团购礼包2:
    display: '&eTeam Shop Item &7[二]'
    price:
      base: 1999
      min: 233
    limit: 1
    currency: PlayerPoints
    preview:
      material: CHEST
      data: 0
      amount: 1
      model: 0
      display: '%placeholder_whether_bargain% &e&e团购特惠礼包 &7[二] '
      lore:
        - '&6&lRewards'
        - '&f - Test...'
        - ''
        - '&e&l| &fBargaining People &d%bargain%/%members%'
        - '&e&l| &fCurrent Price: &a%current_price%&7&o(原价1999) &aPoints'
        - '%placeholder_limit%'
        - ''
        - '&f[ &bLeft Click to Bargain | Right Click to Buy &f]'
    run:
      - '[console]money give %player% 5000'
```
