Hello, I'm looking to have my barrow's perfect and I just can't do that without them shouting "You dare disturb my rest!" upon spawning. For some reason which I am failing to figure out, when I apply this code
Code:
npc.setForceChat("You dare disturb my rest!");
npc.forceChat(npc.getForcedChatMessage());
in the following void
Code:
private void summonBrother(int npcId) {
NPC npc = new NPC(NPCDefinition.forId(npcId), Location.create(
getLocation(npcId).getX(), getLocation(npcId).getY(),
getLocation(npcId).getZ()), getLocation(npcId),
getLocation(npcId), 6);
World.getWorld().register(npc);
player.getActionSender().sendHintArrow(npc, 0, 1);
npc.face(player.getFaceLocation());
npc.setForceChat("You dare disturb my rest!");
npc.forceChat(npc.getForcedChatMessage());
}
nothing happens.. which doesn't make a lot of sense to me. The same code applied to a Player entity works perfectly.
Any information/suggestions is beneficial, thanks for your time.