Okay so soon after adding hunter i added the npc who will handle the hunter shop and buying the cape, and doing this will be through the use of a dialogue like so:
But the problem is when I click on either of the options, nothing happens although I've already added them to the clickingButton.java.
My code is as follows:
ActionHandler.java
Code:
case 5113:
c.getDH().sendDialogues(30, i);
break;
DialogueHandler.java
Code:
/*
* Hunting Expert
*/
case 30:
sendNpcChat4("Hello there, "+ c.playerName +".",
"I am the Hunting Expert of Serenity, upon achieving 99",
"hunter I became an expert at hunting. Now,",
"what would you like to do?", c.talkingNpc, "Serenity Hunter Expert");
c.nextChat = 31;
break;
case 31:
sendOption2("Open Hunter Shop",
"Purchase Hunter Skillcape. @bla@(@369@99k@bla@)");
c.dialogueAction = 66;
break;
case 32:
sendNpcChat4("You either do not have the funds for the cape,",
"or you do not have the correct level.",
"Please come back when you do.",
"(You need @369@99k gold, and 99 hunter", c.talkingNpc, "Serenity Hunter Expert");
break;
And now ClickingButtons.java; case 9158(second option)
Code:
case 9158:
if (c.dialogueAction == 8) {
c.getPA().fixAllBarrows();
} else {
c.dialogueAction = 0;
c.getPA().removeAllWindows();
if (c.dialogueAction == 66) {
if(c.getItems().playerHasItem(995, 99000) && c.getPA().getXPForLevel(22) >= 1303436) {
c.getItems().deleteItem(995, 99000);
c.getItems().addItem(9949, 1);
c.getItems().addItem(9950, 1);
} else {
c.getDH().sendDialogues(32);
}
}
}
break;
ClickingButtons.java; case 9157(First Option)
Code:
if (c.dialogueAction == 66) {
c.getShops().openShop(9);
}
c.dialogueAction = 0;
c.getPA().removeAllWindows();
break;;
Can someone point out where I'm messing up in doing so? Oh and how would I make it so it checks for any other 99's when buying the skillcape?