I already have the Npc setup to open the Interface but i can't get the buttons to tele you when you click. I've never done these before help appreciated.
My Codes:
DialogueHandler.java
Code:
case 24:
sendOption4("Fight Pits", "Duel Arena", "Pest Control","Barrows");
c.dialogueAction = 15;
break;
Clicking Buttons.java: I don't know what cases i should be using i tried to use the ones when i right click on the different names
Code:
case 2482:
if (c.dialogueAction == 15) { //fight pits
c.getPA().startTeleport(2395, 5154, 0, "modern");
}
break;
case 2483:
if (c.dialogueAction == 15) { //duel arena
c.getPA().startTeleport(3360, 3213, 0, "modern");
}
break;
case 2484:
if (c.dialogueAction == 15) { //pest control
c.getPA().startTeleport(2658, 2649, 0, "modern");
}
break;
case 2485:
if (c.dialogueAction == 15) { //barrows
c.getPA().startTeleport(3564, 3288, 0, "modern");
}
break;