Nikodemus

Member
Script Description (English)
The `CustomDetectHidden.cs` script provides enhanced Detect Hidden functionality, enabling players to locate or reveal hidden characters in their vicinity. It includes two primary commands:

1. Detect (`/detect`): This command allows players to detect hidden characters near them without requiring a direct line of sight. The script checks the player’s `Detect Hidden` skill to determine the range in which hidden characters can be found. If the player is successful, any hidden characters within range become visible to them.

2. Reveal (`/reveal`): This command lets players reveal hidden characters within their line of sight. The command requires a direct line of sight and also checks the player’s `Detect Hidden` skill to determine the radius of the reveal.

How it Works:
- When a player enters `/detect`, the script examines their `Detect Hidden` skill and calculates a detection range based on this value.
- Any hidden characters within that range are checked, and if the player’s skill surpasses that of the hidden characters, they are revealed.
- The `/reveal` command functions similarly but requires direct line of sight and checks if hidden characters are within the player’s house, boosting the chances of discovery.

Script Changes
- Modernized Command Registration: `CommandSystem.Register` was used instead of the older method to ensure compatibility with ServUO version 57.3.
- Generic Lists: `ArrayList` was replaced with `List<Mobile>`, enhancing type safety.
- Visibility Management: The timer manages the visibility timeout for revealed characters, removing their detection after 10 seconds.

Servuo 57.3 CustomDetectHidden - CustomDetectHidden

Das `CustomDetectHidden.cs`-Skript bietet eine erweiterte Detect Hidden-Funktionalität, die es Spielern ermöglicht, versteckte Charaktere in ihrer Umgebung zu entdecken oder aufzudecken. Es enthält zwei Hauptbefehle:

1. Detect (`/detect`): Mit diesem Befehl können Spieler versteckte Charaktere in ihrer Nähe erkennen, ohne eine direkte Sichtlinie zu benötigen. Das Skript überprüft die `Detect Hidden`-Fähigkeit des Spielers, um den Bereich zu bestimmen, in dem versteckte Charaktere...

Read more about this resource...
 
Last edited:
Back