Originally Posted by
Shady
Well I use to know this, but I stopped coding for a while so I forgot how to code the most basic stuff, but if someone could tell me I would appreciate it.
And before someone tells me to "Use the search button" I've done that, and got no luck.
Base: Exion's PI Server.
(Will Rep if you can help)
Alright ill helpout K so, first you want too open up your dialougehandler.java
Next you need to add a case for your dialouge
Heres a example of mine:
Code:
case 83:
sendOption2("Ancient Prayers", "Normal Prayers");
c.dialogueAction = 62;
break;
Next you would go into actionhandler.java under Public void firstClickNpc
And add a similar code to this
Code:
case 4342:
c.getDH().sendDialogues(83, npcType);
break;
4342 being the npc id and 83 being the dialouge case from before
so you would click it and it would send those options, mine is setup for ancient prayers but here is how it would look now go into clickbuttons.java and search for
case 9158:
under it add
Code:
} else if (c.dialogueAction == 62) {
c.pcPoints = 0;
c.setSidebarInterface(5, 5608);
c.startAnimation(645);
c.sendMessage("You Feel your ancient prayers drawn from you.");
c.getCurse().resetCurse();
c.getCombat().resetPrayers();
62 being the dialogue action from the code in dialougehandler.Mine is setup for ancient prayers so, you would need too delete all the stuff from pcpoints too c.getcombat and add
c.getPA().startTeleport2(2524, 3587, 0);
you should know what too do with that now, and if you need the id of the other option click it and it will tell you the action id in your cmd, then search that in clickingbuttons and add something similer to the above.