Jump to content

XP Modifiers with Cooking

Pending 1.0.3

Caroleenje
Caroleenje

Posted

Hi,

I'm looking into the XPInjection items, and I'd like players to get the exact amount of XP displayed (so say 7k XP). I set the preventXpModifiers to true, which works with the modifiers coming directly from STIP or even the SkillTree night bonus, however, if you use a Cooking meal with SkillTreeXp buff, the buff will still count regardless. It's not something I want, as if you have one with a value of 112k XP and get 25% buff from the meal on the top, it gets crazy very quickly.

Is there any way around it?

Thanks in advance!

 

  • Curator
imthenewguy

Posted

You can change the cooking meal from SkillTreeXp to use Permissions, and run the givexp <target> <amount> <apply mods: true/false> command instead.

 

Caroleenje

Posted

8 hours ago, imthenewguy said:

You can change the cooking meal from SkillTreeXp to use Permissions, and run the givexp <target> <amount> <apply mods: true/false> command instead.

 

Sorry, I think I didn't explain what I meant clearly, and may have overcomplicated it. This is my cooking meal, giving you 25% extra XP buff for 10 minutes.

      "daves welsh rarebit": {
        "enabled": true,
        "shortname": "fish.cooked",
        "skin": 3329209371,
        "description": "Enjoy the perfect blend of melted cheddar poured over crispy bread with bacon, topped with spicy chili. Actually... surprisingly spicy!",
        "Spoil time [hours - if applicable]": 168.0,
        "duration": 600,
        "buffs": {
          "SkillTreeXp": 0.25
        },

And this is my injection item:

      "common quantum shard": {
        "displayName": "Common Quantum Shard [XP: 7000]",
        "shortname": "xmas.present.large",
        "skinID": 3329896239,
        "effects": [
          {
            "min": 7000.0,
            "max": 7000.0,
            "type": "XPInjection",
            "preventXpModifiers": true
          }
        ]
      },

I expect this item to give exactly 7k XP at all times. But if I consume the meal, the 25% buff still applies even with the preventXpModifiers set to true. This gives me 8750 XP instead of 7k.
Is there a way to make XPInjection ignore this buff as well?

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
2.4m
Total downloads
Customers
10.8k
Customers served
Files Sold
156k
Marketplace sales
Payments
3.3m
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.