Sentry

From Citizens Wiki
Sentry.png

Sentry
Author aufdemrand
Version 0.5.6
Citizens build 2.0 dev build #195
Other dependencies Vault, and a permissions system
Download Link
Description: Sentries guard entrances.


Updates

Note: It has been brought to my attention that giving a Sentry waypoints will crash your server. I will investigate, but for now, avoid doing so.

v. 0.5.6 beta

  • Now working with the new builds of C2.

v. 0.5.5 beta

  • Fixed bugs.

v. 0.5 beta

  • Added the ability to specify targets.
  • Added the ability to set the Health and Speed of a Sentry.
  • 'Stuck' Sentries now respawn after a while.
  • Fixed the death handling.
  • Fixed Sentries remembering their guard location on a restart.

v. 0.3 beta

  • Added ability to kill the NPCs. Swords kill faster. Built-in chance of criticals, etc.
  • Fixed targeting code, should be more efficient now.
  • Implemented respawning sequence.

Up next: Warning targeted Players.

How to Use

Installation

  • Ensure Citizens2 and Vault are installed
  • Download Sentry.jar
  • Place Sentry.jar in your Plugins folder.
  • Start Server

Note. Sentry folder and config.yml will generate when you add the first target or set the guard position.

General Information

Sentries are useful for guarding areas from intruders. Sentries guard a 10 square radius.

To create a sentry, use:

/npc create '[NPC Name]' --char sentry

Once a desired guard location has been found, use:

/sentry guard

To add a target, use:

/sentry target add [target]

Valid targets are player names, mob names, or player groups. For example, /sentry target add zombie would make the Sentry target Zombies.

Removing a target is just as easy.

/sentry target remove [target]

You can also clear the target list.

/sentry target clear

To set a Sentries speed or health, use:

/sentry health [1-20] and /sentry speed [.1-1.0]

Note: default speed is .2 and default health is 20.

You can give Sentries weapons to make them more lethal with the core /npc command:

/npc equip

Known caveats and upcoming features

Sentries will be able to drop specific items, experience, etc.
Sentries with the same name seem to be causing problems. Will fix ASAP.
Sentries will have some form of waypoint capability.
Sentries will drop Armor/Weapons on death.

Suggestions

Suggestions are, of course, always welcome! Visit us in #citizens on EsperNet.