Thread: Open interface then text?

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 Open interface then text? 
    0v3rc0m3
    Guest
    okay so i want it so when you read a scroll it opens interface and shows text...
    So i put all this into ItemSelect.java:
    Code:
    			case 7629:{
              p.frames.showInterface(p, 255);
    		  p.frames.setString(p, "Guthix Renewal Potion Instructions", 132, 45);
    		  p.frames.setString(p, "First, Take the Bucket of Water and use it on the Vial.", 132, 1);
              p.frames.setString(p, "Then, use the Herb with the Water filled Vial.", 132, 2);
              p.frames.setString(p, "After that is done, give back to my follower.", 132, 3);
              p.frames.setString(p, "", 132, 4);
              p.frames.setString(p, "All in All, Peace in Peace,", 132, 5);
              p.frames.setString(p, "-Guthix, the Balanced.", 132, 6);
    
    		  }
    break;
    The interface opens, but no text.
    Help please?
    Repp+++
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Jan 2008
    Posts
    2,345
    Thanks given
    20
    Thanks received
    575
    Rep Power
    1202
    Maybe because your using the setString on the wrong interface lel?

    Your using it for interface 132, not 255, the one you are opening. You also need the childId's to be right or it wont show up either.

    btw... you dont need the { and the } in the case.
    Reply With Quote  
     

  3. #3  
    Registered Member 4lch 2 B4rr4g3's Avatar
    Join Date
    Jan 2008
    Posts
    98
    Thanks given
    0
    Thanks received
    1
    Rep Power
    3
    EDIT: Darn LOL, I was beaten.


    Make sure that your interface is labeled correctly.

    Example:
    Code:
    			case 7629:{
              p.frames.showInterface(p, 255);
    		  p.frames.setString(p, "Guthix Renewal Potion Instructions", InterfaceID, 45);
    		  p.frames.setString(p, "First, Take the Bucket of Water and use it on the Vial.", InterfaceID, 1);
              p.frames.setString(p, "Then, use the Herb with the Water filled Vial.", InterfaceID, 2);
              p.frames.setString(p, "After that is done, give back to my follower.", InterfaceID, 3);
              p.frames.setString(p, "", InterfaceID, 4);
              p.frames.setString(p, "All in All, Peace in Peace,", InterfaceID, 5);
              p.frames.setString(p, "-Guthix, the Balanced.", InterfaceID, 6);
    
    		  }
    break;
    Fixed Code:

    Code:
    	case 7629:{
    		p.frames.showInterface(p, 255);
    		p.frames.setString(p, "Guthix Renewal Potion Instructions", 255, 45);
    		p.frames.setString(p, "First, Take the Bucket of Water and use it on the Vial.", 255, 1);
    		p.frames.setString(p, "Then, use the Herb with the Water filled Vial.", 255, 2);
    		p.frames.setString(p, "After that is done, give back to my follower.", 255, 3);
    		p.frames.setString(p, "", 255, 4);
    		p.frames.setString(p, "All in All, Peace in Peace,", 255, 5);
    		p.frames.setString(p, "-Guthix, the Balanced.", 255, 6);
    	}
    	break;
    .:Latest:.
    .:Combat Arms:.
    Reply With Quote  
     

  4. #4  
    0v3rc0m3
    Guest
    Lmfao,
    WOOOW.
    I missed that >.>

    Thanks anyways,
    Rep.

    Okay, wait, it d/c whenever i click on the scroll now >.>
    Last edited by 0v3rc0m3; 01-29-2009 at 04:53 AM. Reason: Double posting is not allowed!
    Reply With Quote  
     

  5. #5  
    That universal language.
    'Ramon's Avatar
    Join Date
    Nov 2008
    Age
    26
    Posts
    3,026
    Thanks given
    116
    Thanks received
    86
    Rep Power
    3165
    Same for me lol


    Reply With Quote  
     

  6. #6  
    Registered Member

    Join Date
    Sep 2008
    Posts
    1,801
    Thanks given
    4
    Thanks received
    50
    Rep Power
    636
    Well the reason why is there is only 1 string line on that scroll
    try this
    Code:
    	case 7629:
    				    p.frames.showInterface(p, 255);
    				    p.frames.setString(p, "Guthix Renewal Potion Instructions     " +
    							  "First, Take the Bucket of Water and use it on the Vial." +
    							  "Then, use the Herb with the Water filled Vial. " +
    							  "After that is done, give back to my follower.                           " +
    							  "    All in All, Peace in Peace,      " +
    							  "    -Guthix, the Balanced.", 255, 3);
    	break;
    Reply With Quote  
     

  7. #7  
    That universal language.
    'Ramon's Avatar
    Join Date
    Nov 2008
    Age
    26
    Posts
    3,026
    Thanks given
    116
    Thanks received
    86
    Rep Power
    3165
    Wow man tysm i really didnt thought of that!


    Reply With Quote  
     

  8. #8  
    0v3rc0m3
    Guest
    Ah, thanks zach, worked!
    Reply With Quote  
     

  9. #9  
    Project Crimson

    Virus X3's Avatar
    Join Date
    May 2008
    Age
    29
    Posts
    663
    Thanks given
    7
    Thanks received
    11
    Rep Power
    250
    You should make it write the strings to the interface first. You might see the other text for a brief moment before writing the strings if you do it your way
    Reply With Quote  
     

  10. #10  
    Registered Member

    Join Date
    Sep 2008
    Posts
    1,801
    Thanks given
    4
    Thanks received
    50
    Rep Power
    636
    There is no other text on that interface though, its just a blank scroll
    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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •