Sentry for Citizens2
![]() | ![]() |
---|
Sentry is a character plugin for the NPC plugin Citizens2. With Sentry, NPC's can be set to guard areas or act as bodyguards. Hostile targeting, retaliation, and a variety of options and stats allow a Sentry NPC to be customized to almost any guarding or combat situation.
Features
Sentries Can:
- Attack monsters, players, and groups automatically. Sentry also has built-in support for Factions, Towny, War and SimpleClans
- Kill, and be killed by, players, monsters, and the environment.
- Guard locations, paths, players, or other NPCs.
- Use ranged or melee weapons. Shoot arrows, fireballs, snowballs, eggs, lightning, and potions with deadly accuracy.
- Be configured with stats such as Strength, Health, Armor, Speed, Range and even Night Vision!
- Ride mounts!
- Work with Denizen to become Bosses and Quest NPCs that run scripts upon death.
Installation
- Install Citizens2 You must use the correct version for your version of Bukkit
- Download the correct Sentry from the Citizens Wiki. You must use the correct version for your version of Bukkit
- Place Sentry.jar in your minecraft /plugins/ directory. Start your server.
- Create a NPC with Citizens and give it the 'sentry' trait.
/npc create Town Guard --trait sentry
- Customize your Sentry's stats and options and you're ready to go.
A full list of commands and options is available on the Citizens 2 Wiki
Configuration
Sentry makes a config.yml in the plugins/Sentry folder on first load. Use this to tailor Sentry to your server. You can:
- Set defaults for new sentries
- Change or disable the item used for various attack types
- Add potion effects like slow or blindness to certain Sentry weapons.
- Add armor, strength and speed buffs to armor and weapons for Sentries.
- Set critical hit chances and messages.
The config.yml is commented with instructions.
Once the count of sentries passes 4 (5 and up) the plugin seems to generate exemptions for me...
Drops aren't seeming to be working.
@kaitosho101
If you 'deal 0 damage' that is a conflict with Modifyworld, you will have to remove or disable it.
i cant deal damage
@AsoRed
Ohhh... nevermind. I looked and saw the problem right away.. apparently that's been broken since 0.9.9.1 and no one told me :(
Should be fixed in 1.0.2, available on the wiki page, should be up here soon.
@AsoRed
Do you get the 'Sentry has successfully registered with Towny' message on server startup?
I don't use Towny myself so maybe they have changed something.
I've been trying to set the target and ignore on town settings "/sentry target add town:test" and nothing happens. The same goes for the ignore. I have the latest of Citizens, Towny, and Sentry. All I get is confirmation that the target was added but the NPC doesn't act as it should.
@TheAxer
Your citizens2 is out of date.
I have the same issue as BAconlord2 Here's the log http://pastebin.com/cwJpH18n
@Baconlord2
Post the error (use pastebin)
I have had an issue in which combat with player vs. NPC causes the server to completely crash. It seems like it happens mostly with melee combat. I can give crash report if you need it. It happens 100% of the time when combat lasts more than a couple seconds. I suspect that it is something to do with spout but i wasn't sure if anyone else had this issue...
The conflict would come on my server "Heroes" is to know what is on your side or their I gotta see if the problem is solvable?
It should be against those who have residence or multiverse core well put pvp authorized
In any case thank you for your comments :)
@jajamic
I cannot fix this. You will have to remove Modifyworld.
Ok but I did not on the server. But I counted against Correct you put this conflict soon? Here is the sentence spoken by the NPC when I throw a potion (when I hit the hands they do not post): you hit for 0 damage Novusek
@jajamic
If you get the message 'You deal 0 damage' this is due to a conflict with the plugin Modifyworld.
I have a problem my sentinel does not damage and do not suffer, it must be attacked and killed only by the players here is the config:
location:
world: map/Easy-Craft
x: '-161.41052531853126'
y: '66.0'
z: '-381.5957817493727'
yaw: '-440.73638916015625'
pitch: '0.0'
equipment:
hand:
id: ENDER_PEARL
amount: 1
data: 0
mdata: 0
sentry:
toggled: true
Retaliate: false
Invincinble: false
DropInventory: false
CriticalHits: true
Targets:
- ENTITY:PLAYER
- EVENT:PVP
Ignores:
- ENTITY:MONSTER
Spawn:
x: '-161.30771956751195'
y: '66.0'
z: '-381.59252824873846'
world: map/Easy-Craft
yaw: '-269.54901123046875'
pitch: '4.200011730194092'
Health: 20
Range: 8
RespawnDelay: 3600
Speed: '1.0'
Weight: '1.0'
HealRate: '0.0'
Armor: 0
Strength: 10
WarningRange: 0
AttackRate: '2.0'
FriendlyFire: true
NightVision: 16
Warning: Ma reine Istris je vous vangerais ! Ces chiens mourront !
Greeting: Istris... je vous rejoind...
owner: jajamic
You will have to use Citizens build 375 until Sentry is updated
@minecraftperson
Should be fixed in v1.0
@minecraftperson
Nothing, its a bug at the moment.
i created a sentry to guard me, gave him armor and a weapon, he follows me around but when he hits something he loses his weapon and armor. what did i do wrong?