jrbudda / Sentry

Citizens2 Town Sentry Character
12 stars 20 forks source link

NPCs Will Not Attack #153

Closed RFSMassacre closed 11 years ago

RFSMassacre commented 11 years ago

I've been trying to get NPCs to attack players upon seeing them and I added "entity:player" to the target list like it's supposed to but it just won't attack players unless attacked first. I even tried by having "entity:all" but it continued to do the same thing. The only time they attack something first is if it's a mob. Is there anything I could do to fix this?

jrbudda commented 11 years ago

entity:player is working normally for me, is there anything on that Sentries ignore list? What version of Sentry/Craftbukkit are you using?

RFSMassacre commented 11 years ago

I'm using the latest version of Craftbukkit, Sentry, and Citizens. Even when I updated them to the latest version the NPCs still don't attack. The sentries don't have anything on the ignore list. I only have one sentry with "entity:player" for target, and "entity:mob" for ignore but it only attacks mobs first. You'd have to hit him for him to fight.

jrbudda commented 11 years ago

hmm that's a head scratcher. I'm using the same as you. I do: /npc create Guard --trait sentry /sentry target add entity:player and he immediately starts attacking me. Only thing I can think of is maybe some weird plugin conflict?

RFSMassacre commented 11 years ago

Here's what I have installed:

HorseCraftables, Referrals, WorldEdit, NoCheatPlus, PluginManager, AntiXRay, mcore, CVault, AutoSaver, PEX, LoginSecurity, Votifier, SleepVote, MobArena, GAListerner, Essentials, Factions, UltimateArena, LiveChat, EssentialsSpawn, CustomSpawners, Citizens, Sentry, and mcMMO.

Is there a known plugin conflict with Citizens+Sentry with any of these plugins?

jrbudda commented 11 years ago

Not a known conflict, but just for grins can you try starting up with only Citizens and Sentry and see if it still does it?

RFSMassacre commented 11 years ago

I've removed all plugins and ran nothing but Citizens+Sentry and the problem is still there. It works for a good ten minutes but then they stop warning and stop attacking after that and ignore you until you hit them. I use them for bosses in the dungeons on my server and I really need the sentries to be hostile as soon as you get near them.

Is there anything else I can do?

RFSMassacre commented 11 years ago

I also made sure that the new pathfinder was set to false since I know it causes problems for most people, but the sentries still do not attack players.

jrbudda commented 11 years ago

so they work normally for 10 minutes?

RFSMassacre commented 11 years ago

Yeah, it only works normally for the first ten minutes of enabling Citizens and Sentry, but then the NPCs stop attacking.

jrbudda commented 11 years ago

Well that thickens the plot quite a bit.... I have no idea. can you pastebin me your citizens saves.yml? I'll try to duplicate your sentries more exactly.

RFSMassacre commented 11 years ago

Here's the saves file for Citizens.

http://pastebin.com/KNZivLxv

I also want to thank you for taking the time to help me out. The players on my server love the plugin and the ability to fight more than just the two original bosses.

OokamiNex commented 11 years ago

I'm having the same issue more or less, Only thing I'm running is citizens and Sentry. They won't attack unless they're attacked first. can't even get them to attack mobs. Gives me Errors as soon as I use /trait sentry, but gives the NPC the trait anyways.

OokamiNex commented 11 years ago

Java.Lang.NoSuchMethodError: net.citizensnpcs.api.npc.NPC.teleport(Lorg/bukkit/Location;Lorg/bukkit/event/player/PlayerTeleportEvent$TeleportCause;)V is what I get

RFSMassacre commented 11 years ago

Have you given them the target to attack players? To do that you make them a sentry then run the command:

/sentry target add entity:player

This will make them attack players right away, however my problem is that they don't attack them even with the target set.

jrbudda commented 11 years ago

update citizens.

OokamiNex commented 11 years ago

The problem seems to be with citizens. when downloading it, go to latest stable mod, my partner went with the latest build, which isn't on the top of the screen. it's two down from the one I think everyones downloading. Thank you for your time jrBudda and RFS. cheers

vfhnbhjvhggh commented 11 years ago

I am having the same issues as well - could you please give a link from where to download the build? Thanks (:

@OokamiNex

jrbudda commented 11 years ago

http://ci.citizensnpcs.com/job/Citizens2/

vfhnbhjvhggh commented 11 years ago

Okay so I checked to see if this was a plugin compatibility issue; it seems that SpoutPlugin affects npc's quite a lot! I'm not sure if this is citizens or sentry.

once i removed Spout everything was working... for a few minutes... I had downloaded the new files and replaced the old... sigh