whyandCode:&& c.playerRights >=3) {?Code:&& c.playerRights <=3) {
|
Need to add an NPC so when you click on it, It will show the interfact of text and itll say this
Here are my commands to turn curses on for you can see what the prayerbook codes areCode:Turn Curses On Turn Curses Off Cancel
Code:if(playerCommand.equalsIgnoreCase("Curseson") && c.playerRights >=3) { c.prayerBook = 1; c.setSidebarInterface(5, 22500); c.getCombat().resetPrayers(); c.sendMessage("You change to Ancient Curses."); } if(playerCommand.equalsIgnoreCase("Cursesoff") && c.playerRights <=3) { c.prayerBook = 0; c.setSidebarInterface(5, 5608); c.getCombat().resetPrayers(); c.sendMessage("You change back to normal prayers."); }
uhm this is pretty simple lol.
in DialogueHandler.java
and under that add this:Code:sendOption2("Curses on", "Curses off", c.talkingNpc, "NPCNAMEHERE");
then goto actionhandler and in firstclickNPC addCode:c.dialogueAction = 500;
change the ## to the dialogue CASE number in dialoguehandler.javaCode:c.getDH().sendDialogues(##, i);
Now goto clickingbuttons under the case (THE CASE IS WHEN YOU CLICK "CURSE ON" on your NPC ingame and the case will show in CMD. YOU figure this part out. but here is the code to add.
for Curses on:
then under the CURSES OFF DIALOGUE CASE:Code:if(c.dialogueAction == 500) { c.prayerBook = 1; c.setSidebarInterface(5, 22500); c.getCombat().resetPrayers(); c.sendMessage("You change to Ancient Curses."); return; }
Code:if(c.dialogueAction == 500) { c.prayerBook = 0; c.setSidebarInterface(5, 5608); c.getCombat().resetPrayers(); c.sendMessage("You change back to normal prayers."); return; }
Thanks it worked. Took a bit of messing around.
hit the thank button or rep? lol, would be appreciated.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |