Jump to content

Rewards Based On Level

Pending 1.5.1

Stark
Stark

Posted

Hello, 

Should be a simple question/fix. I'm having trouble figuring out the coding for this (below): I'm just trying to run tests however I'm receiving this error message which I'm attaching along with my config file. Help me Obi Wan, you're my only hope. 

 },
    "Multiplier increase after each respec [0.2 = a 20% increase in the cost to respec each time. 0 = no increase] [resets on wipe or data reset]": 0.1,
    "Maximum value that the respec multiplier can get to [0 = no limit]": 0.0,
    "List of rewards the player receives based on level": {
      "50": {
        "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.": {
          "say <color=#ffae00>{name}</color> reached level <color=#4cff03>50</color>!": "Level 50 Reach! Time to Prestige!"
        },
        "3": {
        "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.": {
          "say <color=#ffae00>{name}</color> reached level <color=#4cff03>50</color>!": "You have reached Level 3!",
          "o.grant user {id} skilltree.Woodcutting": "You Now Have Access to Wood Cutting Skill"
        },
        "List of commands that are fired off when the player data is reset": [
          ""
        ]
      }
    },

Screenshot 2024-06-23 at 1.50.11 PM.png

SkillTree(test) (1).json

imthenewguy

Posted

You have completely messed up the json formatting.

I would regenerate the config and try it again.

This is the formatting that EACH level reward needs to follow (each level needs the list of commands and chat messages, and the list of reset commands, even if the list is empty):

    "List of rewards the player receives based on level": {
      "100": {
        "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.": {
          "say <color=#ffae00>{name}</color> reached level <color=#4cff03>100</color>!": "You have reached a milestone level!"
        },
        "List of commands that are fired off when the player data is reset": [
          "say Test data reset."
        ]
      },
      "90": {
        "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.": {
          "say <color=#ffae00>{name}</color> reached level <color=#4cff03>90</color>!": "You have reached a milestone level!"
        },
        "List of commands that are fired off when the player data is reset": [
        ]
      }
    },

 

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.2k

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.