NPC Gifts

FREE

Sold by: Mabel

The NPC Gifts plugin provides a system where players can receive random gifts upon killing NPCs. The gifts are spawned as containers, and there are customizable settings for cooldowns, spawn chances, and permissions.

Categories: , ,
Download Now

Description

Works With
Simple Loot Table

About NPC Gifts

The NPC Gifts plugin provides a system where players can receive random gifts upon killing NPCs. The gifts are spawned as containers, and there are customizable settings for cooldowns, spawn chances, and permissions.

Features

Randomly spawns gifts when players kill NPCs.
Customizable cooldowns to prevent gift spamming.
Different container types with individual spawn chances.
Permission-based access to specific container types.
Configurable messages for chat and game tips.
Supports creating custom loot profiles per container/permission

Configuration Options

Cooldown Settings:
Cooldown Duration Minutes: The duration before a player can receive another gift after killing an NPC.
Message Settings:
Enable Chat Message: Whether to send a chat message to the player when they receive a gift.
Enable Game Tip Message: Whether to show a game tip message to the player when they receive a gift.
Container Settings:
Enabled: Whether this container type is enabled.
Container Prefab: The prefab path for the container to spawn.
Spawn Chance: The chance (between 0 and 1) that this container will spawn when an NPC is killed.
Permission: The permission required for a player to receive this container type.
Loot Table Name: The name of the loot table to use for this container. If left empty, the default loot table is used.
Min Items: The minimum number of items to spawn in the container.
Max Items: The maximum number of items to spawn in the container.

Adding/Editing Containers

Enable/Disable Containers: Set the Enabled field to true or false to control whether the container is used.
Adjust Spawn Chances: Modify the Spawn Chance to change how often a container is spawned. A value of 0.5 means there’s a 50% chance.
Set Permissions: Specify a Permission for each container. Ensure these permissions are registered and granted to the appropriate players or groups.
Set Loot Table Name: This filed is only required if using the Simple Loot Table Plugin, left blank will use the servers default loot tables.
Set Min/Max Items: These Fields are only required for users of the Simple Loot Table Plugin, they will not adjust the min/max values of your server loot table.

Permissions

Register Permissions: The plugin will automatically register permissions based on the configuration.
Grant Permissions: Use the following commands to grant permissions to players or groups.

oxide.grant user Premission
oxide.grant group Premission

Example:

oxide.grant user Mabel npcgifts.example1
oxide.grant group default npcgifts.example1

Console Commands

npcgifts_wipe

Default Configuration

{
"Cooldown Settings": {
"Cooldown Duration Minutes": 60
},
"Message Settings": {
"Enable Chat Message": false,
"Enable Game Tip Message": true
},
"Container Settings": [
{
"Enabled": true,
"Container Prefab": "assets/prefabs/misc/xmas/sleigh/presentdrop.prefab",
"Spawn Chance": 0.5,
"Permission": "npcgifts.example1",
"Loot Table Name": null,
"Min Items": 0,
"Max Items": 0
},
{
"Enabled": true,
"Container Prefab": "assets/prefabs/missions/portal/proceduraldungeon/xmastunnels/loot/xmastunnellootbox.prefab",
"Spawn Chance": 0.5,
"Permission": "npcgifts.example2",
"Loot Table Name": null,
"Min Items": 0,
"Max Items": 0
},
{
"Enabled": true,
"Container Prefab": "assets/prefabs/misc/xmas/giftbox/giftbox_loot.prefab",
"Spawn Chance": 0.5,
"Permission": "npcgifts.example3",
"Loot Table Name": null,
"Min Items": 0,
"Max Items": 0
}
],
"Version": {
"Major": 1,
"Minor": 0,
"Patch": 4
}
}

Default Language File:

{
"ChatMessage": " :dance: Congratulations {0} You Received A Gift From {1} :dance:",
"GameTipMessage": "Congratulations {0} You Received A Gift From {1}"
}

Reviews

There are no reviews yet.


Only logged in customers who have purchased this product may leave a review.

Version 1.0.5 | Updated July 14, 2024
  • Fixed Issue with permissions
  • Added console command to wipe cooldown data

Discussions

There are no discussions yet.

Leave a reply

Your email address will not be published. Required fields are marked *

Plugin FAQ – How do I use this .zip/.7z file I just purchased on my server?

• First, you want to unzip the file. You can do so by just double-clicking it to open, then drag the contents to the desired location (you may need to install an external unzipping software if you don’t already have one such as 7zip or winrar)
• Next you will find either a structure of folders or just the .cs file itself (it’s the actual plugin file itself).
• After that just install the .cs (plugin file) into your …/oxide/plugins/ folder where you will install plugins you ever need to.

Additionally, here’s a great video that easily covers adding a plugin to your server if you need! https://youtu.be/yWC_p97FhQA

• Installation is not included with any products on the site, however, if needed we may assist if you reach out to our support.

Currently all products on Lone.Design will be contained within a zipped file which is the .7z or .zip that you see. I believe windows 10 and up can unzip on its own without 3rd party tools, but in that case, if you’re unfamiliar with zipped files here are 2 programs I recommend to easily unzip zipped files.

Video On How to Zip and Unzip: https://youtu.be/Ep-L3PjBPCk (TechInsider Youtube Channel)

Zipping/Unzipping Tools
Winrar https://www.rarlab.com (I used to use for years, but works great!)
7zip https://www.7-zip.org/a/7z2107-x64.exe (the one I use currently)

Product Enquiry

Please Login to make enquiry about this product