So u want an npc to do it or do you mean you want a dialogue to come up when you click it
|
I have a thing in my quest tab that says = 1 when your xp is locked, or 0 when it's not locked.. But I want it to show the dialogue for Lock or unlock xp when you click it. I'm not sure how to do something like that, but this is what I have been fooling around with, I get errors though.
Client.java
Dialoguehandler.javaCode:getPA().sendFrame126("@or2@XP Lock: @gre@" + getDH().sendDialogues(291, 2244); + " ", 7342);
291 = The case in dialoguehandler.javaCode:case 291: sendOption2("Lock EXP", "Unlock EXP"); c.dialogueAction = 100; break;
2244 = The npc for locking xp.
So u want an npc to do it or do you mean you want a dialogue to come up when you click it
In my quest tab it says Xp Lock: I want it so that when you click on XP Lock: Your xp will be locked, rather than talking to the npc to lock your xp.
1. Click on the button. Look under your run.bat and it will show the button id! most likely.
2. Remember that ID. Then go to ClickingButtons.java
3. Add a case anywhere. Make sure the number hasn't been used before.
4. Under the case, add: c.getDH(0.sendDialogues(291, -1);
Now when you click on the button, the dialogue will pop up.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |