New Website Sale - 15% OFF everything

shared.lua

XP Calculation Function

Lua
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

Lua
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

Lua
Shared.JobRequired = false

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


Skill Tree Integration

Lua
Shared.SkillTreeEnabled = false
  • 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

Lua
Shared.QuestsEnabled = true
Shared.Quests = {
   {
        uid = "pick_up_trash",
        description = "Pick up trash",
        value = 15,
        reward = {
            xp = 1000,
            money = 1000,
        },
        icon = "",
        rewardMultiplerPerLevel = 0.1,
        questMultiplerPerLevel = 0.8,
    },
    -- Additional quests...
}
  • 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

Lua
Shared.Lang = {
    ['Your'] = "Your",
    ['Mission'] = "Mission",
    ['Minigame'] = "Minigame",
    ['Time'] = "Time",
    -- Additional language entries...
}
  • 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

Lua
Shared.SoundVolume = 0.25

Debug

If you want to see debug messages in the console, set it to true

Lua
Shared.Debug = false