Page cover

πŸ“ˆXP System

  • If enabled players can earn XP from various tasks

  • XP levels can determine the reward amounts

  • You can define the chance value for players to earn XP

  • You can define the minimum and maximum amounts of XP that can be rewarded

  • You can define the XP level and its respective amount required to reach


XP = { -- define xp settings if enabled
    Enabled = true, -- enable xp system (make sure to import sql file if enabled)
    XPChance = 50, --50% chance to earn xp
    XPGain = { -- amount of xp earnt from mining rocks
        Min = 3, -- min amount
        Max = 6, -- max amount
    },
    XPLevels = { -- set XP levels and their respective amounts
        [1] = 250,
        [1] = 50,
        [2] = 100,
        [3] = 300,
        [4] = 500,
        [5] = 750,
        [6] = 1000,
        [7] = 1500,
        [8] = 2000,
        [9] = 3000,
        [10] = 5000,
        --add more levels as required following the index number for the next level
    },
},

Last updated