Jump to content

IssueRewardsAtWipe: Where to set rewards?

Pending 2.3.1

ChardaZAR
ChardaZAR

Posted

As title says. I've got this set to true.

also set these as true in the PlayerRanksRewards.json

  "IssueAtWipe": true,
      "WaitUntilPlayerIsOnline": true,

But where do I config the rewards?

  • Administrator
Steenamaroo

Posted

Hi,
Those two settings to govern rewards are in the main PlayerRanks.json config file,
but you set up the rewards tehmselves in the PlayerRanksRewards.json file. It's a separate file.

Rewards must be viable console commands, comma separated, and you can use {id} as a place holder for player steam ID.

  • Like 1
ChardaZAR

Posted

Right. I think I see it. It would be in the "First", "Second" and "Third". right?

So like this:
 

{
  "RewardInfo": {
    "PVPKills": {
      "IssueAtWipe": true,
      "WaitUntilPlayerIsOnline": true,
      "First": "deposit {id} 10",
      "FirstMessage": "You received a reward for ranking #1 in {category}",
      "Second": "deposit {id} 10",
      "SecondMessage": "You received a reward for ranking #2 in {category}",
      "Third": "deposit {id} 5",
      "ThirdMessage": "You received a reward for ranking #3 in {category}"
    },


I use Economics on the server and want to reward the top players with some starting currency as a reward on each wipe

  • Administrator
Steenamaroo

Posted

Looks good, yeah. 👍

  • Love 1
ChardaZAR

Posted

Hey @Steenamaroo
I'm back 😁

Ok so last night when the server force wiped, I gave this a try
I had to manually trigger the rewards using the "playerranks.reward" command

The problem is, in my config, I've set delete player data when wipe to true
So when the new game starts, I can't give the reward to the players

Is there a way to save the data or create a snapshot of the data before wiping, so then I can issue rewards to the players on the next wipe?

Or am I making this overly complicated and there's a much easier way to do this? 😅

  • Administrator
Steenamaroo

Posted

If you have IssueRewardsAtWipe set to true then there should be no need to do it manually.

It's set up so that it should issue the rewards right before it wipes the data (if you have that set too), during the first boot of a new server.
It uses new map save to know it's the right time to do all this stuff so if PlayerRanks isn't installed for that first boot after wipe,
or it isn't loaded and it gets loaded late, it wont work.

1.6m

Downloads

Total number of downloads.

7.7k

Customers

Total customers served.

115.3k

Files Sold

Total number of files sold.

2.3m

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.