Thread: Option 1 on dialogue ? how to know what c.dialogueAction == ????) ?

Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1 Option 1 on dialogue ? how to know what c.dialogueAction == ????) ? 
    Registered Member
    Join Date
    Nov 2013
    Posts
    31
    Thanks given
    1
    Thanks received
    1
    Rep Power
    11
    Hello

    this is kinda a headache for me because i have a npc with a dialogue ,

    but how can i know what dialogue action is needed , because when i click it , it doesnt show in my client CMD ,

    this is kinda a frustrating thing for me because in the tutorial i followed its showed action id (****) on the client CMD

    it does not work for me (my client says sendpacket 185(2461) on durdel and also on my new npc ,

    how to figure that one out

    if you need a picture because it maked no sense what im talking about , tell me and i will post it right away !


    If you can help me out that would be a big help !
    -You should always thank the one that helped you, in you're request for help, its will cost you nothing to say "thankyou"-
    Reply With Quote  
     

  2. #2  
    Registered Member mr giggles's Avatar
    Join Date
    Jul 2010
    Posts
    197
    Thanks given
    49
    Thanks received
    69
    Rep Power
    18
    I assume you mean for Clicking Buttons or the actual int dialogueAction? Either way, to display it go to ClickingButtons.java under int actionButtonId add this
    Code:
    if (c.playerRights >= 3) {
    	c.sendMessage("Action Button " + actionButtonId + ".");
    	Misc.println(c.playerName + " - actionbutton: " + actionButtonId);
    }
    To make it display the dialogueAction just add it under the message.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Nov 2013
    Posts
    31
    Thanks given
    1
    Thanks received
    1
    Rep Power
    11
    Quote Originally Posted by mr giggles View Post
    I assume you mean for Clicking Buttons or the actual int dialogueAction? Either way, to display it go to ClickingButtons.java under int actionButtonId add this
    Code:
    if (c.playerRights >= 3) {
    	c.sendMessage("Action Button " + actionButtonId + ".");
    	Misc.println(c.playerName + " - actionbutton: " + actionButtonId);
    }
    To make it display the dialogueAction just add it under the message.
    this shows me it in the left corner right ? very usefull gonna try it right away and let you know
    -You should always thank the one that helped you, in you're request for help, its will cost you nothing to say "thankyou"-
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Nov 2013
    Posts
    31
    Thanks given
    1
    Thanks received
    1
    Rep Power
    11
    Quote Originally Posted by mr giggles View Post
    I assume you mean for Clicking Buttons or the actual int dialogueAction? Either way, to display it go to ClickingButtons.java under int actionButtonId add this
    Code:
    if (c.playerRights >= 3) {
    	c.sendMessage("Action Button " + actionButtonId + ".");
    	Misc.println(c.playerName + " - actionbutton: " + actionButtonId);
    }
    To make it display the dialogueAction just add it under the message.
    if(c.playerRights == 3)
    Misc.println(c.playerName+ " - actionbutton: "+actionButtonId);

    i got that already in my clicking buttons , the thing i need is to know how what i need what action wait leme show you a a picture ,

    ]how can i figure out what the first option ,action button is , so i can get it working like if action button is click (???) << number is unknown

    Spoiler for Client:



    Spoiler for client CMD:
    -You should always thank the one that helped you, in you're request for help, its will cost you nothing to say "thankyou"-
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Nov 2013
    Posts
    31
    Thanks given
    1
    Thanks received
    1
    Rep Power
    11
    still need help with this
    -You should always thank the one that helped you, in you're request for help, its will cost you nothing to say "thankyou"-
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Sep 2013
    Posts
    142
    Thanks given
    7
    Thanks received
    2
    Rep Power
    11
    case 9178
    Reply With Quote  
     

  7. #7  
    Registered Member Averios's Avatar
    Join Date
    Aug 2013
    Posts
    30
    Thanks given
    1
    Thanks received
    7
    Rep Power
    11
    I assume you are handling your dialogues in the DialogueHandler so,

    Code:
    		case 300:
    			sendOption2("Option 1", "Option 2");
    			c.dialogueAction = 300; //This is the dialogue action you set by yourself
    			break;
    Then in clickingbuttons (if handled in there)
    I think option 1 and 2 is 9157 and 9158.
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Nov 2013
    Posts
    31
    Thanks given
    1
    Thanks received
    1
    Rep Power
    11
    Quote Originally Posted by Steen View Post
    case 9178

    lmao, how did u came up with that number , no offence , but ofcourse it aint working , thanks anyway for trying
    -You should always thank the one that helped you, in you're request for help, its will cost you nothing to say "thankyou"-
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Nov 2013
    Posts
    31
    Thanks given
    1
    Thanks received
    1
    Rep Power
    11
    Quote Originally Posted by LC Rsps View Post
    I assume you are handling your dialogues in the DialogueHandler so,

    Code:
    		case 300:
    			sendOption2("Option 1", "Option 2");
    			c.dialogueAction = 300; //This is the dialogue action you set by yourself
    			break;
    Then in clickingbuttons (if handled in there)
    I think option 1 and 2 is 9157 and 9158.
    and how can i find out which it is myself , because on the tutorial its show actionID **** on the CMD of the client , my gues its diffrent from anyone else , the actionbutton cant be those 2 all the time , i tryed anyway , but it failed anyway thanks for trying to help out uhhhh
    -You should always thank the one that helped you, in you're request for help, its will cost you nothing to say "thankyou"-
    Reply With Quote  
     

  10. #10  
    Registered Member Averios's Avatar
    Join Date
    Aug 2013
    Posts
    30
    Thanks given
    1
    Thanks received
    7
    Rep Power
    11
    Post the case you have for the options from the dialogueHandler.
    Reply With Quote  
     

Page 1 of 2 12 LastLast

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: 9
    Last Post: 05-18-2013, 07:27 AM
  2. Replies: 23
    Last Post: 01-31-2012, 11:43 PM
  3. Server to know what sidebar you're on?Rep++ 4 answerer
    By dark bl00d23 in forum Requests
    Replies: 0
    Last Post: 05-04-2009, 01:30 AM
  4. Want To Know What Crashed Your Server over Time?
    By Palidino in forum Configuration
    Replies: 10
    Last Post: 04-29-2008, 02:45 PM
  5. How to know when i edited a post!
    By Mint in forum MMORPG
    Replies: 0
    Last Post: 01-06-2008, 08:24 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
  •