Aller au contenu

Sentry

De Nefald Wiki
Version datée du 15 mai 2015 à 09:18 par Hiob (discussion | contributions)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)


Sentry
Sentry
Plugin
Catégorie NPC [edit]
Développeur(s) jrbudda
Bukkit sentry-citizens2
Nefald
Status installé [edit]
Grade requis Intendant
Article
Dernière révision 15/05/2015


Sentry

Sentry fonctionnant avec Citizens2, nous permet de disposer des gardes entièrement configurables.

Caractéristiques

Avec Sentry vos PNJs peuvent
  • Attaquer des monstres, des joueurs, et des groupes automatiquement.
  • Tuer et être tué par des joueurs, des monstres et l'environnement.
  • Garder des lieux, chemins, joueurs et d'autres PNJs.
  • Utiliser des armes de mêlées et de distance. Tirer des flèches, fireballs, snowballs, œufs, éclairs, potions et ce avec plus ou moins d'efficacité létale!
  • Être configurés selon plusieurs capacités telle la Force, la Santé, l'Armure, la Vitesse, le Champs d'action et la Vision de nuit.
  • Chevaucher des montures!
Aussi Sentry
  • supporte nativement Factions, Towny, War et SimpleClans.
  • et peut fonctionner avec Denizen de sorte à ce que les PNJs deviennent des Bosses ou Quêteurs, via des scripts.

Commandes & permissions

Commandes

Voir l'aide de Sentry
  • /sentry help
Relancer le fichier de configuration config.yml
  • /sentry reload

Toutes les commandes de Sentry ci-dessous requiert la sélection d'un PNJ, utilisez /npc select # pour ce faire.

Vous pouvez alternativement utiliser /sentry # [commande] pour envoyer une commande Sentry à un sentry en particulier sans le sélectionner, le caractère # correspondant à l'ID du sentry.
Exemple
/sentry 3 add target entity:monster ajoutera comme cible les monstres au sentry avec l'ID 3.

Permissions

Par défaut, seuls les OPs ont accès aux commandes de Sentry
nœud principale permissions fille
sentry.*
  • sentry.spawn
  • sentry.guard
  • sentry.equip
  • sentry.info
  • sentry.warning
  • sentry.greeting
  • sentry.target
  • sentry.ignore
sentry.stats.*
  • sentry.stats.strength
  • sentry.stats.armor
  • sentry.stats.speed
  • sentry.stats.nightvision
  • sentry.stats.respawn
  • sentry.stats.health
  • sentry.stats.attackrate
  • sentry.stats.healrate
  • sentry.stats.range
  • sentry.stats.warningrange
sentry.options.*
  • sentry.options.invincible
  • sentry.options.retaliate
  • sentry.options.drops
  • sentry.options.killdrops
  • sentry.options.criticals
  • sentry.options.friendlyfire


Configuration

Lors du premier lancement de Sentry, un fichier de configuration config.yml sera créé dans le répertoire plugins/Sentry. Il vous permettra de configurer Sentry comme bon vous semble.

Après chaque modification, utilisez la commande /sentry reload pour les appliquer.


Note
Tous les items peuvent être indiqués soit par leur nom, soit par leur id.

<syntaxhighlight lang="yaml">

  1. Sentry configuration
  1. Server-wide options for Sentry

Server:

#If true Sentries will die like normal mobs, instead of being despawned. Player-type Sentry deaths will be announced in chat.
DieLikePlayers: false
#The amount of EXP sentries drop. Only works if Drops is turned on.
ExpValue: 5
#This is how often, in ticks, the Sentry performs his interal logic looking for targets, etc. Increasing this value may lighten server load, 
#but will decrease Sentries responsiveness and maximum rate of fire.
LogicTicks: 10
#Whether or not Sentries in bodyguard mode always deal damage regardless of other protection plugins.
BodyguardsObeyProtection: true
#Whether or not Sentries are immune to damage from entites on their ignore list. Immunity to damage also prevents retaliation.
IgnoreListInvincibility: true

  1. Default stats for new Sentries

DefaultStats:

Strength: 1
Armor: 0
Speed: 1.0
Health: 20
AttackRate: 2.0
HealRate: 0.0
NightVision: 16
Range: 10
WarningRange: 0
Respawn: 10
FollowDistance: 4

  1. Default options for new Sentries

DefaultOptions:

Drops: false
KillDrops: true
Criticals: true
Invincible: false
Retaliate: true
FriendlyFire: false

  1. Default texts for new Sentries. You can use <NPC> and <PLAYER> as placeholders.

DefaultTexts:

Warning: "&c<NPC> says Halt! Come no closer!"
Greeting: "&a<NPC> says Welcome, <PLAYER>"

  1. Default target list for new Sentries.

DefaultTargets:

#- "entity:monster"


  1. Default ignore list for new Sentries

DefaultIgnores:

#- "entity:owner"


  1. Configurable messages used by all Sentries. You can use <NPC>, <PLAYER>, <ITEM>, and <AMOUNT> as placeholders. Remove a message or set it to "" to prevent it from displaying at all.

GlobalTexts:

Miss: "&7*** You MISS <NPC>."
Hit: "&f*** You hit <NPC> for <AMOUNT> damage."
Crit1: "&e*** You injure <NPC> for <AMOUNT> damage."
Crit2: "&6*** You MAIM <NPC> with your <ITEM> for <AMOUNT> damage."
Crit3: "&c*** You DISEMBOWEL <NPC> with your <ITEM> for <AMOUNT> damage."
Block: "&7*** You fail to penetrate <NPC>'s armor."
Glance: "&7*** Your blow glances off <NPC> for <AMOUNT> damage."

  1. These are the percentage chancees of doing a certain damage to a Sentry if Criticals is turned on. Whole numbers only. Remove or Set to 0 to disable a hit type.

HitChances:

Miss: 4
Glance: 4
Crit1: 6
Crit2: 4
Crit3: 2

  1. Set the item used by each type of Sentry. Use item name or id #.
  2. Remove an entry to disable that attack type. Any other item makes a Brawler.

AttackTypes:

Archer: BOW
Pyro1: REDSTONE_TORCH_ON
Pyro2: TORCH
Pyro3: BLAZE_ROD
Bombardier: EGG
IceMagi: SNOW_BALL
StormCaller1: PAPER
StormCaller2: BOOK
StormCaller3: BOOK_AND_QUILL
#Note Witch Doctors need a potion equipped to know what to throw!
WitchDoctor: POTION
Warlock1: ENDER_PEARL
Warlock2: SKULL_ITEM
  1. The following items will ADD to the sentry's base armor.
  2. Decimals are allowed but all minecraft damge is in integers.
  3. You would need 2 items of 0.3 Armor buff to add 1 point of armor.

ArmorBuffs:

#- IRON_HELMET 1.0
#- DIAMOND_CHESTPLATE 4.0

  1. The following items will ADD to the sentry's base strength.

StrengthBuffs:

#- IRON_SWORD 1
#- TORCH 5
  1. The following items will ADD to the sentry's base speed.

SpeedBuffs:

#- LEATHER_BOOTS 0.2
#- IRON_BOOTS -0.1
  1. Apply potion effects on hit for various weapon types. Multiple effects allowed.
  2. Use format: [item name/id] [potion name/id:duration in ticks:level] There are 20 ticks in a second.
  3. Duration and Level are optional, default duration is 20, level is 1.
  4. Valid potion names:
  5. speed, slow, fast_digging, slow_digging, increase_damage, heal, harm, jump, confusion,
  6. regeneration, damage_resistance, fire_resistance, water_breating, blindness, hunger, weakness, poison

WeaponEffects:

- SNOW_BALL slow:20
#- GOLD_SWORD poison:60:2 confusion


 
  1. The lists below control what items are equipped as armor. These should only be changed to disable specific armors or add extended (i.e. Spout) items.
  1. The following items will be equipped as helmets, can use name or id #

Helmets:

  - PUMPKIN
  - JACK_O_LANTERN
  - LEATHER_HELMET
  - CHAINMAIL_HELMET
  - GOLD_HELMET
  - IRON_HELMET
  - DIAMOND_HELMET
  
  1. The following items will be equipped as chestplates, can use name or id #.

Chestplates:

   - LEATHER_CHESTPLATE
   - CHAINMAIL_CHESTPLATE
   - GOLD_CHESTPLATE
   - IRON_CHESTPLATE
   - DIAMOND_CHESTPLATE
 
  1. The following items will be equipped as leggings, can use name or id #

Leggings:

   - LEATHER_LEGGINGS
   - CHAINMAIL_LEGGINGS
   - GOLD_LEGGINGS
   - IRON_LEGGINGS
   - DIAMOND_LEGGINGS
   
  1. The following items will be equipped as boots, can use name or id #

Boots:

   - LEATHER_BOOTS
   - CHAINMAIL_BOOTS
   - GOLD_BOOTS
   - IRON_BOOTS
   - DIAMOND_BOOTS
   
   

</syntaxhighlight>


Annexes