Jump to content

Prevent Level Reward Commands from Resetting Each Wipe

Closed 1.3.9 1.4.0

LandOfTheBlind
LandOfTheBlind

Posted

I'm using the "List of rewards the player receives based on level" section to grant larger sized backpacks every 5 levels and it's working great. The issue is that I'm letting the Skill Tree levels carry over between wipes and only intend to reset quarterly, however each wipe clears all the backpack permissions and it takes me around 30 minutes to go through and manually reset each player's backpack size to their level. I have the "erase all data on wipes" set to false but all the revoke commands still run and removes all the backpacks permissions. Am I missing a configuration setting or is it possible to add a setting to not run the "List of commands that are fired off when the player data is reset" commands except for when resetdata or stresetalldata is called and not just on map wipe? Thanks!

imthenewguy

Posted

"Erase ExtraPockets storage on wipe" set that to false if you dont want it wiped.

"Refund skill points on server wipe" Set that to false, so the nodes maintain.

"Erase all data on wipe - wipes everything" keep that false.

 

LandOfTheBlind

Posted

Yeah, I have those settings:
    "Erase all data on wipe - wipes everything": false,
    "Erase ExtraPockets storage on wipe": true,
    "Refund skill points on server wipe": false,

But the ones I'm talking about are the specific player rewards at certain levels. For example, at level 5, I have this:

"List of rewards the player receives based on level": {
      "5": {
        "List of commands and chat messages that the player receives when reaching the specified level [Left = command. Right = Private message to player]. {id} = steam ID. {name} == name.": {
          "oxide.grant user {id} backpacks.size.15": "You reached level 5! You earned 3 more slots of storage in your backpack!"
        },
        "List of commands that are fired off when the player data is reset": [
          "oxide.revoke user {id} backpacks.size.15"
        ]
      },

It works fine when the players reach the level, the command is executed and they receive the permission, however on the next month wipe, even if I do not wipe player data, the oxide.revoke commands all run and clear the backpack permissions. I'd like for those reset commands to be run only when I explicitly run the "resetdata" or "stresetalldata" not on map wipe. 

Thanks!

imthenewguy

Posted

Ahh yep I see. I will add a check to see if the data is being wiped before we reset.

LandOfTheBlind

Posted

Awesome! Thank you so much! This is a great plugin by the way. Been running it for a couple of months now and the players love it!

imthenewguy

Posted

Changed Status from Pending to Closed

Changed Fixed In to Next Version

  • Like 1
1.4m

Downloads

Total number of downloads.

6.8k

Customers

Total customers served.

101.4k

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.