Thread: [PI] Chat interface with no "click here to continue"

Results 1 to 7 of 7
  1. #1 [PI] Chat interface with no "click here to continue" 
    Registered Member
    Join Date
    Jun 2012
    Posts
    103
    Thanks given
    17
    Thanks received
    28
    Rep Power
    17
    I honestly don't know how hard this is, but try as I might I cannot figure out how to do it.

    I want to use it for quests and for tutorial island, making it not close until a certain amount of time or something.

    Any suggestions?
    Reply With Quote  
     

  2. #2  
    Member
    Join Date
    Feb 2012
    Age
    25
    Posts
    58
    Thanks given
    1
    Thanks received
    0
    Rep Power
    0
    add this to dialoguehandler.java
    Code:
    	private void sendOption(String s, String s1) {
    		c.getPA().sendFrame126("Select an Option", 2470);
    		c.getPA().sendFrame126(s, 2471);
    		c.getPA().sendFrame126(s1, 2472);
    		c.getPA().sendFrame126("Click here to continue", 2473);
    		c.getPA().sendFrame164(13758);
    	}
    
    	private void sendOption2(String s, String s1) {
    		c.getPA().sendFrame126("Select an Option", 2460);
    		c.getPA().sendFrame126(s, 2461);
    		c.getPA().sendFrame126(s1, 2462);
    		c.getPA().sendFrame164(2459);
    	}
    
    	private void sendOption3(String s, String s1, String s2) {
    		c.getPA().sendFrame126("Select an Option", 2460);
    		c.getPA().sendFrame126(s, 2461);
    		c.getPA().sendFrame126(s1, 2462);
    		c.getPA().sendFrame126(s2, 2462);
    		c.getPA().sendFrame164(2459);
    	}
    
    	public void sendOption4(String s, String s1, String s2, String s3) {
    		c.getPA().sendFrame126("Select an Option", 2481);
    		c.getPA().sendFrame126(s, 2482);
    		c.getPA().sendFrame126(s1, 2483);
    		c.getPA().sendFrame126(s2, 2484);
    		c.getPA().sendFrame126(s3, 2485);
    		c.getPA().sendFrame164(2480);
    	}
    
    	public void sendOption5(String s, String s1, String s2, String s3, String s4) {
    		c.getPA().sendFrame126("Select an Option", 2493);
    		c.getPA().sendFrame126(s, 2494);
    		c.getPA().sendFrame126(s1, 2495);
    		c.getPA().sendFrame126(s2, 2496);
    		c.getPA().sendFrame126(s3, 2497);
    		c.getPA().sendFrame126(s4, 2498);
    		c.getPA().sendFrame164(2492);
    	}
    some of it you might have but it is the first public void that you want in this occasion
    Reply With Quote  
     

  3. #3  
    Banned Market Banned Market Banned


    Join Date
    Jan 2011
    Age
    23
    Posts
    3,115
    Thanks given
    1,198
    Thanks received
    1,479
    Rep Power
    0
    That wasn't what he asked for... ^
    Reply With Quote  
     

  4. #4  
    Server Developer
    Argyros's Avatar
    Join Date
    Apr 2011
    Posts
    498
    Thanks given
    25
    Thanks received
    31
    Rep Power
    23
    Quote Originally Posted by Jfullaa View Post
    I honestly don't know how hard this is, but try as I might I cannot figure out how to do it.

    I want to use it for quests and for tutorial island, making it not close until a certain amount of time or something.

    Any suggestions?
    You can try a bunch of things.
    Here ill code up something simple for you, but you will have do the rest of it.

    You could try something like this:
    Code:
    if (System.currentTimeMillis() - c.VARIABLE HERE > 5000) {
    					c.VARIABLE HERE = System.currentTimeMillis();
    if (Server.playerHandler.players[j] != null) {
    							//Put Action Here
    						}
    					}
    You might have to convert it if you are using a different source.
    The first part checks how many seconds the user must wait.
    This isn't a finished thing don't put it in your server and hoping it works.
    Seeing how I don't know what version you are using, I can't really help you, but you get the idea.
    You could just reedit the code around.
    Just make sure you have "System.currentTimeMillis()" function with " > 5000)" where 5000 is 5000 million seconds, so it would be 5 seconds.
    Reply With Quote  
     

  5. #5  
    Father Of Lies


    Join Date
    May 2012
    Age
    23
    Posts
    1,216
    Thanks given
    267
    Thanks received
    289
    Rep Power
    242
    Isn't there server > client packets for this?
    Reply With Quote  
     

  6. #6  
    Server Developer
    Argyros's Avatar
    Join Date
    Apr 2011
    Posts
    498
    Thanks given
    25
    Thanks received
    31
    Rep Power
    23
    Quote Originally Posted by jakeyy View Post
    Isn't there server > client packets for this?
    I believe there is.
    But to be more honest there are many ways on how to do this.
    Seeing how I could do this for him, but it would take me some time, and plus the guy needs to learn on his own.
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Dec 2012
    Posts
    56
    Thanks given
    1
    Thanks received
    15
    Rep Power
    36
    You make a new dialogue method but don't include the "press here to continue" frame, or make it appear after something using an if statement.
    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: 10-25-2009, 03:06 AM
  2. Replies: 3
    Last Post: 08-26-2009, 06:12 AM
  3. "Click here to continue" color
    By 35518 in forum Help
    Replies: 5
    Last Post: 05-17-2009, 11:23 AM
  4. Replies: 14
    Last Post: 03-27-2009, 05:45 AM
  5. Fixing "click here to continue...."
    By Impulse_X in forum Tutorials
    Replies: 6
    Last Post: 08-19-2007, 09:48 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
  •