GUI Shop

Last-modified: 2023-08-02 (水) 00:56:09

設定ファイル:/home/rustserver/serverfiles/oxide/config/GUIShop.json

 

設定済みサンプル(ver2.4.45)
ファイル:GUIShop_ver2.4.45_20230731.zip

 

1.パラメータ設定

設定変更が必要なパラメータ(任意の値に変更)
下記では不要カテゴリーの無効化と、カテゴリー別に売買商品の設定します。

Noカテゴリー名デフォルト値設定値商品備考
01CommandstruetrueHeli Attack,Mini BackPack,Medium BackPack,Mega BackPack,Chassi Craft Skill 1,Chassi Craft Skill 2,Chassi Craft Skill 3攻撃ヘリ呼び出し、バックパック拡張、シャーシスキル
02AttiretruetrueHazmat Suit,Arctic Suit,Nomad Suit,Space Suitハズマットスーツ等
03MisctruetrueGreen Keycard,Blue Keycard,Red Keycardカード等
04ItemstruetrueWorkbench Level 1,Workbench Level 2,Workbench Level 3,Vending Machine,Recycler,Test Generatorワークベンチ、リサイクラー、テストジェネレータ等
05ComponenttruetrueRifle Body,Semi Automatic Body,SMG Body,Electric Fuse,Gears,Metal Spring,Metal Blade,Sewing Kit,Sheet Metal,Tarp,Tech Trash,Ropeコンポーネントいろいろ
06AmmunitiontruetruePistol Bullet,5.56 Rifle Ammo,12 Gauge Buckshot,Rocket,Satchel Charge,Timed Explosive Charge,F1 Grenade弾薬いろいろ
07ConstructiontruetrueWooden Ladder,Door Closerはしご、ドアクルーザー
08Trapstruefalse無効
09ElectricaltruetrueGreen Industrial Wall Light,Industrial Wall Light,Red Industrial Wall Light,Small Neon Sign,Medium Neon Sign,Large Neon Sign,Deluxe Christmas Lights,Medium Animated Neon Sign,Large Animated Neon Sign,Simple Light,Disco Floor,Disco Ball,CCTV Camera電気系いろいろ
10Funtruefalse無効
11Foodtruefalse無効
12ResourcestruetrueDog Tag,Blue Dog Tags,Red Dog Tags,Scrap,High Quality Metal,Low Grade Fuel,Diesel Fuelリソースいろいろ
13TooltruetruePickaxe,Hatchet,Jackhammer,Chainsaw,Spray Can,Binoculars,Garry's Mod Tool Gunツールいろいろ
14WeapontruetrueThompson,Double Barrel Shotgun武器いろいろ
15MedicaltruetrueLarge Medkit,Medical Syringe,Bandage回復いろいろ
 

カテゴリーの無効化は、カテゴリー内の「EnabledCategory」を設定します。

パラメータデフォルト値設定値備考
EnabledCategorytruefalse無効化
 

GUIShop追加アイテム(Shop - Shop List):「Heli Attack」、「Mini BackPack」、「Medium BackPack」、「Mega BackPack」、「Chassi Craft Skill 1」、「Chassi Craft Skill 2」、「Chassi Craft Skill 3」、「Recycler」、「Test Generator」

    "Heli Attack": {
      "DisplayName": "Heli Attack",
      "CraftAsDisplayName": false,
      "Shortname": "heliattack",
      "ItemId": 0,
      "MakeBlueprint": false,
      "AllowSellOfUsedItems": false,
      "Condition": 0.0,
      "EnableBuy": true,
      "EnableSell": false,
      "Image": "https://i.imgur.com/XS9yiqi.png",
      "SellPrice": 0.0,
      "BuyPrice": 1.0,
      "BuyCooldown": 0,
      "SellCooldown": 0,
      "BuyQuantity": [
        1
      ],
      "SellQuantity": [],
      "BuyLimit": 0,
      "BuyLimitResetCoolDown": 600,
      "SwapLimitToQuantityBuyLimit": false,
      "SellLimit": 0,
      "SellLimitResetCoolDown": 0,
      "SwapLimitToQuantitySoldLimit": false,
      "KitName": "",
      "Command": [
        "callheli $player.id"
      ],
      "RunCommandAndCustomShopItem": false,
      "GeneTypes": [],
      "SkinId": 0
    },
    "Mini BackPack": {
      "DisplayName": "Mini BackPack",
      "CraftAsDisplayName": false,
      "Shortname": "minibackpack",
      "ItemId": 0,
      "MakeBlueprint": false,
      "AllowSellOfUsedItems": false,
      "Condition": 0.0,
      "EnableBuy": true,
      "EnableSell": false,
      "Image": "https://i.imgur.com/y6PwJSn.png",
      "SellPrice": 1.0,
      "BuyPrice": 5000.0,
      "BuyCooldown": 0,
      "SellCooldown": 0,
      "BuyQuantity": [],
      "SellQuantity": [],
      "BuyLimit": 1,
      "BuyLimitResetCoolDown": 0,
      "SwapLimitToQuantityBuyLimit": false,
      "SellLimit": 0,
      "SellLimitResetCoolDown": 0,
      "SwapLimitToQuantitySoldLimit": false,
      "KitName": "",
      "Command": [
        "oxide.grant user $player.id backpacks.use.2"
      ],
      "RunCommandAndCustomShopItem": false,
      "GeneTypes": [],
      "SkinId": 0
    },
    "Medium BackPack": {
      "DisplayName": "Medium BackPack",
      "CraftAsDisplayName": false,
      "Shortname": "mediumbackpack",
      "ItemId": 0,
      "MakeBlueprint": false,
      "AllowSellOfUsedItems": false,
      "Condition": 0.0,
      "EnableBuy": true,
      "EnableSell": false,
      "Image": "https://i.imgur.com/y6PwJSn.png",
      "SellPrice": 1.0,
      "BuyPrice": 10000.0,
      "BuyCooldown": 0,
      "SellCooldown": 0,
      "BuyQuantity": [],
      "SellQuantity": [],
      "BuyLimit": 1,
      "BuyLimitResetCoolDown": 0,
      "SwapLimitToQuantityBuyLimit": false,
      "SellLimit": 0,
      "SellLimitResetCoolDown": 0,
      "SwapLimitToQuantitySoldLimit": false,
      "KitName": "",
      "Command": [
        "oxide.grant user $player.id backpacks.use.4"
      ],
      "RunCommandAndCustomShopItem": false,
      "GeneTypes": [],
      "SkinId": 0
    },
    "Mega BackPack": {
      "DisplayName": "Mega BackPack",
      "CraftAsDisplayName": false,
      "Shortname": "megabackpack",
      "ItemId": 0,
      "MakeBlueprint": false,
      "AllowSellOfUsedItems": false,
      "Condition": 0.0,
      "EnableBuy": true,
      "EnableSell": false,
      "Image": "https://i.imgur.com/y6PwJSn.png",
      "SellPrice": 1.0,
      "BuyPrice": 30000.0,
      "BuyCooldown": 0,
      "SellCooldown": 0,
      "BuyQuantity": [],
      "SellQuantity": [],
      "BuyLimit": 1,
      "BuyLimitResetCoolDown": 0,
      "SwapLimitToQuantityBuyLimit": false,
      "SellLimit": 0,
      "SellLimitResetCoolDown": 0,
      "SwapLimitToQuantitySoldLimit": false,
      "KitName": "",
      "Command": [
        "oxide.grant user $player.id backpacks.use.7"
      ],
      "RunCommandAndCustomShopItem": false,
      "GeneTypes": [],
      "SkinId": 0
    },
    "Chassi Craft Skill 1": {
      "DisplayName": "Chassi Craft Skill 1",
      "CraftAsDisplayName": false,
      "Shortname": "vehicle.chassis.2mod",
      "ItemId": -44066600,
      "MakeBlueprint": false,
      "AllowSellOfUsedItems": false,
      "Condition": 0.0,
      "EnableBuy": true,
      "EnableSell": false,
      "Image": "",
      "SellPrice": 1.0,
      "BuyPrice": 1000.0,
      "BuyCooldown": 0,
      "SellCooldown": 0,
      "BuyQuantity": [],
      "SellQuantity": [],
      "BuyLimit": 1,
      "BuyLimitResetCoolDown": 0,
      "SwapLimitToQuantityBuyLimit": false,
      "SellLimit": 0,
      "SellLimitResetCoolDown": 0,
      "SwapLimitToQuantitySoldLimit": false,
      "KitName": "",
      "Command": [
        "o.grant user $player.id craftchassis.2"
      ],
      "RunCommandAndCustomShopItem": false,
      "GeneTypes": [],
      "SkinId": 0
    },
    "Chassi Craft Skill 2": {
      "DisplayName": "Chassi Craft Skill 2",
      "CraftAsDisplayName": false,
      "Shortname": "vehicle.chassis.3mod",
      "ItemId": -44066823,
      "MakeBlueprint": false,
      "AllowSellOfUsedItems": false,
      "Condition": 0.0,
      "EnableBuy": true,
      "EnableSell": false,
      "Image": "",
      "SellPrice": 1.0,
      "BuyPrice": 2500.0,
      "BuyCooldown": 0,
      "SellCooldown": 0,
      "BuyQuantity": [],
      "SellQuantity": [],
      "BuyLimit": 1,
      "BuyLimitResetCoolDown": 0,
      "SwapLimitToQuantityBuyLimit": false,
      "SellLimit": 0,
      "SellLimitResetCoolDown": 0,
      "SwapLimitToQuantitySoldLimit": false,
      "KitName": "",
      "Command": [
        "o.grant user $player.id craftchassis.3"
      ],
      "RunCommandAndCustomShopItem": false,
      "GeneTypes": [],
      "SkinId": 0
    },
    "Chassi Craft Skill 3": {
      "DisplayName": "Chassi Craft Skill 3",
      "CraftAsDisplayName": false,
      "Shortname": "vehicle.chassis.4mod",
      "ItemId": -44066790,
      "MakeBlueprint": false,
      "AllowSellOfUsedItems": false,
      "Condition": 0.0,
      "EnableBuy": true,
      "EnableSell": false,
      "Image": "",
      "SellPrice": 1.0,
      "BuyPrice": 5000.0,
      "BuyCooldown": 0,
      "SellCooldown": 0,
      "BuyQuantity": [],
      "SellQuantity": [],
      "BuyLimit": 1,
      "BuyLimitResetCoolDown": 0,
      "SwapLimitToQuantityBuyLimit": false,
      "SellLimit": 0,
      "SellLimitResetCoolDown": 0,
      "SwapLimitToQuantitySoldLimit": false,
      "KitName": "",
      "Command": [
        "o.grant user $player.id craftchassis.4"
      ],
      "RunCommandAndCustomShopItem": false,
      "GeneTypes": [],
      "SkinId": 0
    },
    "Recycler": {
      "DisplayName": "Recycler",
      "CraftAsDisplayName": false,
      "Shortname": "recycler",
      "ItemId": 0,
      "MakeBlueprint": false,
      "AllowSellOfUsedItems": false,
      "Condition": 0.0,
      "EnableBuy": true,
      "EnableSell": false,
      "Image": "https://i.imgur.com/ZT4lnij.png",
      "SellPrice": 1.0,
      "BuyPrice": 5000.0,
      "BuyCooldown": 0,
      "SellCooldown": 0,
      "BuyQuantity": [],
      "SellQuantity": [],
      "BuyLimit": 0,
      "BuyLimitResetCoolDown": 0,
      "SwapLimitToQuantityBuyLimit": false,
      "SellLimit": 0,
      "SellLimitResetCoolDown": 0,
      "SwapLimitToQuantitySoldLimit": false,
      "KitName": "",
      "Command": [
        "recycler.give $player.id"
      ],
      "RunCommandAndCustomShopItem": false,
      "GeneTypes": [],
      "SkinId": 0
    },
 
 

2.前提プラグイン

設定を有効にするには、事前に下記のプラグインの導入設定が必要となります。

商品名プラグイン名
Heli AttackHeli Control
Mini BackPackBackpacks
Medium BackPackBackpacks
Mega BackPackBackpacks
Chassi Craft Skill 1Craft Car Chassis
Chassi Craft Skill 2Craft Car Chassis
Chassi Craft Skill 3Craft Car Chassis
RecyclerExtended Recycler
 
 

コメント


ページ閲覧回数( 合計:?回 今日:?回 昨日:?回 )