Jump to content

Issues with SkillTreeItemsPro

Pending 1.0.10

Caroleenje
Caroleenje

Posted

Hi,

For some reason, the STIP buffs and XP injections stopped working correctly a few weeks ago - only config change on my part was reducing the duration of buffs.

If you list them for sale in exchange for whatever item you want, they work fine with no issues, and you receive the items normally. But if you set the exact same item as the currency/payment, I can't purchase anything and get the pop-up "You cannot afford this purchase," even though I have the required items in my inventory.

The settings look correct on my part too, since I haven't changed those at all:

CVS:
    {
      "currencyType": "Item",
      "itemID": -1622660759,
      "skinID": 3329896239,
      "displayName": "Common Quantum Shard [XP: 7000]",
      "defaultDisplayName": null,
      "text": "common quantum shard",
      "armorSlots": 0,
      "conditionPercentage": 0.0,
      "hasCondition": false,
      "maxStack": 1
    },
______________________________


STIP:
      "common quantum shard": {
        "shortname": "xmas.present.large",
        "skinID": 3329896239,
        "effects": [
          {
            "min": 7000.0,
            "max": 7000.0,
            "type": "XPInjection",
            "preventXpModifiers": true
          }
        ]
      },

obrazek.png

obrazek.png

imthenewguy

Posted

Is the displayname capitalized in the config, or is it lower case?

Caroleenje

Posted

"displayName": "Common Quantum Shard [XP: 7000]",

I tried setting everything to lowercase and uppercase instead, but that doesn't make any difference, and it still tells me I cannot afford this purchase. Weirdly enough, it worked for almost a year and only stopped working recently.

Equally, I have the hardy planters set up with the first letter of each word in uppercase, and those have no issues at all

imthenewguy

Posted (edited)

Let me load it up on mine and see if I can replicate the issue.

 

Edited by imthenewguy
imthenewguy

Posted (edited)

7 hours ago, Caroleenje said:

"displayName": "Common Quantum Shard [XP: 7000]",

I tried setting everything to lowercase and uppercase instead, but that doesn't make any difference, and it still tells me I cannot afford this purchase. Weirdly enough, it worked for almost a year and only stopped working recently.

Equally, I have the hardy planters set up with the first letter of each word in uppercase, and those have no issues at all

Do this  (ideally with a fresh data file if possible):

  • Create a new vending machine profile.
  • Create a new listing > Select the STIP item that you have added to the default currencies field in the config.
  • Add it for sale for 1 scrap
  • Create a new listing > Select scrap.
  • Add it for sale for 1 of the STIP item that you added to the default currencies field in the config.
  • Spawn the same STIP item using the stip.give command and add it to the inventory of the vending machine.
  • Create a new listing > Select the STIP item itself (not the currency) to list for sale.
  • Add it for sale for 2 scrap.

Drop the data file and config files for CustomItemVending in here.

 

I did some testing, and it seems to work on my server. There was an issue when I initially added the default item to the config, where I had accidentally had xp as lower case rather than upper.

Edited by imthenewguy

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
3.1m
Total downloads
Customers
12.1k
Customers served
Files Sold
171.8k
Total sales
Payments
3.7m
Processed total
×
×
  • 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.