[VORP] KenNy-Treasure

:skull_and_crossbones: KenNy-Treasure
Advanced Treasure Hunting System for VORP Framework

:clapper_board: Preview

:sparkles: Features
:world_map: Treasure Map System - Use map items to start treasure hunting events
:crossed_swords: Wave-Based Bandits - Enemies spawn in timed waves with configurable intervals
:wolf: Wolf System - Wolves spawn alongside bandits for extra challenge
:package: Randomized Chest Spawn - Chest position randomized within configurable radius
:compass: GPS Navigation - Auto GPS route guides players to treasure location
:dart: Fixed Map Export - Create maps with preset locations, rewards & difficulty via exports
:bust_in_silhouette: NPC Map Upgrader - Players upgrade maps at NPC vendor with dialog system
:globe_with_meridians: Multiplayer Ready - Global blip, session sync, disconnect handling
:gear: Highly Configurable - Customize everything from config.lua

:crossed_swords: Activity Types
Type Description Required Item
Dig (Shovel) Shovel animation + progress bar Shovel
Lockpick (Minigame) Lockpick minigame challenge Lockpick

:video_game: How It Works
Use treasure map item β†’ Event starts, blip appears on map
Navigate with GPS β†’ Follow route to treasure zone
Enter the zone β†’ Bandit waves + wolves start spawning
Find the chest β†’ Chest spawns at random position within zone
Dig or Lockpick β†’ Complete activity while fighting enemies
Claim rewards β†’ Money + items with configurable drop chances

:wolf: Wave System Breakdown
Wave What Happens
Wave 1 Bandits spawn immediately when player enters zone
Wave 2+ Additional bandits + wolves spawn at configurable intervals (default: 90s)
After Success Enemies remain for configurable time (default: 3 min) then despawn

:dart: Fixed Map Export (Developer API)
Create custom treasure maps from any script - perfect for quests, events, NPC shops:

-- Simple: Random location from config pool
exports['KenNy-Treasure']:CreateFixedMap(source)

-- Advanced: Full customization
exports['KenNy-Treasure']:CreateFixedMap(source, {
    coords = vector3(100.0, 200.0, 50.0),
    type = "dig",
    name = "Hidden Pirate Cave",
    desc = "Legends say gold awaits...",
    rewards = {
        money = { min = 500, max = 1000 },
        items = {
            { name = "gold_bar", count = {1, 3}, chance = 100 },
            { name = "rare_gem", count = {1, 1}, chance = 15 }
        }
    },
    guardians = {
        amount = { min = 5, max = 8 },
        waves = 3
    },
    wolves = {
        enabled = true,
        amount = { min = 2, max = 4 },
        spawnChance = 80,
        health = 200
    },
    chestSpawnRadius = { min = 10, max = 50 }
})

:gear: Easy Configuration

-- Bandit settings
Config.Guardians = {
    Models = { `u_m_m_bht_banditoshack`, `g_m_m_unibanditos_01` },
    Weapons = { `WEAPON_REPEATER_CARBINE`, `WEAPON_REVOLVER_CATTLEMAN` },
    Amount = { min = 3, max = 5 },
    Health = 600,
    Accuracy = 60,
    WaveInterval = 90,
    DefaultWaves = 2
}

-- Wolf settings
Config.Wolves = {
    Enabled = true,
    Models = { `a_c_wolf`, `a_c_wolf_medium` },
    Amount = { min = 1, max = 2 },
    Health = 300,
    SpawnChance = 100,
}

-- Reward tiers
Config.Rewards = {
    name = "Normal Rewards",
    Money = { min = 100, max = 500 },
    Items = {
        { name = "gold_nugget", count = { 1, 3 }, chance = 50 },
        { name = "watch", count = { 1, 1 }, chance = 30 },
        { name = "gun_bp_springfield", count = { 1, 1 }, chance = 2 },
    }
}

:bust_in_silhouette: NPC Map Upgrader System

-- NPC vendor with dialog system
Config.Npc = {
    npc_01 = {
        coords = vector4(83.4, 29.01, 100.54, 325.09),
        model = `u_m_o_mapwiseoldman_01`,
        name = "Map Progresser",
        mapprogress = {
            { Config.Rewards,  cost = 500 },   -- Normal tier
            { Config.Rewards2, cost = 1000 },  -- Rare tier
        },
    },
}

:inbox_tray: What’s Included
:white_check_mark: Full source code (open, not encrypted)
:white_check_mark: SQL database file for items
:white_check_mark: English & Thai documentation
:white_check_mark: 2 pre-configured treasure locations
:white_check_mark: 2 reward tiers (Normal & Rare)
:white_check_mark: NPC Map Upgrader with dialog
:white_check_mark: Multiple bandit & wolf models
:white_check_mark: Lockpick minigame support

:wrench: Dependencies
vorp_core 3.2+
vorp_inventory 4.0+
vorp_progressbar
ox_lib
KenNy-notify (included)
KenNy-Dialog (included for NPC)
lockpick (optional)

:money_bag: Purchase
Price: $35.00 USD

:shopping_cart: BUY NOW ON TEBEX

Required Information Table
Code is accessible Yes (full source code)
Subscription-based No
Lines (approximately) ~2,300
Requirements vorp_core, vorp_inventory, vorp_progressbar, ox_lib
Support Yes

1 Like