Jump to content

tell me

Pending 1.0.0

NEXT
NEXT

Posted

"I registered the backpack on the blacklist.

The default backpack cannot be placed inside a box,
but an enchanted backpack can be placed inside a box.
How can I blacklist it?"

NEXT

Posted


        {
          "shortname": "largebackpack",
          "skin": 0,
          "displayName": null,
          "text": null
        },
        {
          "shortname": "largebackpack",
          "skin": 0,
          "displayName": "Enhanced Large Backpack",
          "text": null
        },
        {
          "shortname": "largebackpack",
          "skin": 0,
          "displayName": "An enhanced item",
          "text": null
        },
        {
          "shortname": "largebackpack",
          "skin": 0,
          "displayName": null,
          "text": "Enhanced Large Backpack"
        },
        {
          "shortname": "largebackpack",
          "skin": 0,
          "displayName": null,
          "text": "An enhanced item"
        },



 

These settings did not successfully blacklist the item.

Since enchanted backpacks can still be stored inside the global storage box, placing items inside those backpacks renders the blacklist functionality meaningless.

NEXT

Posted

Even if the backpack is enchanted,
I would like to prohibit storing it in the box if it contains any items.
If it is empty, I think it should be allowed to be stored.

imthenewguy

Posted

All string fields are case sensitive. Even if the item is showing as upper case in game, it may not be upper case. Assess what the true case nature of the displayName is and update it appropriately.

Alternatively, make it based on the skin id if applicable.

 

I am updating this in the next release though.

The new logic will work like so:

  • If the blacklist skin is > 0, it will assess to see if the skin is a match.
  • If the shortname of the blacklist is not null or empty, it will check to see if the item shortname is a match.
  • If the displayName of the blacklist is not null or empty, it will check to see if the item displayName is a match. It also has the option for partial name checks, so you can use shorter names to capture more items, such as "bag" would match with "bag of holding" and "enchanted bag".
  • If the text field of the blacklist is non-null or empty, it will function the same way as the displayName, including a partial search option for text.

An example of what this looks like.

 

This prevents ANY bag from being added.

        {
          "shortname": "largebackpack",
          "skin": 0,
          "displayName": null,
          "partialNameAccepted": false,
          "text": null,
          "partialTextAccepted": false
        },

 

This would prevent only the bag with the matching names from being added (case sensitive).

        {
          "shortname": "largebackpack",
          "skin": 0,
          "displayName": "enchanted",
          "partialNameAccepted": false,
          "text": null,
          "partialTextAccepted": false
        },

 

NEXT

Posted

"Only allow enchanted backpacks into the BOX when they are empty."

"If the backpack contains items, the blacklist becomes meaningless."

imthenewguy

Posted

5 hours ago, NEXT said:

"Only allow enchanted backpacks into the BOX when they are empty."

"If the backpack contains items, the blacklist becomes meaningless."

Good idea. I will add a config option to the next release.

1.8m

Downloads

Total number of downloads.

8.2k

Customers

Total customers served.

123.6k

Files Sold

Total number of files sold.

2.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.