Page cover

πŸŽ’Diving Quests

  • If enabled players can work towards various quests that give rewards

  • These quests are fully configurable and are based on the amount of crates searched and special salvaged crates opened

  • There is a command named divingquests that players can execute to view active quests they can claim or work towards detailing the rewards given and their current status


Config.Quests = {
    Enabled = true, -- set to true to enabled quests (make sure to import sql file if enabled)
    Quests = {
        ['Shipwreck Crates'] = { -- the key is the category name for menu
            [1] = {--the key is the quest number and must be in sequence
                cratesSearched = 10, -- amount of crates that must be searched
                label = 'Search 10 shipwreck crates', -- label for menu
                rewardType = 'cash', -- cash or item reward type
                cash = 100, -- if rewardType type is cash how much should the player get
                items = { }, -- if rewardType is items then define item rewards here and amounts given
            },
            [2] = {--the key is the quest number and must be in sequence
                cratesSearched = 100, -- amount of crates that must be searched
                label = 'Search 100 shipwreck crates', -- label for menu
                rewardType = 'item', -- cash or item reward type
                cash = 0, -- if rewardType type is cash how much should the player get
                items = { -- if rewardType is items then define item rewards here and amounts given
                    {name = 'goldchain', amount = 3, },
                    {name = 'diamond', amount = 3, },
                },
            },
            [3] = {--the key is the quest number and must be in sequence
                cratesSearched = 500, -- amount of crates that must be searched
                label = 'Search 500 shipwreck crates', -- label for menu
                rewardType = 'both', -- cash or item or both reward type
                cash = 500, -- if rewardType type is cash how much should the player get
                items = { -- if rewardType is items then define item rewards here and amounts given
                    {name = 'diamond', amount = 3, },
                },
            },
            --add more quests as required following the index number
        },
        ['Salvaged Crates'] = { -- the key is the category name for menu
            [1] = {--the key is the quest number and must be in sequence
                salvagedCratesOpened = 10, -- amount of salvaged crates that must be opened
                label = 'Open 10 salvaged crates', -- label for menu
                rewardType = 'cash', -- cash or item reward type
                cash = 100, -- if rewardType type is cash how much should the player get
                items = { }, -- if rewardType is items then define item rewards here and amounts given
            },
            [2] = {--the key is the quest number and must be in sequence
                salvagedCratesOpened = 100, -- amount of salvaged crates that must be opened
                label = 'Open 100 salvaged crates', -- label for menu
                rewardType = 'item', -- cash or item reward type
                cash = 0, -- if rewardType type is cash how much should the player get
                items = { -- if rewardType is items then define item rewards here and amounts given
                    {name = 'goldchain', amount = 3, },
                    {name = 'diamond', amount = 3, },
                },
            },
            [3] = {--the key is the quest number and must be in sequence
                salvagedCratesOpened = 500, -- amount of salvaged crates that must be opened
                label = 'Open 500 salvaged crates', -- label for menu
                rewardType = 'both', -- cash or item or both reward type
                cash = 500, -- if rewardType type is cash how much should the player get
                items = { -- if rewardType is items then define item rewards here and amounts given
                    {name = 'diamond', amount = 3, },
                },
            },
            --add more quests as required following the index number
        },
    },
}

Last updated