Thread: [ PI ] DialogueHandler ; close a dialogue [COmpleted]

Results 1 to 6 of 6
  1. #1 [ PI ] DialogueHandler ; close a dialogue [COmpleted] 
    Registered Member
    Join Date
    Mar 2012
    Posts
    9
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    My code: package server.model.players; import server.Config; import server.Server; - Pastebin.com (the whole file)
    case 145:
    sendOption2("Yes I'd like to pay" , "No I don't have that money");
    c.dialogueAction = 1000;
    c.nextChat = 0;


    break;
    Is the thing im talking about..
    When I'm doing it, the 2 option will be still there after pressing it. (the dialogueaction works). I have to move my player to close the dialogue.
    Anyone knows how to fix it?
    Reply With Quote  
     

  2. #2  
    need java lessons
    Eclipse's Avatar
    Join Date
    Aug 2012
    Posts
    4,436
    Thanks given
    686
    Thanks received
    898
    Rep Power
    490
    I'm not sure what dialogue you're talking about, try adding
    Code:
    c.nextChat = 0;
    after it.

    Quote Originally Posted by jerryrocks317 View Post
    i am 14 and have my own laptop im on almost 24/7 currently creating rsps lol so please get off my thread lol
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Mar 2012
    Posts
    9
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by Ninth Legion View Post
    I'm not sure what dialogue you're talking about, try adding
    Code:
    c.nextChat = 0;
    after it.
    case 145:
    sendOption2("Yes I'd like to pay" , "No I don't have that money");
    c.dialogueAction = 1000;
    c.nextChat = 0;


    break;
    I'm talking about that.
    It has already nextChat =0 :O
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Aug 2010
    Posts
    640
    Thanks given
    73
    Thanks received
    47
    Rep Power
    54
    Quote Originally Posted by ritonda12 View Post
    I'm talking about that.
    It has already nextChat =0 :O
    so you want it to close when they click "No I don't have that money" ?

    in ClickingButtons.java add this under case 9158:

    Code:
    				if(c.dialogueAction == 1000) {
    					c.getPA().removeAllWindows();
    				}
    Reply With Quote  
     

  5. #5  
    need java lessons
    Eclipse's Avatar
    Join Date
    Aug 2012
    Posts
    4,436
    Thanks given
    686
    Thanks received
    898
    Rep Power
    490
    Show us your dialogue actions


    add
    c.getPA().closeAllWindows();

    after your dialogue action

    ie.
    case #####:
    c.getShitDone;
    c.getPA().closeAllWindows();
    break;

    Quote Originally Posted by jerryrocks317 View Post
    i am 14 and have my own laptop im on almost 24/7 currently creating rsps lol so please get off my thread lol
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Mar 2012
    Posts
    9
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by Stockholm View Post
    so you want it to close when they click "No I don't have that money" ?

    in ClickingButtons.java add this under case 9158:

    Code:
    				if(c.dialogueAction == 1000) {
    					c.getPA().removeAllWindows();
    				}
    Thanks that is what i wanted
    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. DialogueHandler
    By _Austin_ in forum Help
    Replies: 5
    Last Post: 07-25-2012, 10:54 PM
  2. Replies: 2
    Last Post: 07-10-2012, 01:33 AM
  3. DialogueHandler help
    By Flippy in forum Help
    Replies: 4
    Last Post: 09-17-2011, 04:07 AM
  4. [PI]DialogueHandler
    By Mr.PedoBear in forum Help
    Replies: 5
    Last Post: 06-24-2010, 01:18 AM
  5. My DialogueHandler [Delta]
    By Homie Pimpson in forum Tutorials
    Replies: 22
    Last Post: 08-17-2009, 01: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
  •