Jump to content

Question about integrating Legendary Item drops with BetterNpc per monument

Pending 1.0.10

GameKit47

Posted

Dear imthenewguy,

First of all, thank you for the great ItemPerksLegendaryItems plugin – it adds a fantastic layer of depth to the game, and my players absolutely love hunting for legendary gear.

I’m currently trying to set up legendary item drops from NPCs that are spawned by the BetterNpc plugin, and I want to configure different loot tables for each monument individually.

Here’s my setup:

I use BetterNpc to spawn custom NPCs at monuments (without using NpcSpawn presets – I define the NPC configuration directly inside each monument’s JSON file).

Inside the NpcConfig of each monument, I have a LootTable section with ItemsTable where I define custom loot.

My goal is to have certain legendary items drop only from specific monuments (e.g., AK-47 legendary drops only from Launch Site NPCs, while a medical legendary drops only from Outpost NPCs, etc.).

I have a few questions:

How can I make legendary items drop from BetterNpc NPCs?
Do I simply add the legendary item’s Shortname and Skin to the Items array in the monument’s LootTable, or is there a special way to integrate with ItemPerksLegendaryItems (e.g., using a specific Shortname format or a hook)?

Can I control legendary drop chances per monument?
For example, can I set a 5% chance for a legendary AK at Launch Site, but only 1% at Airfield? Or is the drop rate controlled globally in the ItemPerksLegendaryItems config?

Does ItemPerksLegendaryItems support per‑source loot tables?
I saw that the plugin supports various loot sources like crate_normal_2, heli_crate, and even NPC prefabs like scientistnpc_heavy. Can I define different legendary drop lists for specific NPC types or specific monument locations? If so, how?

Are there any hooks or API methods that I can call from BetterNpc’s loot system to trigger a legendary roll for a specific NPC?

Is there an example configuration showing how to set up legendary drops from custom NPCs (not from default Rust NPCs or crates)?

I’ve already read the documentation and searched the support threads, but I couldn’t find a clear guide for this specific use case. I’d really appreciate any guidance or best practices you can share.

Thank you for your time and for creating such an awesome plugin!

 

imthenewguy

Posted

Legendary items supports NpcSpawn npcs. It will create a drop bag with the loot inside at the position the npc died.
It relies on the Loot source being set correctly, and allows you to filter based on the name of the npc profile. 

Example config.

    {
      "Loot source": "BetterNPC",
      "Prefab shortname, boss profile, event name [null if not required]": "name_of_your_npc_here",
      "A list of required skin IDs [null if not required]": [],
      "Identifiers to exclude from consideration [List - null if not required]": [],
      "Drop chance [%]": 10.0,
      "Should we consider loot chance modifiers that the player may have?": false,
      "Items that can drop from this source [profile name: drop weight]": {
        "Rocket Barrage": 25
      }
    },

 

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.6m
Total downloads
Customers
11.4k
Customers served
Files Sold
163.1k
Total sales
Payments
3.5m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.