Thread: Quick Problem - Xp lock in quest tab.

Results 1 to 4 of 4
  1. #1 Quick Problem - Xp lock in quest tab. 
    Registered Member
    Join Date
    Aug 2012
    Posts
    186
    Thanks given
    9
    Thanks received
    9
    Rep Power
    14
    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

    Code:
    getPA().sendFrame126("@or2@XP Lock: @gre@" + getDH().sendDialogues(291, 2244); + " ", 7342);
    Dialoguehandler.java

    Code:
    case 291:
                    sendOption2("Lock EXP", "Unlock EXP");
                    c.dialogueAction = 100;
                    break;
    291 = The case in dialoguehandler.java
    2244 = The npc for locking xp.
    Reply With Quote  
     

  2. #2  
    Registered Member
    Karma_K's Avatar
    Join Date
    Nov 2012
    Posts
    4,283
    Thanks given
    152
    Thanks received
    610
    Rep Power
    108
    So u want an npc to do it or do you mean you want a dialogue to come up when you click it
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Aug 2012
    Posts
    186
    Thanks given
    9
    Thanks received
    9
    Rep Power
    14
    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.
    Reply With Quote  
     

  4. #4  
    HTML5/CSS3/JQuery
    Griffon's Avatar
    Join Date
    Feb 2013
    Posts
    275
    Thanks given
    61
    Thanks received
    38
    Rep Power
    6
    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.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 3
    Last Post: 07-02-2011, 10:38 PM
  2. Quick little problem
    By Damien in forum Help
    Replies: 3
    Last Post: 08-13-2010, 08:01 AM
  3. [FIXED]Class Problem. Lock please.
    By Poindexter in forum Help
    Replies: 3
    Last Post: 04-30-2010, 09:44 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •