Thread: Dialogue not showing up for NPC

Results 1 to 2 of 2
  1. #1 Dialogue not showing up for NPC 
    Registered Member
    Join Date
    Apr 2016
    Posts
    194
    Thanks given
    25
    Thanks received
    3
    Rep Power
    63
    Hey guys, I was adding another quest and for some reason the dialogue is glitching out.
    It acts like its going to bring up the dialogue then goes away.

    In actionhandler.java under firstclickNPC I have:
    Code:
    case 1143:
    			int[][] dialogueData = {{0,9000},{1,9034},{2,9030},{3,9034}};
    			for(int[] dialogue: dialogueData)
    			if(c.troubledKing == dialogue[0])
    			c.getDH().sendDialogues(dialogue[1],i);
    			break;
    In player.java I have declared the int:
    Code:
    public int troubledKing = 1;
    Here is my dialogue for good measure:
    Code:
    case 9000:
    			sendNpcChat("Oh my, what am I to do... he just won't stop", c.talkingNpc, "King Lathas");
    			c.nextChat = 9001; 
    		break;
    		case 9001:
    			sendPlayerChat1("Who won't stop what...?");
    			c.nextChat = 9002; 
    		break;
    		case 9002:
    			sendNpcChat2("You, you seem like a strong warrior.", "Can you help me with something?", c.talkingNpc, "King Lathas");
    			c.nextChat = 9003; 
    			break;
    			case 9003:
    			sendPlayerChat1("What is it you need help with, I'm a pretty busy person. ");
    			c.nextChat = 9004; 
    			break;
    			case 9004:
    			sendNpcChat3("Their is a notorious villian", "threatening to attack and seize my kingdom.", "He goes by the name of Salarin the Twisted.", c.talkingNpc, "King Lathas");
    			c.nextChat = 9005; 
    			break;
    			case 9005:
    			sendPlayerChat1("Really? And you think I can take him on?");
    			c.nextChat = 9006; 
    			break;
    			case 9006:
    			sendNpcChat3("If you don't, then no one will!", "Please, help me, I will reward you with something!",  "Can you help me?", c.talkingNpc, "King Lathas");
    			c.nextChat = 9007; 
    			break;
    			case 9007:
    			sendOption2("Alright, I guess I could help you...", "No sorry, I'm too busy.");
    			c.dialogueAction = 300;
    		break;
    			case 9008:
    				sendNpcChat2("Thank you so much!", "Salarin has been seen near the sawmill.", c.talkingNpc, "King Lathas");
    				c.nextChat = 9009;
    				break;
    			case 9009:
    				sendNpcChat("Good Luck brave warrior.", c.talkingNpc, "King Lathas");
    				c.getPA().removeAllWindows();
    				c.nextChat = 0;
    				break;
    			case 9030:
    				sendNpcChat("So, how did it go?", c.talkingNpc, "King Lathas");
    				c.nextChat = 9031;
    						break;
    				case 9031:
    					sendPlayerChat1("I did it! I killed Salarin!");
    					c.nextChat = 9032;
    					break;
    				case 9032:
    					sendNpcChat2("Oh my! Thank you so much!", "Take this as your reward", c.talkingNpc, "King Lathas");
    					c.troubledKing = 3;
    					c.nextChat = 9035;
    					break;
    				case 9033:
    					sendNpcChat("How is your quest going adventurer?", c.talkingNpc, "King Lathas");
    					c.nextChat = 9034;
    					break;
    				case 9034:
    					sendPlayerChat1("I'm still looking sir.");
    					c.getPA().removeAllWindows();
    					c.nextChat = 0;
    					break;
    				case 9035:
    					sendNpcChat2("Oh my! Thank you so much!", "Take this as your reward", c.talkingNpc, "King Lathas");
    					c.troubledKing = 3;
    					c.sendMessage("@red@You have recieved 500k Slayer and 500k Prayer Experience!");
    					c.sendMessage("@red@You have also received access to the Blurite Dungeon!");
    					c.getPA().addSkillXP(500000, 5);
    					c.getPA().addSkillXP(500000, 18);
    					TroubledKing.showInformation1(c);
    					c.getPA().removeAllWindows();
    					c.nextChat = 0;
    					break;
    bumppppp

    bump
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Aug 2017
    Posts
    85
    Thanks given
    1
    Thanks received
    6
    Rep Power
    28
    Code:
    int[][] dialogueData = {{0,9000},{1,9034},{2,9030},{3,9034}};
    			for(int[] dialogue: dialogueData) {
    			if(c.troubledKing == dialogue[0]) {
    
    			c.getDH().sendDialogues(dialogue[1]);
    break;
    } 
    }
    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. Replies: 0
    Last Post: 05-17-2016, 12:37 AM
  2. Dialogue only shows up for 1 millisecond
    By Aspectral in forum Help
    Replies: 6
    Last Post: 07-16-2014, 02:55 PM
  3. Crown for owners not showing up?
    By Peach in forum Help
    Replies: 3
    Last Post: 03-25-2011, 07:17 PM
  4. NPC Chatheads Not Showing Up
    By Zammynub in forum Help
    Replies: 1
    Last Post: 03-03-2011, 11:35 AM
  5. Replies: 0
    Last Post: 08-02-2009, 04:35 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •