Sentry: Difference between revisions
Line 89: | Line 89: | ||
To make the sentry drop his equipment on death use: | To make the sentry drop his equipment on death use: | ||
<code>/sentry drops</code> | <code>/sentry drops</code> | ||
To make the sentry impervious to damage and knockback use: | To make the sentry impervious to damage and knockback use: | ||
<code>/sentry invincible</code> | <code>/sentry invincible</code> | ||
To make the sentry attack an attacker, even if not a target, use: | To make the sentry attack an attacker, even if not a target, use: | ||
<code>/sentry retaliate</code> | <code>/sentry retaliate</code> | ||
To make the sentry take standard damage, instead of the default MUD-style critical hits and misses, use | To make the sentry take standard damage, instead of the default MUD-style critical hits and misses, use | ||
<code>/sentry criticals</code> | <code>/sentry criticals</code> | ||
Revision as of 01:13, 3 August 2012
|
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.
To create a sentry, use:
/npc create '[NPC Name]'
then
/npc trait sentry
To place your sentry use:
/npc path
And use the citizens waypoint editor to give your Sentry a place to stand, or a path to walk.
To add a target, use:
/sentry target add [target]
[target] can be ENTITY:Name, ENTITY:MONSTER, GROUP:Name, or PLAYER:Name
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 1.0 and default health is 20.
You can give Sentries weapons and armor to make them more lethal with the core Citizens2 command:
/npc equip
And right click with the desired weapon or armor. Sentries can be equipped with Bows, Blaze Rods (throw fireballs!) or any projectile.
To make the sentry drop his equipment on death use:
/sentry drops
To make the sentry impervious to damage and knockback use:
/sentry invincible
To make the sentry attack an attacker, even if not a target, use:
/sentry retaliate
To make the sentry take standard damage, instead of the default MUD-style critical hits and misses, use
/sentry criticals
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.
Quick Navigation | |
---|---|
Usage | Installation · Frequently Asked Questions · Commands · Editors · Characters · API · |
Configuration | Configuration · Text Syntax · Permissions · Waypoints · Data Storage |