shared.lua

Documentation for shared.lua Configuration

XP Calculation Function

Shared.CalculateNeedXP = function(level)
    return math.floor(100 * (level ^ 1.5))
end
  • Description: Determines the XP required for a given level.

  • Formula: 100 * (level ^ 1.5), rounded down.


Economy Configuration

Shared.Economy = {
    xp = 100,
    money = 250,
    mulitplerPerLevel = 0.01,
}
  • xp: XP earned per finished job.

  • money: Money earned per finished job.

  • mulitplerPerLevel: Additional reward percentage per player level.


Job Requirement Configuration

Description: Specifies if a specific job is required to perform mining tasks. Values: Set to the job name (e.g., "miner") to require it, or false to allow all players.


Skill Tree Integration

  • Description: Enables or disables the skill tree feature.

  • YOU NEED SKILL TREE SCRIPT, NORMAL OR EXCLUSIVE

  • Note: Must ensure the script is loaded after dh_skillTree.


Quest Configuration

  • uid: Unique identifier for the quest.

  • description: Describes the quest objective.

  • value: Number of items or actions required to complete the quest.

  • reward: XP and money granted upon completion.

  • rewardMultiplerPerLevel: Multiplier applied to rewards based on player level.

  • questMultiplerPerLevel: Adjusts the difficulty based on player level.


Language Configuration

  • Description: Customizes text used throughout the script's UI.

  • Usage: Adjust the right-side values to localize or customize messages.

  • Note: Keep ${value} format unchanged to ensure dynamic values work correctly.


Sound Volume

Adjust in game sound

Last updated