Thread: [Hyperion] NPC Force Chat troubles

Results 1 to 3 of 3
  1. #1 [Hyperion] NPC Force Chat troubles 
    Banned
    Join Date
    Sep 2012
    Posts
    55
    Thanks given
    3
    Thanks received
    9
    Rep Power
    0
    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.
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Mar 2011
    Posts
    4,062
    Thanks given
    194
    Thanks received
    689
    Rep Power
    0
    Check if the npcupdatetask is updating force chat blocks
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Banned
    Join Date
    Sep 2012
    Posts
    55
    Thanks given
    3
    Thanks received
    9
    Rep Power
    0
    That happened to be what I needed. thank you.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. force chat pi
    By youer3455 in forum Help
    Replies: 18
    Last Post: 10-12-2012, 12:06 AM
  2. Force Chat
    By pzezima2 in forum Help
    Replies: 4
    Last Post: 07-05-2012, 11:23 AM
  3. force chat
    By Romania Clan in forum Help
    Replies: 7
    Last Post: 04-15-2012, 09:28 AM
  4. 5$ PI npc force chat
    By Chris SS in forum Requests
    Replies: 9
    Last Post: 10-31-2010, 01:34 AM
  5. Npc Force Chat
    By X tee in forum Help
    Replies: 1
    Last Post: 10-11-2010, 08:18 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •