Jump to content

Got issue for adding it in a shop.

Closed 1.2.1

{
  "Version": {
    "Configuration": {
      "Major": 1,
      "Minor": 0,
      "Patch": 1
    }
  },
  "MaxMineralsPerHit": 1,
  "MaxStackable": 50,
  "TimeToSmelting": 30,
  "ItemShortName": "sticks",        <-------------- Need to remove it from default to all items
  "Items": [
    {
      "ID": "large.sulfur",
      "ItemShortName": "sticks{1}", <-------------- Need to add item short name to every one individually
      "SkinID": 2893225931,
      "Name": "Sulfur Crystal",
      "PermittedTool": [
        "stone.pickaxe",
        "pickaxe",
        "hammer.salvaged",
        "icepick.salvaged",
        "jackhammer"
      ],
      "ExtractionInfo": [
        {
          "PrefabShortName": "sulfur-ore",
          "DropChance": 0.0,
          "Amount": 1
        },
        {
          "PrefabShortName": "metal-ore",
          "DropChance": 0.0,
          "Amount": 1
        },
        {
          "PrefabShortName": "stone-ore",
          "DropChance": 0.0,
          "Amount": 1
        }
      ],
      "ItemAfterSmelting": null,
      "PossibleItemsAfterRecycler": null
    },
    {
      "ID": "large.metal",
      "ItemShortName": "sticks{2}", <-------------- Need to add item short name to every one individually
      "SkinID": 2893226249,
      "Name": "Metal Crystal",
      "PermittedTool": [
        "stone.pickaxe",
        "pickaxe",
        "hammer.salvaged",
        "icepick.salvaged",
        "jackhammer"
      ],
      "ExtractionInfo": [
        {
          "PrefabShortName": "sulfur-ore",
          "DropChance": 0.0,
          "Amount": 1
        },
        {
          "PrefabShortName": "metal-ore",
          "DropChance": 0.0,
          "Amount": 1
        },
        {
          "PrefabShortName": "stone-ore",
          "DropChance": 0.0,
          "Amount": 1
        }
      ],
      "ItemAfterSmelting": null,
      "PossibleItemsAfterRecycler": null
    },

 

 

im using 

If you need create multiple variations of same item but with different image/displayname/skinID, you can do that by
using some unique tag/number between curly brackets after item shortname. Example: "Sticks{1}". 
Unique item shortname then can be used in category item list. Does not matter what letters/numbers you put between brackets.
This is handy for setting up different item prices for NPC vendors or selling some custom items.

Edited by Robis
fixed txt

Share this comment


Link to comment

i need if plugin has same short name for 14 other items i tried already everything. if i add in shop "ID": "large.metal", your plugin says this is invalid short name

  "large.sulfur": {                                   <------------- not working
    "DisplayName": "Sulfur Crystal",
    "Skin": 2893225931,
    "Image": "https://i.imgur.com/Xg8gLLb.png",
    "DefaultAmount": 1,
    "BlockAmountChange": true,
    "BuyPrice": 500,
    "SellPrice": 500,
    "Currency": "sulfur.ore"

  "sticks": {                                                        <------------- you mean it must work like this ?   i think i tried and i got just a sticks even not skinned but not sure anymore, probably i have to go try again to do it
    "DisplayName": "Sulfur Crystal",
    "Skin": 2893225931,
    "Image": "https://i.imgur.com/Xg8gLLb.png",
    "DefaultAmount": 1,
    "BlockAmountChange": true,
    "BuyPrice": 500,
    "SellPrice": 500,
    "Currency": "sulfur.ore"

"sticks": {
    "DisplayName": "Metal Crystal",
    "Skin": 2893226249,
    "Image": "https://i.imgur.com/NdT1u68.png",
    "DefaultAmount": 1,
    "BlockAmountChange": true,
    "BuyPrice": 1000,
    "SellPrice": 1000,
    "Currency": "metal.ore"
  },

 

 

also i think im using your craft menu plugin for work bench... there items has tags for same short names, and this way i was able to add tagged items to a shop (thats why i realise this way must work)

Edited by Robis
more info

Share this comment


Link to comment

ok i facing problem in shop categories

  "Resources": {
    "Image": "https://rustplugins.net/products/shop/diamond-stone.png",
    "Permission": null,
    "Sale": 0.0,
    "Items": [
      "scrap",
      "sulfur.ore",
      "sulfur",
      "stones",
      "bone.fragments",
      "diesel_barrel"

 

i cant add multiple same "sticks" as plugin ExtractionRareMinerals using same short name for 14 other ids... so thats why would be great if all 14 items use sticks{1}, {2}....   shortnames 

SO PROBABLY I WAS RIGHT. NOW im tried all and this is the only place where im stuck

Share this comment


Link to comment

This method should work. Are you sure it doesn't work?

"sticks": {
    "DisplayName": "Sulfur Crystal",
    "Skin": 2893225931,
    "Image": "https://i.imgur.com/Xg8gLLb.png",
    "DefaultAmount": 1,
    "BlockAmountChange": true,
    "BuyPrice": 500,
    "SellPrice": 500,
    "Currency": "sulfur.ore"

"sticks": {
    "DisplayName": "Metal Crystal",
    "Skin": 2893226249,
    "Image": "https://i.imgur.com/NdT1u68.png",
    "DefaultAmount": 1,
    "BlockAmountChange": true,
    "BuyPrice": 1000,
    "SellPrice": 1000,
    "Currency": "metal.ore"
  },

 

Share this comment


Link to comment

It is unlikely that there are so many inactive items that could be used for all 14 gems. Try to configure it through skin anyway

Share this comment


Link to comment

in future those items can be used by rust developers. like dog tame item, will be used when they add pet system... im looking for solution that will work at all times.

Edited by Robis

Share this comment


Link to comment

unfortunately, there is no solution here, plugin developers have limitations, we cannot create our own item, we can only take an existing one as a basis and give it a skin on which this whole system works.

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.5k

Customers

Total customers served.

78.5k

Files Sold

Total number of files sold.

1.5m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.