Sentry: Difference between revisions
No edit summary |
|||
(268 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<br /> | |||
{{Trait | {{Trait | ||
| PICTURE = Sentry.png | | PICTURE = Sentry.png | ||
| AUTHOR = aufdemrand, jrbudda | | AUTHOR = aufdemrand, jrbudda | ||
| NAME = Sentry | | NAME = Sentry | ||
| VERSION = | | VERSION = 1.8.6 | ||
| CITIZENSBUILD = 2.0 | | CITIZENSBUILD = [http://ci.citizensnpcs.co/job/Citizens2/ 2.0.16] (Use with CraftBukkit 1.8.6) | ||
| DEVSTATUS = | | DEVSTATUS = Release | ||
| DEPENDS = Vault | | DEPENDS = None required, Vault and a permissions plugin suggested. | ||
| DOWNLOADLINK = | | DOWNLOADLINK = http://ci.citizensnpcs.co/job/Sentry/28/artifact/target/sentry.jar | ||
| DESCRIPTION = Citizens NPCs that attack monsters and can be killed. | | DESCRIPTION = Citizens NPCs that attack monsters and can be killed. This has been replaced by [[Sentinel]]! | ||
}} | }} | ||
'''SENTRY''' HAS BEEN REPLACED BY [[Sentinel]]! | |||
--- | |||
'''SENTRY''' HAS BEEN REPLACED BY [[Sentinel]]! | |||
--- | |||
<span style="font-family:natalya-alternate-one; font-size:300%; margin-right:-7px; margin-left:-10px;">'''SENTRY''' HAS BEEN REPLACED BY [[Sentinel]]!</span> | |||
--- | |||
Old page: | |||
'''Sentry''' is a Citizens 2.0 [[Characters|character trait]] that gives NPCs the ability to: | '''Sentry''' is a Citizens 2.0 [[Characters|character trait]] that gives NPCs the ability to: | ||
* Attack monsters, players, | * Attack specific monsters, players, or groups automatically. | ||
* Kill, and be killed by, players, monsters, and the environment. | * Kill, and be killed by, players, monsters, and the environment. | ||
* Guard locations, paths, players, or other NPCs. | * Guard locations, paths, players, or other NPCs. | ||
* Use ranged or melee weapons. | * Use ranged or melee weapons. | ||
* Be configured with stats such as strength, armor, speed, and night vision. | * Be configured with stats such as strength, armor, speed, and night vision. | ||
* Ride mounts! | |||
* [[Sentry/Sentry and Denizen|Work with Denizen]] to create NPCs that run scripts upon death. | * [[Sentry/Sentry and Denizen|Work with Denizen]] to create NPCs that run scripts upon death. | ||
Dev builds are now at: http://ci.citizensnpcs.co/job/Sentry/ | |||
The official source code repo is [https://github.com/jrbudda/Sentry Github/jrbudda/Sentry] though Sentry is currently maintained at [https://github.com/mcmonkey4eva/Sentry Github/mcmonkey4eva/Sentry] | |||
[[File:KnightSentry.png|right|thumb|500px|Can I see your hall pass?]] | |||
== DEPRECATION == | |||
DEPRECATION NOTICE: | |||
Sentry has been replaced by Sentinel, information here: [https://github.com/mcmonkey4eva/Sentinel/blob/master/README.md https://github.com/mcmonkey4eva/Sentinel/blob/master/README.md] | |||
== Updates == | == Updates == | ||
{{scrollbox| | |||
'''v. 1.8.6''' 05/25/15 [http://ci.citizensnpcs.co/job/Sentry/28/artifact/target/sentry.jar download] | |||
* Update for MC 1.8.6 | |||
'''v. 1.8.5''' [http://ci.citizensnpcs.co/job/Sentry/27/artifact/target/sentry.jar download] | |||
* Update for MC 1.8.3 | |||
'''v. 1.8.4 build 2''' [http://ci.citizensnpcs.co/job/Sentry/24/artifact/target/sentry.jar download] | |||
* Update to work with Denizen updates. | |||
'''v. 1.8.4''' [http://ci.citizensnpcs.co/job/Sentry/23/artifact/target/sentry.jar download] | |||
* Update to work with factions and Denizen updates. | |||
'''v. 1.8.3''' [http://ci.citizensnpcs.co/job/Sentry/19/artifact/target/sentry.jar download] | |||
* Update to work with Bukkit for MC 1.8 | |||
'''v. 1.8.2 build 3''' [http://ci.citizensnpcs.co/job/Sentry/14/artifact/target/sentry.jar download] | |||
* Update to work with Bukkit for MC 1.7.10 | |||
'''v. 1.8.2 build 2''' 06/13/14 [http://ci.citizensnpcs.co/job/Sentry/13/artifact/target/sentry.jar download] | |||
* mini-update to patch compatibility with latest Denizen dev builds | |||
'''v. 1.8.2''' 03/24/14 [http://ci.citizensnpcs.co/job/Sentry/12/artifact/target/sentry.jar download] | |||
* Update to work with Bukkit for MC 1.7.8 -> (EDIT: then to 1.7.9 as well) | |||
'''v. 1.8.1''' 03/24/14 [http://ci.citizensnpcs.co/job/Sentry/8/artifact/target/sentry.jar download] | |||
* Update to work with Bukkit for MC 1.7.5 | |||
'''v. 1.8.0''' 12/10/13 [http://www.sendspace.com/file/t2aky8 download] | |||
* Re-work guard targeting. Guard target no longer needs to be in range of Sentry when set (if its a player). You should no longer need to go find your bodyguard if you get separated and log out. | |||
* Fix mounted sentries not attacking correctly. | |||
* Add targeting support for minecraft scoreboard teams. (via TEAM:NAME) (War teams are now specified via WARTEAM:NAME) | |||
* Move respawn location when /npc copy is used. | |||
* Fix event targets not firing when in a worldguard or other pvp-protected situation. | |||
'''v. 1.7.1''' 11/07/13 [https://dl.dropboxusercontent.com/u/54130586/Sentry/1.7.1/Sentry.jar download] | |||
* Update to work with Bukkit for MC 1.7.2 | |||
'''v. 1.6.1''' 11/07/13 [https://dl.dropboxusercontent.com/u/54130586/Sentry/1.6.1/Sentry.jar download] | |||
* code formatting work | |||
'''v. 1.5.4''' 11/07/13 [https://dl.dropboxusercontent.com/u/54130586/Sentry/1.5.4/Sentry.jar download] | |||
* mini-update to fix compatibility with the new build of Citizens | |||
'''v. 1.5.3''' 9/20/2013 [http://www.sendspace.com/file/fuk6r9 download] | |||
* Update for craftbukkit 1.6.4 | |||
'''v. 1.5.2''' 8/27/2013 [http://www.sendspace.com/file/xx3ooi download] | |||
* Add ''targetable'' option to prevent mobs from attacking sentries. (this used to be done via ''/npc playerlist'' but that stopped working in mc 1.6) | |||
* Fix Denizen actions not using correct killer when projectiles involved. | |||
'''v. 1.5.1''' 8/3/2013 [http://www.sendspace.com/file/5sljfn download] | |||
* Sentries properly remember their spawn location. | |||
* Lots of little fixes to mounted sentries | |||
** Mounts don't take damage from guard target | |||
** Mounts move at 2x the ''/npc speed'' of their rider while patrolling and 2x the ''/sentry speed'' of their rider while attacking. | |||
** Rider animation syncs up with the mounts better. | |||
** Mounted bodyguards will properly teleport (requires VERY latest Citizens2 builds) | |||
** Mounts are properly deleted when sentry is killed with respawn -1 | |||
'''v. 1.5''' 7/29/2013 [http://www.sendspace.com/file/4hvq4p download] | |||
* The Calvary has arrived! Sentries can now have and be mounts! See the [[#Mounts]] section | |||
* Disable death animation to prevent client-side ghost drops | |||
* Fix compatibility issue with latest builds of Denizen | |||
* Sentries always use 'old' pathfinder. | |||
* Fix health not saving. | |||
'''v. 1.4.1''' 7/9/2013 [http://www.sendspace.com/file/jvpqc7 download] | |||
* Compatible with 1.6.2 | |||
'''v. 1.4.0.1''' 7/4/2013 [http://www.sendspace.com/file/pnoyt5 download] | |||
* (Mostly)Compatible with 1.6.1 and Citizens 2.0.9 | |||
* Compatible (only!) with Denizen .9 | |||
'''v. 1.3.7''' 7/3/2013 [http://www.sendspace.com/file/7kd6g1 download] | |||
* Sentries can now optionally be immune to damage from things on their ignore list. | |||
* Sentry projectiles will go though* things on their ignore list. (*some accuracy loss may be observed) | |||
* Sentries will properly ignore event: targets if the perpetrator is on the ignore list. | |||
* Bodyguards can optionally NOT follow damage protection (for compatibility with modifyworld and other annoying plugins.) | |||
* Fix default config.yml (put quotes "" around your default targets and ignores!) | |||
* Compatible with Factions 2.0.X | |||
'''v. 1.3.6''' 5/21/2013 [http://www.sendspace.com/file/adgqyl download] | |||
* Added configurable follow distance for bodyguards. Use /sentry follow [0-32] | |||
* Fix crash in Denizen DIE command. | |||
* Sentry now removes the Denizen 'Health' trait as it conflicts on a sentry. This should fix some bugs relating to health and re-spawning. | |||
* Added several Denizen 'actions'. see the Advanced Usage section. | |||
* No longer using NMS code for max health > 20. should be more compatible with other plugins. | |||
'''v. 1.3.5''' 5/7/2013 [http://www.sendspace.com/file/2s90lz download] | |||
* Add KillDrops option to remove the item and exp drops from Sentry kills. | |||
'''v. 1.3.4''' 5/4/2013 [http://www.sendspace.com/file/9gxfe6 download] | |||
* Update for 1.5.2 | |||
* Add FACTIONENEMIES: target | |||
'''v. 1.3.3.3''' 4/9/2013 [http://www.sendspace.com/file/4en9is download] | |||
*Fix sentries not dying with Denizen installed. | |||
'''v. 1.3.3.2''' 3/21/2013 [http://www.sendspace.com/file/3emb6e download] | |||
*Fix error on sentry death if Denizen not installed. | |||
'''v. 1.3.3.1''' 3/21/2013 [http://www.sendspace.com/file/i3t9h5 download] | |||
*Change packages for craftbukkit 1.5.1 | |||
'''v. 1.3.3''' 3/19/2013 [http://www.sendspace.com/file/qot6p8 download] | |||
*Compatible with Craftbukkit 1.5 and Citizens 2.0.8 | |||
*Fixed Sentry not loading if Denizen .76 is still installed. | |||
'''v. 1.3.2''' 3/14/2013 [http://www.sendspace.com/file/ox6uyq download] | |||
* Compatibility with Denizen 0.8 and latest Citizens2 (Note that this will NOT work with Denizen 0.7x) | |||
'''v. 1.3.1''' 1/19/2013 [http://www.sendspace.com/file/i3l47p download] | |||
* Compatibility with cb 1.4.7 | |||
'''v. 1.3''' 1/17/2013 [http://www.sendspace.com/file/s4bj6x download] | |||
* Use with CraftBukkit 1.4.6r0.4 and Citizens2 2.0.6 build 663 | |||
* Compatible with Denizen .8 and .76. The commands and triggers are the same, but the example scripts will not work with .8 until updated | |||
* Sentries will no longer retaliate to the projectiles of other NPCs. If this behavior messes up your setup, let me know and I can make it an option. | |||
* Workaround for bodyguards not teleporting with their owner. | |||
* New event target: PvE. Use to attack players who attack mobs/animals. | |||
* API: Sentries will always raise a NPCDeathEvent upon dying regardless of the die-like-players setting. Modifiing the item list in the NPCDeathEvent will modify the items the sentry drops. | |||
* API: Sentries should now have valid last damage cause and killer set. | |||
* Memory and CPU optimizations. | |||
'''v. 1.2.6b''' 12/22/2012 [http://www.sendspace.com/file/ikgcxx download] | |||
*Compatibility with CraftBukkit 1.4.6r0.1 and Citizens2 2.0.6 | |||
'''v. 1.2.5''' 12/20/2012 [http://www.sendspace.com/file/wu8fmh download] | |||
*Compatibility with CraftBukkit 1.4.5r1.0 and Citizens2 release 2.0.5 | |||
'''v. 1.2.4''' 12/9/2012 | |||
*Compatibility with latest builds of craftbukkit (1.4.5 r0.3) and citizens2 build 606+ | |||
'''v. 1.2.3''' 11/27/2012 | |||
* Compatible with craftbukkit 1.4.4 - 1.4.5 r0.2 and citizens2 build 597. | |||
* Compatibility fixes for Chunk Unload settings in citizens2. | |||
** Active bodyguards should no longer die if their owner teleports too far away. | |||
** Regular sentries will not try to respawn if the chunk at their spawn location is unloaded. | |||
'''v. 1.2.2''' 11/14/2012 | |||
* Bow draw and sword block animations implemented - Thanks dotblank! | |||
* More Towny support: use the NATIONENEMIES: target to automatically attack enemies of the specified nation! | |||
'''v. 1.2.1''' 10/29/2012 | |||
* Update for 1.4.2... NOT compatible with cb 1.3! | |||
* Added Warlock level2. Fires wither skulls. be sure to update your config.yml to support them. | |||
* Added many default mob attacks. Blazes, enderdragons and ghasts shoot fireballs. Withers shoot wither skulls. Snowmen throw snowballs. Witches throw harm potions. Skeletons shoot arrows. Creepers explode. | |||
** Some of this is not working 100%. Creepers may not respawn correctly and skeletons are not currently 'equippable' | |||
* Fix named players on the ignore list. | |||
'''v. 1.2''' 10/24/2012 | |||
* All toggleable options (invincible, drops, retaliate, criticals) can be explicitly set via /sentry [option] true/false | |||
* The FriendlyFire option has been removed totally, sentries will never deal damage to or receive damage from bodyguard owners or other bodyguards of that owner. (which was the default behavior anyway) | |||
* Fix elemental immunity when Invincible was also set. | |||
* Changing a Sentry's weapon will cause it to switch attack types immediately instead of on the next target. | |||
* DIE command will now properly honor the setting of RESPAWN, DROPS and DieLikePlayers. | |||
* Fixed drops not working if RESPAWN was set to -1. | |||
'''v. 1.1.4''' 10/15/2012 | |||
* Critical hit chances and messages can now be configured or disabled in the [[Sentry/Configuration|config.yml]]. Please update your config.yml or criticals will not work at all. | |||
* Note that as of citizens2 build 465 all mob types can attack. All hail our new sheep overlords. | |||
'''v. 1.1.3''' 10/15/2012 | |||
* Fix death trigger not going off if respawn set to -1. | |||
* Added support for SimpleClans. Use the CLAN: target or ignore. | |||
* Added Npcdeathowner Trigger. This denizen trigger runs when the sentry-denizen dies using its OWNER as the target player. | |||
'''v. 1.1.2''' 10/14/2012 | |||
* Fix NPCDeath trigger. Preliminary code in place to separate out death trigger to optionally run script vs NPC owner instead of killers. | |||
'''v. 1.1.1''' 10/12/2012 | |||
* Bodyguards who have lost their owner will not take damage or engage in combat until the owner returns/logs in. | |||
* Stray sentry projectiles should not harm invulnerable basic NPCs. | |||
* Lots more optimizations for target finding. If you still experience low TPS with sentry you will have to increase the LogicTicks in the config.yml. If you can profile the server and let me know what exactly is causing the problem that would help. | |||
* Small fix with pathfinding ranges. | |||
'''v. 1.1''' 10/10/2012 | |||
{{color|green|white| Note that this update adds several new items to the config.yml. These will not be added automatically. See the [[Sentry/Configuration|Configuration]] page for new items.}} | |||
* Several changes aimed at increasing performance: | |||
*** Target checking code has been reworked to make less pointless calls if the Sentry isn't set to target a certain category. The biggest culprit, I think, was some permissions plugins are VERY slow at returning the groups information. Sentries will now only query groups if they have a GROUP: target or ignore set. Same for Towny, Factions, War, and EVENT: targets. | |||
*** Also added a option in the config.yml to specify the frequency that Sentries look for targets. Default is 10 ticks (twice per second). increasing this number would decrease server load but also make sentries less responsive and slow the maximum firing rate. | |||
*Added Stormcaller Level 3. These crazed wizards call forth lightning so powerful it instantly vaporizes anything it touches, even those things otherwise immune to damage. (hint: creative-mode players) | |||
*Now parses '&' as a valid color character in warning and greeting messages. Changed default messages to red/green. | |||
*Added options in the config.yml to support 'extended' armors. Also allows disabling specific armor types. Only works with /sentry equip (not /npc equip) | |||
'''v. 1.0.3''' 10/2/2012 | |||
* Fix copied Sentries' target/ignore lists being 'linked' to each other. Probably wont fix existing sentries, only newly copied ones. To fix existing Sentries open the citizens saves.yml and delete the [http://en.wikipedia.org/wiki/YAML#References YAML anchors and references] on the Targets: and Ignores: nodes on each Sentry. | |||
'''v. 1.0.2''' 9/28/2012 | |||
* Fix towny/factions/war support. | |||
'''v. 1.0.1''' 9/27/2012 | |||
* Fix Witchdoctors (they got drunk and lost their recipe book, we found it though) | |||
* Switch to new default teleport action, should fix server hangs near ladders and waterfalls. | |||
'''v. 1.0 Release!''' 9/21/2012 | |||
* Workaround to allow bodyguards to cross worlds. | |||
* Workaround for weapons breaking. | |||
* Maybe fix server crash teleporting around ladders. | |||
* I'm pretty happy with the feature list and stability of Sentry at this point, so this is 1.0. There's a few things still not working (like speed) but these are not fixable with Sentry and should be addressed in future builds of Citizens2. | |||
'''v. 0.9.9.2 beta''' 9/20/2012 | |||
*Introducing the 667th Brigade: the '''{{color|purple|white|Warlocks}}!''' | |||
**These artisans of ancient arcane arts prefer a solitary lifestyle deep in The End. Probably because they smell bad. Recently several of their number have come to the mortal realm and SentryCorps has integrated them. Rumor is more powerful Warlocks may be on their way as well!. | |||
**Be sure and add the Warlocks to your [[#Configuration|config.yml]] to enable this new attack type. | |||
*Fixed lvl1 pyromancers' over-zealous use of actual fire. | |||
*Other minor bugfixes. | |||
'''v. 0.9.9.1 beta''' 9/17/2012 | |||
* '''War''' support. use the TEAM: target to automatically attack War players. | |||
* Fix item drops | |||
* Added server-wide option to make Sentries 'die' like they used to pre v0.9.5. false by default. | |||
* Added server-wide option to set the amount of EXP sentries drop on death if Drops is turned on. (yea yea.. you want it per sentry.. I know) | |||
'''v. 0.9.9 beta''' 9/15/2012 | |||
* Added command: equip | |||
* Added targets: event:pvnpc, event:pvsentry | |||
* Changed some logic regarding pvp: | |||
**Bodyguards should now honor pvp-protected areas, they will not take or deal damage to players or retaliate when left-clicked in a no-pvp zone. This ONLY applies to bodyguards, lookout-type sentries can still perform their duties in pvp-protected areas. You should still not bring a player-hostile bodyguard into a pvp-protected area.. it will run away and annoy people. | |||
**All invincible sentries will not retaliate, no blood no foul. | |||
*Fixed config bug for default strength and pyro3 | |||
'''v. 0.9.8.1 beta''' 9/13/2012 | |||
{{color|green|white|Configuration is here!}} | |||
Sentry now has a config.yml! You can: | |||
* Set default stats/options/targets/texts for new Sentries. | |||
* Customize the item that each type of sentry uses (matches only ID for now, id:data.. soon). Can also disable certain Sentry types. | |||
* Add Armor, Strength, and Speed buffs to various armor and weapon types. So your players can buff up their sentry without access to /sentry stat commands! | |||
* Apply ANY potion effect(s) to ANY weapon sentries use! | |||
See [[Sentry/Configuration|Configuration]] | |||
Once the bugs are worked out of this new stuff. Sentry will be released as 1.0. | |||
'''v. 0.9.7 beta''' 9/11/2012 | |||
* The Peacekeepers have arrived! Give your sentry the event:pvp target and it will attack players that damage other players in its range. | |||
* Fix for Factions targets. | |||
* Fix for NPC targets. | |||
* Some fixes for bodyguards. They still don't like being taken across worlds. Think its a problem in citizens2 core. | |||
'''v. 0.9.6 beta''' 9/10/2012 | |||
*<del>{{color|red|white|Known issue: changing worlds with a bodyguard will throw console errors. Working on fix.}}</del> | |||
*<del>{{color|red|white|Known issue: If there is a NPC on the server named after a Player, the player may be detected by the NPC: target.}} </del> | |||
* Split out NPC: targets from PLAYER: targets. | |||
* Sorta fix for Factions. | |||
* Minor bugfizes | |||
'''v. 0.9.5 beta''' 9/8/2012 | |||
* Bodyguards will maintain a respectable distance. | |||
* Sentries will try to not stand in fire if they can help it, tends to void the warranty on their bowstrings. | |||
'''v. 0.9.4 beta''' 9/7/2012 | |||
* Fixes for stuck actions, requires build '''334''' of citizens2 or higher. | |||
* Better help for targeting and guard commands. | |||
'''v. 0.9.3 beta''' 9/2/2012 | |||
* Health is no longer limited to 20, should be able to use any value without external mods. | |||
* Implemented 'stuck' actions. Sentries should teleport to their guard targets or waypoints if they get stuck. If a Sentry gets stuck trying to path to a hostile target it will give up (and teleport back if it has waypoints) This functionality may still be a little buggy. | |||
* Fix mob aggression. | |||
* Stormcallers are now immune to all Lightning. Pyromancers are immune to all Fire. Witch Doctors are immune to all Poison. | |||
'''v. 0.9.2.1 beta''' 9/2/2012 | |||
* Fix error from very fast healing | |||
* Fix error? from denizen hook. | |||
'''v. 0.9.2 beta''' 9/2/2012 | |||
* Compatible with latest Citizens2 | |||
'''v. 0.9.1 beta''' 9/1/2012 | |||
* Through constant exposure Witch Doctors and lvl3 Pyromancers are no longer hurt by their own attacks (unless friendly fire in on.) | |||
* Accuracy improved for thrown potions. | |||
'''v. 0.9.0 beta''' 8/31/2012 | |||
* For the first time in 100 years, the venerated Order of the Stormcallers has descended from their monastery on the top of Mt. Creeperhorn. They have come to join their brethren in SentryCorps and share a century's worth of arcane secrets to push back the tide of evil sweeping the land! See [[#Equipment for details]] | |||
** Wielding potent scrolls and ancient tomes the Stormcallers bring forth lightning to smite their foes! | |||
** The Stormcallers have taught the Pyromancer brigade to focus their chi and summon more powerful Fire! | |||
** The SentryCorp Ice Magi have learned to infuse their balls of ice with freezing power! | |||
** The secretive Witch Doctors have begun mass producing their potions of war. They make a mighty fine root beer float, too. | |||
'''v. 0.8.9 beta''' 8/28/2012 | |||
*Fix target, ignore, guard, warning and greeting commands to properly handle spaces. | |||
*Change damage event priority: All sentries should deal and receive damage independent of any PVP protection plugins, since they are not, by definition, players. | |||
'''v. 0.8.8.2 beta''' 8/27/2012 | |||
*Removed upper limit on {{sentrystat|respawn}}. | |||
*Removed upper limit on {{sentrystat|healrate}} to allow faster healing. Heal rate is still the number of seconds between heals of 1hp but all values between 0.0 and 1.0 are now valid. So a heal rate of 0.5 is 2hp per second. A healrate of 0.1 is 10hp per second. a healrate of 0.01 is 100hp per second. | |||
*Fixed error if vault not installed. | |||
*Made Vault registration delayed for compatibility with slow perms systems. | |||
'''v. 0.8.8.1 beta''' 8/23/2012 | |||
* Sentries take less knockback based on armor. Also honor the .5 second invulnerable period after hits that other Minecraft entities enjoy. This should make fighting them much more difficult and rewarding. | |||
* Removed the upper limit on {{sentrystat|health}}, {{sentrystat|strength}}, and {{sentrystat|armor}}. This is for compatibility with other plugins. Vanilla craftbukkit users should still use 1-20 for health, and 0-10 for strength and armor. | |||
'''v. 0.8.8 beta''' 8/21/2012 | |||
* Due to pending litigation, all Citizens SentryCorps personnel have been sent to Public Relations training. APPARENTLY some people were upset that Sentries were attacking people with no warning. | |||
::Added commands warningrange, warning, greeting | |||
::See [[#Warn/Greet]] | |||
*Fixed sentries giving up on retaliation targets after a few seconds. | |||
*Other bugfixes. | |||
'''v. 0.8.7.1 beta''' 8/20/2012 | |||
* Fix group ignores. | |||
* Added valid target: entity:all | |||
'''v. 0.8.7 beta''' 8/20/2012 | |||
* Added command: ignore | |||
* Added target entity:owner | |||
'''v. 0.8.6 beta''' 8/20/2012 | |||
* Added Target Reassessment | |||
::When Sentries have an active target, every few seconds they will glance over their shoulders at other possible targets and switch if one has gotten closer. Stab me in the back once, shame on you, stab me in the back twice, shame on me. | |||
* Added Denizen Command: LIVE | |||
'''v. 0.8.5.1 beta''' 8/19/2012 | |||
* Minor fixes to perms, info, debugging info. | |||
'''v. 0.8.5 beta''' 8/17/2012 | '''v. 0.8.5 beta''' 8/17/2012 | ||
* Support for Factions. Use FACTION:FactionTag to target memebers of that faction. | * Support for Factions. Use FACTION:FactionTag to target memebers of that faction. | ||
Line 29: | Line 393: | ||
'''v. 0.8.4 beta''' 8/15/2012 | '''v. 0.8.4 beta''' 8/15/2012 | ||
* {{color|red|white| KNOWN ISSUE: Sentries with a single waypoint can cause VERY bad lag, either remove the single waypoint or make 2 waypoints until we can correct the issue.}} | *<del> {{color|red|white| KNOWN ISSUE: Sentries with a single waypoint can cause VERY bad lag, either remove the single waypoint or make 2 waypoints until we can correct the issue.}}</del> | ||
* {{color|red|white| KNOWN ISSUE: Human-type NPCs cannot path up stairs or half-blocks}} | :::{{color|green|white|Corrected in Citizens2 build #288}} | ||
*<del> {{color|red|white| KNOWN ISSUE: Human-type NPCs cannot path up stairs or half-blocks}}</del> | |||
:::{{color|green|white|Corrected in Citizens2 build #291}} | |||
* If a Sentry NPC is owned by 'server' anyone with the 'citizens.admin' permission can run sentry commands on it. (if they also have the required Sentry [[Sentry/Permissions|permissions)]] | * If a Sentry NPC is owned by 'server' anyone with the 'citizens.admin' permission can run sentry commands on it. (if they also have the required Sentry [[Sentry/Permissions|permissions)]] | ||
Line 151: | Line 517: | ||
* Implemented respawning sequence. | * Implemented respawning sequence. | ||
}} | |||
[[File:ArchersLogo.png|right|thumb|500px|The 14th Archer Brigade]] | |||
==Installation== | |||
* Ensure the latest [[http://ci.citizensnpcs.co/job/Citizens2/ Citizens2]] is installed | |||
* Ensure Citizens2 | |||
* Download file. [[#top|See top of page]] | * Download file. [[#top|See top of page]] | ||
* Place Sentry.jar in your Plugins folder. | * Place Sentry.jar in your Plugins folder. | ||
* Start Server | * Start Server | ||
==Permissions== | |||
See [[Sentry/Permissions|Sentry Permissions]] | |||
See [[Sentry/ | ==Configuration== | ||
On first load Sentry will make config.yml in plugins/Sentry. This can be used to configure Sentry to your liking. | |||
See [[Sentry/Configuration|Configuration]] | |||
Sentry will only make this file if it cannot find it. So check the page above if anything new has been added. | |||
==Commands== | |||
To view help: | |||
:'''<code>/sentry help</code> | |||
To reload the config.yml: | |||
:'''<code>/sentry reload</code> | |||
All /sentry commands below normally require a selected NPC. use /npc select # to do this. Alternatively you may use | |||
selecting it. # is the Sentry's | {{color|blue|white|<code >/sentry # [command] </code>}} | ||
to send a sentry command to a specified sentry without selecting it. # is the Sentry's npcid. | |||
Example: <code>/sentry 3 add target entity:monster </code> will add the monsters target to sentry with npcID 3. | Example: <code>/sentry 3 add target entity:monster </code> will add the monsters target to sentry with npcID 3. | ||
===Creation=== | |||
[[File:PyromancersLogo.png|right|thumb|500px|The Flaming 27th, Pyromancer Brigade]] | |||
To create a sentry, use: | To create a sentry, use: | ||
:'''<code>/npc create | :'''<code>/npc create NPC Name | ||
:'''/trait sentry | :'''/trait sentry | ||
</code> | </code> | ||
:or | :or | ||
:'''<code>/npc create | :'''<code>/npc create NPC Name --trait sentry </code> | ||
To give your sentry a place or path to guard use: | |||
To | |||
:'''<code>/npc path</code> | :'''<code>/npc path</code> | ||
And use the [[Waypoints]] editor | And use the [[Waypoints]] editor. | ||
To equip you Sentry with weapons and armor see [[#Equipment]] | |||
If you would like the Sentry to respawn in a different place from where it was created. Move it using | If you would like the Sentry to respawn in a different place from where it was created. Move it using | ||
Line 208: | Line 577: | ||
:'''<code>/sentry spawn</code> | :'''<code>/sentry spawn</code> | ||
===Targets=== | |||
Sentries | Sentries have 2 lists: '''Targets''' and '''Ignores'''. These lists contain entities. Entities can be monsters, passive mobs, players, or player groups. Sentries look at all the possible entities they can see in their {{sentrystat|range}}, If it NOT on the '''Ignores''' list and IS on the '''Targets''' list, the Sentry will attack it. An entity cannot be seen if it is out of line-of-sight or if it is too dark for the Sentry's {{sentrystat|nightvision}} | ||
*Melee Sentries will chase targets until the target is dead | *Melee Sentries will chase targets until the target is dead, has gotten out of {{sentrystat|range}}, or another valid target has gotten closer. | ||
*Ranged Sentries do not follow targets, but will stay on their spot/path and fire at the target until it is dead | *Ranged Sentries do not follow targets, but will stay on their spot/path and fire at the target until it is dead, out of ''projectile''* range, or another valid target has gotten closer. | ||
::<nowiki>*</nowiki>Note that projectile range is not the same as {{sentrystat|range}} (detection range). Projectiles have a fixed range depending on their type. Archers, for example, have a range of about 50 blocks on flat ground. Elevated sentries can hit targets farther away. Sentries that throw things have shorter range. | |||
To add a target: | To add a target: | ||
:'''<code>/sentry target add {{color|red|white|[category:type]}}</code> | |||
:'''<code>/sentry | To add an ignore: | ||
:'''<code>/sentry ignore add {{color|red|white|[category:type]}}</code> | |||
: | |||
'''<code>{{color|red|white|[category:type]}}</code>''' can be any of the following: | |||
{| class="wikitable" style="text-align: left; width: 75%" | {| class="wikitable" style="text-align: left; width: 75%" | ||
|entity: | |entity:all|| All living things. (adding this to the Ignore list is the same as leaving the Target list empty.) | ||
|- | |||
|entity:owner|| The Sentry's npc Owner. | |||
|- | |||
|entity:TYPE|| any [[Types|mob types]] of TYPE | |||
|- | |||
|entity:monster || All hostile mobs | |||
|- | |||
|entity:player|| All real players. | |||
|- | |||
|player:Name|| The player with the name Name | |||
|- | |||
|entity:npc|| All NPCs. | |||
|- | |||
|NPC:Name|| The NPC named Name. | |||
|- | |||
|group:Name|| All members of permissions group Name. NPCs can be added to permission groups. | |||
|- | |- | ||
| | |team:Name|| All members of scoreboard team Name. | ||
|- | |- | ||
| | |town:Name|| All members of [http://dev.bukkit.org/server-mods/towny-advanced/ Towny] town Name | ||
|- | |- | ||
| | |nation:Name|| All members of [http://dev.bukkit.org/server-mods/towny-advanced/ Towny] nation Name | ||
|- | |- | ||
| | |nationenemies:Name|| All members of [http://dev.bukkit.org/server-mods/towny-advanced/ Towny] nations that are declared as enemies of Name or have declared Name as an enemy. Only works as a Target, not as an Ignore. | ||
|- | |- | ||
| | |faction:Name|| All members of [http://dev.bukkit.org/server-mods/factions/ Factions] factiontag Name | ||
|- | |- | ||
| | |factionenemies:Name|| All members of [http://dev.bukkit.org/server-mods/factions/ Factions] that are currently enemies of Name. | ||
|- | |||
|warteam:Name|| All members of [http://dev.bukkit.org/server-mods/war/ War] team Name | |||
|- | |||
|event:PvP|| The sentry will attack any players that damage another player in range. | |||
|- | |||
|event:PvE|| The sentry will attack any players that damage animals or mobs in range. | |||
|- | |||
|event:PvNPC|| The sentry will attack any players that damage any NPC in range. | |||
|- | |||
|event:PvSentry|| The sentry will attack any players that damage other Sentries in range. | |||
|- | |- | ||
|} | |} | ||
Examples: | Examples: | ||
This will make the Sentry attack all players except those in the Admin group | |||
<pre> | |||
/sentry target add entity:player | |||
/sentry ignore add group:Admin | |||
</pre> | |||
This will make the Sentry attack anything that moves.. except sheep and the player named Bob Johnson. | |||
<pre> | |||
/sentry target add entity:all | |||
/sentry ignore add entity:sheep | |||
/sentry ignore add player:Bob Johnson | |||
</pre> | |||
[[File:StormcallersLogo.png|right|thumb|500px|The Order of Stormcallers, 99th Brigade]] | |||
To remove a target: | To remove a target: | ||
:'''<code>/sentry target remove [ | :'''<code>/sentry target remove [entity]</code> | ||
To remove a ignore: | |||
:'''<code>/sentry ignore remove [entity]</code> | |||
To view the target list: | To view the target list: | ||
:'''<code>/sentry target list</code> | :'''<code>/sentry target list</code> | ||
To view the ignore list: | |||
:'''<code>/sentry ignore list</code> | |||
To clear the target list: | To clear the target list: | ||
:'''<code>/sentry target clear</code> | :'''<code>/sentry target clear</code> | ||
==== | To clear the ignore list: | ||
Sentries can be set as Lookouts | :'''<code>/sentry ignore clear</code> | ||
====Warn/Greet==== | |||
Sentries can optionally warn or greet Players that come nearby, letting the Player know if the Sentry is hostile or friendly. This is off by default. To turn it on set the {{sentrystat|WARNINGRANGE}} higher than 0. This is the number of blocks beyond the {{sentrystat|RANGE}} that the Sentry will look for Players to warn/greet. For example if the {{sentrystat|RANGE}} is 10 and the {{sentrystat|WARNINGRANGE}} is 5, Players 10-15 blocks away will be alerted to the Sentry's hostility. | |||
The warning and greeting message can be customized for each Sentry. | |||
To set the warning message: | |||
:'''<code>/sentry warning 'New Warning Message'</code> | |||
To set the greeting message: | |||
:'''<code>/sentry greeting 'New Greeting Message'</code> | |||
*<PLAYER> and <NPC> can be used in the message as a placeholder for the Player's name or Sentry's name. | |||
*Setting either message to "" will disable that message. | |||
===Guarding=== | |||
Sentries have guarding 2 modes: Lookout and Bodyguard. | |||
====Lookouts==== | |||
This is the default mode for a new Sentry. Lookouts will stand on a single waypoint or travel between waypoints at the default NPC speed. They will look for and engage any targets. | |||
*If a lookout becomes 'stuck' it will abandon its target and teleport back to its waypoint(s). | |||
*Lookouts should always be given waypoints, otherwise they will simply stop moving when their target dies. use '''<code>/npc path</code>''' to set one or more waypoints. | |||
*Lookouts ignore PvP protection and will deal and receive damage in all cases. | |||
To set the Sentry back to this mode if it has been changed: | |||
:'''<code>/sentry guard</code> | |||
If a bodyguard is set | ====Bodyguards==== | ||
Bodyguards will guard follow another living entity (their guard target). The guard target can be a player or another NPC. If a bodyguard is set to {{sentrystat|retaliate}}}, it will engage anything that attacks either its guard target or itself. It will also actively engage any targets that have been configured. | |||
*Bodyguards will not deal damage to, or receive damage from, their guard target or any other bodyguards guarding that target. | |||
*If a bodyguard becomes stuck it will teleport to its guard target after a few seconds. | |||
*If the guard target is a player, and the player logs out, the bodyguard will remain where it is and will not take damage or engage in combat until the player comes back online and in range. | |||
*Bodyguards will honor any PvP-protection that might be active in the current world or area. (can be changed in the Configuration) | |||
To set a Sentry as a bodyguard for a target NPC or Player: | To set a Sentry as a bodyguard for a target NPC or Player: | ||
:'''<code>/sentry guard [Name] </code> | :'''<code>/sentry guard [Name] </code> | ||
*Notes: | |||
**[Name] is case-sensitive! | |||
**Named mobs must be within range of the NPC when set. | |||
**By default this command checks nearby entities for the specified name and if not found then checks the online player list. If this behavior is undesirable you can use <code>/sentry guard -p [Name] </code> to only check the online player list or <code>/sentry guard -l [Name] </code> to only check entities nearby the sentry. | |||
[[File:WitchDoctors.png|right|thumb|500px|9th Brigade. The Witch Doctors.]] | |||
===Stats=== | |||
Stats are Sentry settings that take a value and affect its performance. | Stats are Sentry settings that take a value and affect its performance. | ||
Line 284: | Line 725: | ||
:'''<code>/sentry info </code> | :'''<code>/sentry info </code> | ||
{| class="wikitable" style="text-align: | {| class="wikitable" style="text-align: left; width: 100%" | ||
|- | |- | ||
! Stat || Default Value || Value Range || Notes | ! Stat || Default Value || Value Range || Notes | ||
|- | |- | ||
| {{sentrystat|health}}|| 20 || 1- | | {{sentrystat|health}}|| 20 || 1-2000000 || The number of hit points the Sentry has. Normal players have 20. | ||
|- | |- | ||
| {{sentrystat|armor}}|| 0 || 0- | | {{sentrystat|armor}}|| 0 || 0-2000000 || This value is subtracted from all incoming damage. An armor of 10 makes the Sentry very hard to hurt. Armor items equipped on the Sentry have no effect on combat. | ||
|- | |- | ||
| {{sentrystat|strength}}|| 1 || 0- | | {{sentrystat|strength}}|| 1 || 0-2000000 || This is the damage the sentry does with each hit, regardless of weapon (or object) held. | ||
|- | |- | ||
| {{sentrystat|range}}|| 10 || 1-100 || This is the '''detection''' range for the Sentry. High values may affect server performance. This is not the same as the projectile range, which is dictated by projectile type and the Sentry's elevation relative to the target. | | {{sentrystat|range}}|| 10 || 1-100 || This is the '''detection''' range for the Sentry. High values may affect server performance. This is not the same as the projectile range, which is dictated by projectile type and the Sentry's elevation relative to the target. | ||
Line 300: | Line 741: | ||
| {{sentrystat|attackrate}}|| 2.0 || 0.0-30.0 || This is the number of seconds between projectile shots and has no effect if the Sentry uses a melee weapon. The minimum internal rate is 0.5 (twice a second). | | {{sentrystat|attackrate}}|| 2.0 || 0.0-30.0 || This is the number of seconds between projectile shots and has no effect if the Sentry uses a melee weapon. The minimum internal rate is 0.5 (twice a second). | ||
|- | |- | ||
| {{sentrystat|healrate}}|| 0.0 || 0.0-300.0 || This is the number of seconds between heals of 1 point. | | {{sentrystat|healrate}}|| 0.0 || 0.0-300.0 || This is the number of seconds between heals of 1 point, values less than 1.0 are acceptable. Set to 0 to turn off healing. | ||
|- | |- | ||
| {{sentrystat|nightvision}}|| 16 || 0-16 || This is how well the Sentry can see potential targets in the dark. A value of 16 means the sentry can see perfectly all the time. A value of 12 means a target is invisible below light level 4 (16-12) . A value of 6 means a target is invisible below light level 10 (16-6), etc. If the target is a Player and that player is sneaking, its effective light light level is cut in half, making it harder for the sentry to detect. | | {{sentrystat|nightvision}}|| 16 || 0-16 || This is how well the Sentry can see potential targets in the dark. A value of 16 means the sentry can see perfectly all the time. A value of 12 means a target is invisible below light level 4 (16-12) . A value of 6 means a target is invisible below light level 10 (16-6), etc. If the target is a Player and that player is sneaking, its effective light light level is cut in half, making it harder for the sentry to detect. | ||
|- | |- | ||
| {{sentrystat|respawn}}|| 10 || -1- | | {{sentrystat|respawn}}|| 10 || -1-2000000|| When the sentry dies, this is the number of seconds after which it will respawn. Set to 0 to prevent normal respawn. Set to -1 and the Sentry will not respawn and be '''permanently''' destroyed on death. | ||
|- | |||
| {{sentrystat|warningrange}}|| 0 || 0-50|| The number of blocks beyond {{sentrystat|range}} the Sentry will look for Players to warn or greet. Set to 0 to disable warn/greet. | |||
|- | |||
| {{sentrystat|follow}}|| 4 || 0-32|| The number of blocks a bodyguard will follow behind its guard target. | |||
|- | |- | ||
|} | |} | ||
===Options=== | |||
Options are sentry settings that can be toggled on and off and affect its behavior. | Options are sentry settings that can be toggled on and off and affect its behavior. | ||
:'''<code>/sentry [option]''' | :'''<code>/sentry [option]''' | ||
:Example: /sentry invincible </code> | :Example: /sentry invincible </code> | ||
You can also explicitly set an option using true or false | |||
:<code>Example: /sentry invincible false</code> | |||
To view all the Sentry's stats, options, current target, status, and guard target, use: | To view all the Sentry's stats, options, current target, status, and guard target, use: | ||
:'''<code>/sentry info </code> | :'''<code>/sentry info </code> | ||
{| class="wikitable" style="text-align: | {| class="wikitable" style="text-align: left; width: 100%" | ||
|- | |- | ||
! Option|| Default Value || Notes | ! Option|| Default Value || Notes | ||
|- | |- | ||
| {{sentrystat|drops}}|| False || If this is True the Sentry will drop his equipment on death. | | {{sentrystat|drops}}|| False || If this is True the Sentry will drop his equipment and some EXP on death. | ||
|- | |||
| {{sentrystat|killdrops}}|| True|| If this is False any mobs the Sentry kills will not drop items or EXP. | |||
|- | |- | ||
| {{sentrystat|invincible}}|| False || If this is True the Sentry will not take any damage, be knocked back, or show a 'hurt' flash. | | {{sentrystat|invincible}}|| False || If this is True the Sentry will not take any damage, be knocked back, or show a 'hurt' flash. | ||
Line 329: | Line 779: | ||
| {{sentrystat|criticals}}|| True || If this is true the Sentry will take critical hits and misses. If False, the normal damage is always applied. | | {{sentrystat|criticals}}|| True || If this is true the Sentry will take critical hits and misses. If False, the normal damage is always applied. | ||
|- | |- | ||
| {{sentrystat| | | {{sentrystat|mount}}|| False|| Whether or not the Sentry is mounted. See [[#Mounts]] | ||
|- | |||
| {{sentrystat|targetable}}|| True|| Whether or not the Sentry is attacked by nearby hostile mobs. | |||
|- | |- | ||
|} | |} | ||
==Combat== | |||
Sentries can engage in rewarding combat with players, monsters, and even each other! | Sentries can engage in rewarding combat with players, monsters, and even each other! | ||
===Equipment=== | |||
Equipment can be added to Sentries using the Citizens <code>/npc equip</code> editor. or the <code>/sentry equip [item|none]</code> command. What's the difference? | |||
*/npc equip | |||
**Can only be used by in-game players | |||
**Takes items from the player and gives it to the NPC | |||
**Drops all items when removed | |||
*/sentry equip [item|none] | |||
** Can be used from the console/scripts | |||
** Does not require the item | |||
** Does not drop anything on removal. | |||
The choice is yours which you use/allow. | |||
By default, equipped armor is just cosmetic. {{sentrystat|armor}} determines the damage reduction from attacks. Armor buffs can be configured for specific types of armor in the [[Sentry/Configuration|Configuration]]. | |||
The item a Sentry holds in its hand determines its attack type, but the amount of damage the Sentry does is determined by its {{sentrystat|strength}} | |||
Strength buffs for specific weapon types can be set in [[Sentry/Configuration|Configuration]]. By default no weapons add strength. | |||
The following items are usable by Sentries (these can be changed in the [[Sentry/Configuration|Configuration]]): | |||
{| class="wikitable" style="text-align: left; width: 100%" | |||
|- | |||
! Default Item || Type || Notes | |||
|- | |||
| BOW || Archer|| The 14th Archer Brigade ("Hawkeyes") of SentryCorps wield long bows and razor arrows. They can hit a chicken square in the nuggets from 50 meters on flat ground. | |||
|- | |||
| REDSTONE_TORCH_ON || Pyromancer I|| The entry-level members of the 27th Pyromancer Brigade shoot small, non-incendiary fireballs from their wands. | |||
|- | |||
| TORCH || Pyromancer II|| The elite of the Flaming 27th, these wizards shoot fireballs that set the land on fire. | |||
|- | |||
| BLAZE_ROD || Pyromancer III|| Spoken of in only hushed whispers, this little-known squad of the 27th has learned to fire large, explosive fireballs. That's a nice everything you have there. | |||
|- | |||
| SNOW_BALL || Ice Magi || The frosty brethren of the 88th Ice Magi Brigade ("Snowmen") throw snowballs which slow enemies on contract. Snowballs have a range of about 25 blocks on flat ground. | |||
|- | |||
| EGG || Bombardiers || The 3rd Brigade of Ovarian Bombardiers gets few recruits. Perhaps its the giant chicken suits they have to wear. Eggs have a range of about 25 blocks on flat ground. | |||
|- | |||
| POTION || Witch Doctor|| When not drunk on their own noxious brews, the 9th Witch Doctor Brigade can turn the tide of battle with a single potion. Potions have a range of about 25 blocks on flat ground. The Sentry will throw a splash version of whatever potion type it is equipped with. | |||
|- | |||
| PAPER|| Stormcaller I|| The magic incantation written on their scrolls allows members of the 99th Stormcallers to strike single targets with bolts of electricity. | |||
|- | |||
| BOOK|| Stormcaller II|| The elite of the 99th can call forth powerful lightning from the sky to smite multiple foes using tomes of untold power. This lightning's damage is atmospheric and therefore is not affected by the Sentry's strength. | |||
|- | |||
| BOOK_AND_QUILL|| Stormcaller III|| Few dare call upon the services of the 3rd-tier Stormcaller. Their mighty bolts instantly kill any living thing they touch regardless of health, armor, or play mode; Griefers beware! | |||
|- | |||
| ENDER_PEARL|| Warlock I|| The lowest tier of the 667th Warlocks. These sorcerers imbue their magic crystals with the kinetic power of the endermen, flinging their targets high into the air. Remember: it's not the fall that kills you, it's the sudden stop at the end. | |||
|- | |||
| SKULL_ITEM|| Warlock II|| The mid-range warlock shoots black explosive wither skulls at the enemy. | |||
|- | |||
| Anything else|| Brawler|| All armies need their meat-shields. the 1st Battalion is SentryCorps'. Armed with swords, axes, picks, shovels, rocks, bricks, or even fish, the brawlers take the fight to the enemy, hand to hand, using whatever they can find. | |||
|- | |||
|} | |||
===Dealing Damage=== | |||
The damage dealt by a Sentry when attacking a target is equal to the sentry's {{sentrystat|strength}}. | The damage dealt by a Sentry when attacking a target is equal to the sentry's {{sentrystat|strength}}. | ||
Typically players have 20 health. By default a Sentry has 1 {{sentrystat|strength}} and therefore does 1 damage. | Typically players have 20 health. By default a Sentry has 1 {{sentrystat|strength}} and therefore does 1 damage. | ||
===Receiving Damage=== | |||
Sentries can receive damage from any source, just like a monster. If the Sentry is set to {{sentrystat|retaliate}}, it will target any living entity that attacks it, ignoring any current target. | Sentries can receive damage from any source, just like a monster. If the Sentry is set to {{sentrystat|retaliate}}, it will target any living entity that attacks it, ignoring any current target. | ||
Line 366: | Line 856: | ||
If the Sentry has {{sentrystat|armor}} > 0 the damage will be reduced by the amount of armor. If the damage is reduced to nothing, the attack results in a block. Blocked hits cause no damage but DO cause knockback! | If the Sentry has {{sentrystat|armor}} > 0 the damage will be reduced by the amount of armor. If the damage is reduced to nothing, the attack results in a block. Blocked hits cause no damage but DO cause knockback! | ||
===Death=== | |||
If the Sentry's health drops to 0. It dies. | If the Sentry's health drops to 0. It dies. | ||
Line 374: | Line 864: | ||
After the {{sentrystat|respawn}} delay (default is 10 seconds) the Sentry will respawn. If the{{sentrystat|respawn}} is set to 0, the Sentry must be re spawned manually. | After the {{sentrystat|respawn}} delay (default is 10 seconds) the Sentry will respawn. If the{{sentrystat|respawn}} is set to 0, the Sentry must be re spawned manually. | ||
Lookouts will respawn at their spawn location, by default this is where they were created. | Lookouts will respawn at their spawn location, by default this is where they were created. This can be changed with '' /sentry spawn | ||
Bodyguards will respawn near their guard target. | Bodyguards will respawn near their guard target. | ||
== | ==Mounts== | ||
Sentries can be mounted and also used as mounts. | |||
== | ===Mounted Sentries=== | ||
To make a Sentry mounted use the command ''/sentry mount''. This command creates a new, permanant horse-type NPC for the sentry to ride. This NPC can be edited in any way you see fit. | |||
* The mount is a horse by default but can be changed to any mob type with the ''/npc type'' command. | |||
* While attacking, mounted Sentries move at double the rider's {{sentrystat|speed}} stat. (''/sentry speed'') | |||
* While patrolling or following, mounted Sentries move at double the rider's ''/npc speed'' | |||
* To make a Mounted Sentry patrol give waypoints to the ''mount'' | |||
* The mount can be be killed and the sentry will continue on foot, however if the Sentry is killed while mounted the mount also dies. | |||
* Mounts respawn with their Sentry. | |||
=== Sentries as mounts === | |||
* To use a Horse-Sentry as a player's mount it must be that player's bodyguard. (''/sentry guard player'') | |||
* Horse sentries can be ridden normally, but if given targets they may ignore your input and attack on their own. | |||
==Advanced Usage== | |||
For combining Sentry and Denizen for truly powerful interactions see [[Sentry/Sentry and Denizen|Sentry And Denizen]] | |||
Sentries may | ==Known Issues== | ||
*The Modifyworld plugin that comes with PEX is known to cause '0 damage' issues and prevent sentry mounting. | |||
*Turning PvP off in the server.config will prevent attacking NPCs. This is also true for pvp settings in MultiVerse. | |||
*Heroes does all kinds of funny things to player-type Sentries. | |||
*Using commands on a Sentry NPC while it is dead may cause errors. (/npc spawn is safe) | |||
*Putting a saddle on a Sentry's mount will make it stop moving. | |||
==Planned Additions== | |||
*Match weapon and armor buffs to item/data/enchantment instead of just item (for all you spout people) | |||
==Suggestions== | ==Suggestions== | ||
Suggestions are, of course, always welcome! Visit us in #citizens on [ | Suggestions are, of course, always welcome! | ||
*Visit us in #citizens on [http://webchat.esper.net/?channels=citizens EsperNet]. | |||
*Bugs and suggestions can also be posted [[https://github.com/jrbudda/Sentry/issues Here]] | |||
[https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=JVBJLN5HJJS52&lc=US&item_name=jrbudda¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted Donate to jrbudda] | |||
[[Category:Characters]] | [[Category:Characters]] | ||
{{NavBox}} | {{NavBox}} |
Latest revision as of 18:49, 11 October 2021
SENTRY HAS BEEN REPLACED BY Sentinel!
---
SENTRY HAS BEEN REPLACED BY Sentinel!
---
SENTRY HAS BEEN REPLACED BY Sentinel!
---
Old page:
Sentry is a Citizens 2.0 character trait that gives NPCs the ability to:
- Attack specific monsters, players, or groups automatically.
- Kill, and be killed by, players, monsters, and the environment.
- Guard locations, paths, players, or other NPCs.
- Use ranged or melee weapons.
- Be configured with stats such as strength, armor, speed, and night vision.
- Ride mounts!
- Work with Denizen to create NPCs that run scripts upon death.
Dev builds are now at: http://ci.citizensnpcs.co/job/Sentry/
The official source code repo is Github/jrbudda/Sentry though Sentry is currently maintained at Github/mcmonkey4eva/Sentry
DEPRECATION
DEPRECATION NOTICE:
Sentry has been replaced by Sentinel, information here: https://github.com/mcmonkey4eva/Sentinel/blob/master/README.md
Updates
v. 1.8.6 05/25/15 download
v. 1.8.5 download
v. 1.8.4 build 2 download
v. 1.8.4 download
v. 1.8.3 download
v. 1.8.2 build 3 download
v. 1.8.2 build 2 06/13/14 download
v. 1.8.2 03/24/14 download
v. 1.8.1 03/24/14 download
v. 1.8.0 12/10/13 download
v. 1.7.1 11/07/13 download
v. 1.6.1 11/07/13 download
v. 1.5.4 11/07/13 download
v. 1.5.3 9/20/2013 download
v. 1.5.2 8/27/2013 download
v. 1.5.1 8/3/2013 download
v. 1.5 7/29/2013 download
v. 1.4.1 7/9/2013 download
v. 1.4.0.1 7/4/2013 download
v. 1.3.7 7/3/2013 download
v. 1.3.6 5/21/2013 download
v. 1.3.5 5/7/2013 download
v. 1.3.4 5/4/2013 download
v. 1.3.3.3 4/9/2013 download
v. 1.3.3.2 3/21/2013 download
v. 1.3.3.1 3/21/2013 download
v. 1.3.3 3/19/2013 download
v. 1.3.2 3/14/2013 download
v. 1.3.1 1/19/2013 download
v. 1.2.6b 12/22/2012 download
v. 1.2.5 12/20/2012 download
v. 1.2.4 12/9/2012
v. 1.2.3 11/27/2012
v. 1.2.2 11/14/2012
v. 1.2.1 10/29/2012
v. 1.2 10/24/2012
v. 1.1.4 10/15/2012
v. 1.1.3 10/15/2012
v. 1.1.2 10/14/2012
v. 1.1.1 10/12/2012
v. 1.1 10/10/2012 Note that this update adds several new items to the config.yml. These will not be added automatically. See the Configuration page for new items.
v. 1.0.3 10/2/2012
v. 1.0.2 9/28/2012
v. 1.0.1 9/27/2012
v. 1.0 Release! 9/21/2012
v. 0.9.9.2 beta 9/20/2012
v. 0.9.9.1 beta 9/17/2012
v. 0.9.9 beta 9/15/2012
Configuration is here! Sentry now has a config.yml! You can:
See Configuration Once the bugs are worked out of this new stuff. Sentry will be released as 1.0. v. 0.9.7 beta 9/11/2012
v. 0.9.6 beta 9/10/2012
v. 0.9.5 beta 9/8/2012
v. 0.9.4 beta 9/7/2012
v. 0.9.3 beta 9/2/2012
v. 0.9.2.1 beta 9/2/2012
v. 0.9.2 beta 9/2/2012
v. 0.9.1 beta 9/1/2012
v. 0.9.0 beta 8/31/2012
v. 0.8.9 beta 8/28/2012
v. 0.8.8.2 beta 8/27/2012
v. 0.8.8.1 beta 8/23/2012
v. 0.8.8 beta 8/21/2012
v. 0.8.7.1 beta 8/20/2012
v. 0.8.7 beta 8/20/2012
v. 0.8.6 beta 8/20/2012
v. 0.8.5.1 beta 8/19/2012
v. 0.8.5 beta 8/17/2012
v. 0.8.4.1 beta 8/16/2012
v. 0.8.4 beta 8/15/2012
v. 0.8.2 beta 8/15/2012
v. 0.8.0 beta 8/13/2012
v. 0.7.9.2 beta 8/12/2012
v. 0.7.9.1 beta 8/12/2012
v. 0.7.9 beta 8/11/2012
v. 0.7.8.1 beta 8/11/2012
v. 0.7.8 beta 8/10/2012
v. 0.7.7.1 beta 8/10/2012
v. 0.7.6 beta 8/8/2012
v. 0.7.5 beta 8/7/2012
v. 0.7.4.5 beta 8/7/2012
v. 0.7.4 beta 8/6/2012
v. 0.7.2 beta 8/4/2012
v. 0.7.2 beta 8/4/2012
v. 0.7.1 beta 8/3/2012
v. 0.7.0 beta 8/2/2012
v. 0.5.6 beta
v. 0.5.5 beta
v. 0.5 beta
v. 0.3 beta
|
Installation
- Ensure the latest [Citizens2] is installed
- Download file. See top of page
- Place Sentry.jar in your Plugins folder.
- Start Server
Permissions
Configuration
On first load Sentry will make config.yml in plugins/Sentry. This can be used to configure Sentry to your liking. See Configuration
Sentry will only make this file if it cannot find it. So check the page above if anything new has been added.
Commands
To view help:
/sentry help
To reload the config.yml:
/sentry reload
All /sentry commands below normally require a selected NPC. use /npc select # to do this. Alternatively you may use
/sentry # [command]
to send a sentry command to a specified sentry without selecting it. # is the Sentry's npcid.
Example: /sentry 3 add target entity:monster
will add the monsters target to sentry with npcID 3.
Creation
To create a sentry, use:
/npc create NPC Name
- /trait sentry
- or
/npc create NPC Name --trait sentry
To give your sentry a place or path to guard use:
/npc path
And use the Waypoints editor.
To equip you Sentry with weapons and armor see #Equipment
If you would like the Sentry to respawn in a different place from where it was created. Move it using
/npc tphere
And then call
/sentry spawn
Targets
Sentries have 2 lists: Targets and Ignores. These lists contain entities. Entities can be monsters, passive mobs, players, or player groups. Sentries look at all the possible entities they can see in their range, If it NOT on the Ignores list and IS on the Targets list, the Sentry will attack it. An entity cannot be seen if it is out of line-of-sight or if it is too dark for the Sentry's nightvision
- Melee Sentries will chase targets until the target is dead, has gotten out of range, or another valid target has gotten closer.
- Ranged Sentries do not follow targets, but will stay on their spot/path and fire at the target until it is dead, out of projectile* range, or another valid target has gotten closer.
- *Note that projectile range is not the same as range (detection range). Projectiles have a fixed range depending on their type. Archers, for example, have a range of about 50 blocks on flat ground. Elevated sentries can hit targets farther away. Sentries that throw things have shorter range.
To add a target:
/sentry target add [category:type]
To add an ignore:
/sentry ignore add [category:type]
[category:type]
can be any of the following:
entity:all | All living things. (adding this to the Ignore list is the same as leaving the Target list empty.) |
entity:owner | The Sentry's npc Owner. |
entity:TYPE | any mob types of TYPE |
entity:monster | All hostile mobs |
entity:player | All real players. |
player:Name | The player with the name Name |
entity:npc | All NPCs. |
NPC:Name | The NPC named Name. |
group:Name | All members of permissions group Name. NPCs can be added to permission groups. |
team:Name | All members of scoreboard team Name. |
town:Name | All members of Towny town Name |
nation:Name | All members of Towny nation Name |
nationenemies:Name | All members of Towny nations that are declared as enemies of Name or have declared Name as an enemy. Only works as a Target, not as an Ignore. |
faction:Name | All members of Factions factiontag Name |
factionenemies:Name | All members of Factions that are currently enemies of Name. |
warteam:Name | All members of War team Name |
event:PvP | The sentry will attack any players that damage another player in range. |
event:PvE | The sentry will attack any players that damage animals or mobs in range. |
event:PvNPC | The sentry will attack any players that damage any NPC in range. |
event:PvSentry | The sentry will attack any players that damage other Sentries in range. |
Examples: This will make the Sentry attack all players except those in the Admin group
/sentry target add entity:player /sentry ignore add group:Admin
This will make the Sentry attack anything that moves.. except sheep and the player named Bob Johnson.
/sentry target add entity:all /sentry ignore add entity:sheep /sentry ignore add player:Bob Johnson
To remove a target:
/sentry target remove [entity]
To remove a ignore:
/sentry ignore remove [entity]
To view the target list:
/sentry target list
To view the ignore list:
/sentry ignore list
To clear the target list:
/sentry target clear
To clear the ignore list:
/sentry ignore clear
Warn/Greet
Sentries can optionally warn or greet Players that come nearby, letting the Player know if the Sentry is hostile or friendly. This is off by default. To turn it on set the WARNINGRANGE higher than 0. This is the number of blocks beyond the RANGE that the Sentry will look for Players to warn/greet. For example if the RANGE is 10 and the WARNINGRANGE is 5, Players 10-15 blocks away will be alerted to the Sentry's hostility.
The warning and greeting message can be customized for each Sentry.
To set the warning message:
/sentry warning 'New Warning Message'
To set the greeting message:
/sentry greeting 'New Greeting Message'
- <PLAYER> and <NPC> can be used in the message as a placeholder for the Player's name or Sentry's name.
- Setting either message to "" will disable that message.
Guarding
Sentries have guarding 2 modes: Lookout and Bodyguard.
Lookouts
This is the default mode for a new Sentry. Lookouts will stand on a single waypoint or travel between waypoints at the default NPC speed. They will look for and engage any targets.
- If a lookout becomes 'stuck' it will abandon its target and teleport back to its waypoint(s).
- Lookouts should always be given waypoints, otherwise they will simply stop moving when their target dies. use
/npc path
to set one or more waypoints. - Lookouts ignore PvP protection and will deal and receive damage in all cases.
To set the Sentry back to this mode if it has been changed:
/sentry guard
Bodyguards
Bodyguards will guard follow another living entity (their guard target). The guard target can be a player or another NPC. If a bodyguard is set to retaliate}, it will engage anything that attacks either its guard target or itself. It will also actively engage any targets that have been configured.
- Bodyguards will not deal damage to, or receive damage from, their guard target or any other bodyguards guarding that target.
- If a bodyguard becomes stuck it will teleport to its guard target after a few seconds.
- If the guard target is a player, and the player logs out, the bodyguard will remain where it is and will not take damage or engage in combat until the player comes back online and in range.
- Bodyguards will honor any PvP-protection that might be active in the current world or area. (can be changed in the Configuration)
To set a Sentry as a bodyguard for a target NPC or Player:
/sentry guard [Name]
- Notes:
- [Name] is case-sensitive!
- Named mobs must be within range of the NPC when set.
- By default this command checks nearby entities for the specified name and if not found then checks the online player list. If this behavior is undesirable you can use
/sentry guard -p [Name]
to only check the online player list or/sentry guard -l [Name]
to only check entities nearby the sentry.
Stats
Stats are Sentry settings that take a value and affect its performance.
To set a stat use:
/sentry [stat] [value]
Example: /sentry armor 5
To view the current value of a stat and get help:
/sentry [stat]
Example: /sentry range
To view all the Sentry's stats, as well as current target, status, and guard target, use:
/sentry info
Stat | Default Value | Value Range | Notes |
---|---|---|---|
health | 20 | 1-2000000 | The number of hit points the Sentry has. Normal players have 20. |
armor | 0 | 0-2000000 | This value is subtracted from all incoming damage. An armor of 10 makes the Sentry very hard to hurt. Armor items equipped on the Sentry have no effect on combat. |
strength | 1 | 0-2000000 | This is the damage the sentry does with each hit, regardless of weapon (or object) held. |
range | 10 | 1-100 | This is the detection range for the Sentry. High values may affect server performance. This is not the same as the projectile range, which is dictated by projectile type and the Sentry's elevation relative to the target. |
speed | 1.0 | 0.0-1.5 | This is the speed at which a sentry will move while pursuing a target. To set the normal path speed use /npc speed. |
attackrate | 2.0 | 0.0-30.0 | This is the number of seconds between projectile shots and has no effect if the Sentry uses a melee weapon. The minimum internal rate is 0.5 (twice a second). |
healrate | 0.0 | 0.0-300.0 | This is the number of seconds between heals of 1 point, values less than 1.0 are acceptable. Set to 0 to turn off healing. |
nightvision | 16 | 0-16 | This is how well the Sentry can see potential targets in the dark. A value of 16 means the sentry can see perfectly all the time. A value of 12 means a target is invisible below light level 4 (16-12) . A value of 6 means a target is invisible below light level 10 (16-6), etc. If the target is a Player and that player is sneaking, its effective light light level is cut in half, making it harder for the sentry to detect. |
respawn | 10 | -1-2000000 | When the sentry dies, this is the number of seconds after which it will respawn. Set to 0 to prevent normal respawn. Set to -1 and the Sentry will not respawn and be permanently destroyed on death. |
warningrange | 0 | 0-50 | The number of blocks beyond range the Sentry will look for Players to warn or greet. Set to 0 to disable warn/greet. |
follow | 4 | 0-32 | The number of blocks a bodyguard will follow behind its guard target. |
Options
Options are sentry settings that can be toggled on and off and affect its behavior.
/sentry [option]
Example: /sentry invincible
You can also explicitly set an option using true or false
Example: /sentry invincible false
To view all the Sentry's stats, options, current target, status, and guard target, use:
/sentry info
Option | Default Value | Notes |
---|---|---|
drops | False | If this is True the Sentry will drop his equipment and some EXP on death. |
killdrops | True | If this is False any mobs the Sentry kills will not drop items or EXP. |
invincible | False | If this is True the Sentry will not take any damage, be knocked back, or show a 'hurt' flash. |
retaliate | True | If this is True, the Sentry will attack to any living thing that attacks it. If the Sentry is acting as a bodyguard, it will also attack any living thing that attacks its guard target. |
criticals | True | If this is true the Sentry will take critical hits and misses. If False, the normal damage is always applied. |
mount | False | Whether or not the Sentry is mounted. See #Mounts |
targetable | True | Whether or not the Sentry is attacked by nearby hostile mobs. |
Combat
Sentries can engage in rewarding combat with players, monsters, and even each other!
Equipment
Equipment can be added to Sentries using the Citizens /npc equip
editor. or the /sentry equip [item|none]
command. What's the difference?
- /npc equip
- Can only be used by in-game players
- Takes items from the player and gives it to the NPC
- Drops all items when removed
- /sentry equip [item|none]
- Can be used from the console/scripts
- Does not require the item
- Does not drop anything on removal.
The choice is yours which you use/allow.
By default, equipped armor is just cosmetic. armor determines the damage reduction from attacks. Armor buffs can be configured for specific types of armor in the Configuration.
The item a Sentry holds in its hand determines its attack type, but the amount of damage the Sentry does is determined by its strength Strength buffs for specific weapon types can be set in Configuration. By default no weapons add strength.
The following items are usable by Sentries (these can be changed in the Configuration):
Default Item | Type | Notes |
---|---|---|
BOW | Archer | The 14th Archer Brigade ("Hawkeyes") of SentryCorps wield long bows and razor arrows. They can hit a chicken square in the nuggets from 50 meters on flat ground. |
REDSTONE_TORCH_ON | Pyromancer I | The entry-level members of the 27th Pyromancer Brigade shoot small, non-incendiary fireballs from their wands. |
TORCH | Pyromancer II | The elite of the Flaming 27th, these wizards shoot fireballs that set the land on fire. |
BLAZE_ROD | Pyromancer III | Spoken of in only hushed whispers, this little-known squad of the 27th has learned to fire large, explosive fireballs. That's a nice everything you have there. |
SNOW_BALL | Ice Magi | The frosty brethren of the 88th Ice Magi Brigade ("Snowmen") throw snowballs which slow enemies on contract. Snowballs have a range of about 25 blocks on flat ground. |
EGG | Bombardiers | The 3rd Brigade of Ovarian Bombardiers gets few recruits. Perhaps its the giant chicken suits they have to wear. Eggs have a range of about 25 blocks on flat ground. |
POTION | Witch Doctor | When not drunk on their own noxious brews, the 9th Witch Doctor Brigade can turn the tide of battle with a single potion. Potions have a range of about 25 blocks on flat ground. The Sentry will throw a splash version of whatever potion type it is equipped with. |
PAPER | Stormcaller I | The magic incantation written on their scrolls allows members of the 99th Stormcallers to strike single targets with bolts of electricity. |
BOOK | Stormcaller II | The elite of the 99th can call forth powerful lightning from the sky to smite multiple foes using tomes of untold power. This lightning's damage is atmospheric and therefore is not affected by the Sentry's strength. |
BOOK_AND_QUILL | Stormcaller III | Few dare call upon the services of the 3rd-tier Stormcaller. Their mighty bolts instantly kill any living thing they touch regardless of health, armor, or play mode; Griefers beware! |
ENDER_PEARL | Warlock I | The lowest tier of the 667th Warlocks. These sorcerers imbue their magic crystals with the kinetic power of the endermen, flinging their targets high into the air. Remember: it's not the fall that kills you, it's the sudden stop at the end. |
SKULL_ITEM | Warlock II | The mid-range warlock shoots black explosive wither skulls at the enemy. |
Anything else | Brawler | All armies need their meat-shields. the 1st Battalion is SentryCorps'. Armed with swords, axes, picks, shovels, rocks, bricks, or even fish, the brawlers take the fight to the enemy, hand to hand, using whatever they can find. |
Dealing Damage
The damage dealt by a Sentry when attacking a target is equal to the sentry's strength.
Typically players have 20 health. By default a Sentry has 1 strength and therefore does 1 damage.
Receiving Damage
Sentries can receive damage from any source, just like a monster. If the Sentry is set to retaliate, it will target any living entity that attacks it, ignoring any current target.
If the Sentry is set to invincible, it takes NO damage or knockback at all!
If the Sentry has criticals turned on, any incoming damage is randomized resulting in a normal hit, a miss, or one of several degrees of critical hit. If the attacker is a player, a message is shown based on the type of hit.
If the Sentry has armor > 0 the damage will be reduced by the amount of armor. If the damage is reduced to nothing, the attack results in a block. Blocked hits cause no damage but DO cause knockback!
Death
If the Sentry's health drops to 0. It dies.
If the Sentry is set to drops on death, when it dies it drops its equipment like a normal monster. Watch out for farmers!
After the respawn delay (default is 10 seconds) the Sentry will respawn. If therespawn is set to 0, the Sentry must be re spawned manually.
Lookouts will respawn at their spawn location, by default this is where they were created. This can be changed with /sentry spawn
Bodyguards will respawn near their guard target.
Mounts
Sentries can be mounted and also used as mounts.
Mounted Sentries
To make a Sentry mounted use the command /sentry mount. This command creates a new, permanant horse-type NPC for the sentry to ride. This NPC can be edited in any way you see fit.
- The mount is a horse by default but can be changed to any mob type with the /npc type command.
- While attacking, mounted Sentries move at double the rider's speed stat. (/sentry speed)
- While patrolling or following, mounted Sentries move at double the rider's /npc speed
- To make a Mounted Sentry patrol give waypoints to the mount
- The mount can be be killed and the sentry will continue on foot, however if the Sentry is killed while mounted the mount also dies.
- Mounts respawn with their Sentry.
Sentries as mounts
- To use a Horse-Sentry as a player's mount it must be that player's bodyguard. (/sentry guard player)
- Horse sentries can be ridden normally, but if given targets they may ignore your input and attack on their own.
Advanced Usage
For combining Sentry and Denizen for truly powerful interactions see Sentry And Denizen
Known Issues
- The Modifyworld plugin that comes with PEX is known to cause '0 damage' issues and prevent sentry mounting.
- Turning PvP off in the server.config will prevent attacking NPCs. This is also true for pvp settings in MultiVerse.
- Heroes does all kinds of funny things to player-type Sentries.
- Using commands on a Sentry NPC while it is dead may cause errors. (/npc spawn is safe)
- Putting a saddle on a Sentry's mount will make it stop moving.
Planned Additions
- Match weapon and armor buffs to item/data/enchantment instead of just item (for all you spout people)
Suggestions
Suggestions are, of course, always welcome!
Quick Navigation | |
---|---|
Usage | Installation · Frequently Asked Questions · Commands · Editors · Characters · API · |
Configuration | Configuration · Text Syntax · Permissions · Waypoints · Data Storage |