Dungeon Events

Платное Dungeon Events 3.6.5

  • The spawn of dungeon entities is now saved in data files and checked during plugin initialization to remove entities that may have remained on the server in cases where the server was restarted and the plugin didn't have time to remove all dungeon entities. This prevents "leftover" entities from previous dungeons.
  • Fixed NPC spawning to not use the navmesh for navigation, which was causing error spam in the server log.
  • Fixed a conflict with the RestoreUponDeath plugin to allow the active item to be kept on death. If the RestoreUponDeath plugin is running, DungeonEventos will not interfere and will let it handle the process.
  • Added a block to prevent players from picking up garage doors or any other item in the dungeon.
  • Added a configuration option to customize the Skin ID of garage doors by tier.
Adjusted so that the event UI is always behind the other UIs.
Fixed an issue where turrets were not attacking with the SimplePVE plugin.
  • Added two new dungeons; dungeons are now generated with a random layout among the three available.
  • It is no longer necessary to manually add the data files; the plugin automatically downloads them.
  • Added custom items for dungeon purchases.
  • The purchase menu now displays the name of the required item for purchase or the name of the Economic/ServerRewards plugin.
  • Adjusted the dungeon spawn distance to ensure they are farther apart.
  • Adjusted turrets to prevent interference when too many are placed close together.
  • The player's name who purchases the dungeon is now displayed in notifications.
  • Added a time-of-day setting for each difficulty; when a player enters the dungeon, the time changes accordingly.
1-
2-
  • Fixed entity spawns to respect the configured quantities while keeping the entities as spread out as possible throughout the dungeon.
  • Fixed NPC movement.
  • Improved the placement of points for creating portals, avoiding terrain layers.
  • Removed the reset of translations when the plugin is updated to a new version.
Added the ability to disable tiers via configuration by introducing an "Enabled" property in each DungeonTierConfig.

What's New in Version 2.2.0​


Dungeon Spawn/Despawn Hooks
Added new hooks to the plugin’s lifecycle. These events will now trigger OnDungeonSpawn and OnDungeonDespawn when a dungeon is created or removed, allowing other plugins and server owners to track the dungeon lifecycle more easily.
void OnDungeonSpawn(ulong OwnerID, Vector3 Position, string Grid, string TierName)
{
PrintWarning($"Dungeon spawned at {Position} by {OwnerID} Grid: {Grid}, Tier: {TierName}");
}

void OnDungeonDespawn(ulong OwnerID, Vector3 Position, string Grid, string TierName)
{
PrintWarning($"Dungeon despawned at {Position} by {OwnerID} Grid: {Grid}, Tier: {TierName}");
}


Console Commands for Admins/Event Manager
Introduced new admin‐only console commands for forcing dungeon spawns, removing all active dungeons, and performing cleanup tasks without needing chat commands.
"spawnrandomdungeon"
Forces a random dungeon to spawn immediately.
"spawnfixeddungeon <tierName>"
Spawns a specific tier of dungeon (for example, "spawnfixeddungeon hard").

Configurable Random Spawn Announcement
Implemented a configuration toggle to enable or disable the public broadcast message when a dungeon randomly spawns.
"Show Dungeon Spawn Announcement": true

Prevent Dropping the Active Item
Players can no longer drop their currently equipped item while inside a dungeon, helping to avoid unwanted drops during dungeon runs.

Spawn Near Purchaser
When a player buys or creates a dungeon, it will now generate in the closest open area near the player’s position, instead of a purely random spot on the map.

Configurable Command Blocking
Introduced new configuration options to block commands while players are inside a dungeon.
"Block all commands when inside a dungeon": true,

Faster Dungeon Marker Updates
The in‐game map marker for a purchased dungeon now updates more quickly to show the buyer’s name, ensuring players can tell who owns the dungeon at a glance.

Tier‐Based Economics/ServerRewards
Reward players with Economics currency or ServerRewards points when they kill NPCs, destroy turrets, or break boxes inside a dungeon. Each tier can have its own reward values, so you can balance payouts for Easy, Normal, Hard, and higher difficulties.

Version 2.2.1 :

Fixed a bug that reset translations to default when restarting the plugin.
  • Improved the player detection mechanism inside the dungeon by replacing the overall bounds check with a per-cell check.
  • The new system iterates over each spawned dungeon cell and calculates its bounds with additional padding and a fixed vertical height.
  • This change ensures that players near the dungeon's boundaries (such as near the entrance) are reliably detected.
  • Additional debug logging has been added to assist in diagnosing and verifying the player detection process.