Coder Social home page Coder Social logo

tshockmoreshopitem's Introduction

更多商店物品

作者:hufang 修改:miao 羽学 让NPC卖更多的物品。

当你和NPC对话后的2秒内,打开商店,会将配置文件中满足条件的物品附加到商店内。

更新日志

v1.0.3 羽学修复了内嵌配置文件方法(顺便给它换了个配置文件) 配置文件路径也改成了.tshock/里面,不再建个MoreShopItem文件夹

v1.0.2 miao 修复了覆盖原有商品 适配了.net 6.0

配置文件

安装插件后,首次启动会自动创建配置文件,位于 ./tshock/MoreShopItem.json,内容和本项目的 ./res/MoreShopItem.res.config.json 文件相同。

配置说明:

{
    // (这个是备注,目的是说明各个字段,实际配置这样写会出错)

    // 和npc对话后,多加附加物品到NPC商店
    "delay": 2000,

    // 商店列表
    "shop": [
        // 第一个商店
        {
            "id": 17,           //npc id
            "comment": "商人",  // 备注,可不写
            "item": [
                {
                    "id": 2674,  // 物品id
                    "comment": "学徒诱饵",  // 物品名称,可不写
                    "price": 1000,  // 单价,多少铜币,注意是单价
                    "unlock": ["世吞", "雨天"]  // 解锁条件,可不写,可写多条
                },
                {
                    "id": 9,
                    "comment": "木材",
                    "price": 10
                }
            ]
        },
        // 第二个商店
        {
            "id": 453,
            "comment": "骷髅商人",
            "item": [{
                "id": 5043,
                "comment": "火把神徽章",
                "price": 2000000,
                "unlock": ["骷髅王"]
            }]
        }
    ]
}

本插件未新增加任何指令,修改配置文件后,请输入tshock自带的 "/reload" 指令重新载入配置。



参考链接:

tshockmoreshopitem's People

Contributors

hufang360 avatar 1242509682 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.