shared.lua
Documentation for shared.lua Configuration
XP Calculation Function
Description: Determines the XP required for a given level.
Formula:
100 * (level ^ 1.5)
, rounded down.
Economy Configuration
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.
Extra Rewards Configuration
The Extra Rewards feature allows players to receive additional items during mining and smelting. To enable or disable this feature, modify the Shared.ExtraRewardsEnabled
value.
Description: Enables or disables the extra rewards feature.
Values: Set to
true
to enable orfalse
to disable.
Skill Tree Integration
Description: Enables or disables the skill tree feature.
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.
Ore Configuration
props: Defines the models used for the ore.
item: Item name corresponding to the collected ore.
label: Display name for the ore.
maxInQuest: Maximum quantity that can be collected during a quest.
amountOnMap: Number of ore entities that spawn on the map.
chanceToDrop: Probability (in percentage) of successfully collecting the ore.
coords: Positions where ores can be found.
Extra Rewards:
itemName: The item that the player receives during mining.
mineAmount: The number of items received during mining.
smeltingRewardItem: The item that the player receives during smelting.
smeltingAmount: The number of items received during smelting.
smeltingChance: The percentage chance to receive the smelted item, removing the item obtained from mining.
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