Jump to content

NPC permissions question

Pending 1.2.26

vykpoli
  • in Shop
vykpoli

Posted

I would like my players to have to go to an npc to sell an item. How can I make them see that category when interacting with the npc but not within the command menu? I have tried several ways and I can't get it

By deactivating the category it is not seen in the npc
Giving them permission, they see it in the command menu and in the npc
I saw that in HumanNPC Data there was a permissions option but I don't think it's the solution either. Because it doesn't do anything if I set the shop permission, I think it's permission to use the npc itself

MeventSupport

Posted

Hi! There is a command: 

/shop.setnpc [categories: cat1 cat2 ...] - add NPC in config

Try to use this and in the config, if anything, configure Permissions

vykpoli

Posted

I'm still having the same problem
This is my config

{
      "Enabled": true,
      "Title": "HALLOWEEN",
      "Permission": "shop.halloween",
      "Sort Type": "None",
      "Items": [
        {
          "Type": "Item",
          "ID": -31426709,
          "Image": "",
          "Title": "",
          "Description": "",
          "Command (%steamid%)": "",
          "Kit": "",
          "Plugin": {
            "Hook": "",
            "Plugin Name": "",
            "Amount": 1
          },
          "DisplayName (empty - default)": "Calabaza",
          "ShortName": "pumpkin",
          "Skin": 0,
          "Is Blueprint": false,
          "Amount": 1,
          "Enable item buying?": false,
          "Price": 100.0,
          "Enable item selling?": true,
          "Sell Price": 0.5,
          "Buy Cooldown (0 - disable)": 0.0,
          "Buy Cooldowns (0 - no limit)": {
            "shop.default": 0.0,
            "shop.vip": 0.0
          },
          "Sell Cooldown (0 - disable)": 0.0,
          "Sell Cooldowns (0 - no limit)": {
            "shop.default": 0.0,
            "shop.vip": 0.0
          },
          "Discount (%)": {
            "shop.default": 0,
            "shop.vip": 10
          },
          "Sell Limits (0 - no limit)": {
            "shop.default": 0,
            "shop.vip": 0
          },
          "Buy Limits (0 - no limit)": {
            "shop.default": 0,
            "shop.vip": 0
          },
          "Daily Buy Limits (0 - no limit)": {
            "shop.default": 0,
            "shop.vip": 0
          },
          "Daily Sell Limits (0 - no limit)": {
            "shop.default": 0,
            "shop.vip": 0
          },
          "Max Buy Amount (0 - disable)": 0,
          "Max Sell Amount (0 - disable)": 0,
          "Force Buy": false,
          "Prohibit splitting item into stacks?": false,
          "Localization": null,
          "Content": {
            "Enabled": false,
            "Contents": [
              {
                "ShortName": "",
                "Condition": 100.0,
                "Amount": 1,
                "Position": -1
              }
            ]
          },
          "Weapon": {
            "Enabled": false,
            "Ammo Type": "",
            "Ammo Amount": 1
          }
        }
      ],
      "Localization": {
        "Enabled": false,
        "Text (language - text)": {
          "en": "",
          "fr": ""
        }
      }
    }


"NPC Shops (NPC ID - shop categories)": {
    "4853572608": {
      "Permission": "shop.halloweennpc",
      "Categories (Titles) [* - all]": [
        "HALLOWEEN"
      ]
    }

I need both permissions and the category enabled for it to show on the NPC and this way it still appears in the command menu

MeventSupport

Posted

yes, it looks like an error in the plugin itself. We will release an update for this soon! 

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.3k

Files Sold

Total number of files sold.

2m

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.