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