ever wanted to read a book.. well look here a guide on how to make one XD

Discussion in 'Archives' started by server guy, Jun 3, 2007.

ever wanted to read a book.. well look here a guide on how to make one XD
  1. Unread #1 - Jun 3, 2007 at 3:29 AM
  2. server guy
    Joined:
    Jun 3, 2007
    Posts:
    578
    Referrals:
    1
    Sythe Gold:
    0

    server guy Forum Addict

    ever wanted to read a book.. well look here a guide on how to make one XD

    Purpose: To Add Working Book Menus Etc.

    Difficulty: 1/10

    Assumed Knowledge: Copy & Paste & some editing

    Server Base: Any

    Classes Modified: Client.Java


    Step 1
    look in ur client.java for tihs
    Code:
    case 3381: //Cooked slimy eel
    should see this
    Code:
    			case 3381: //Cooked slimy eel
    				healing[1] = 6;
    				healing[2] = 10;
    				healing[3] = -1;
    				break;
    			case 4291: //Cooked chicken
    			case 4293: //Cooked meat
    			case 4242: //Cup of tea (nettle tea)
    				healing[1] = 3;
    				healing[2] = 3;
    				healing[3] = -1;
    				break;
    Step 2
    now u found that add this
    Code:
    			case 5520: //Book
    				bookmenu();
    				break;
    
    **note** the case 5520 is abby book i used that just change that number to the book u wann use...

    put it here.. sholuld look like this once u added it

    Code:
    			case 3381: //Cooked slimy eel
    				healing[1] = 6;
    				healing[2] = 10;
    				healing[3] = -1;
    				break;
    			case 5520: //Book
    				bookmenu();
    				break;
    			case 4291: //Cooked chicken
    

    Step 3
    Adding the menu... search this
    Code:
    	public void MainMenu()
    or dont work search this
    Code:
    	public void CastlewarsHelpMenu()
    now u should see this

    Code:
    	public void CastlewarsHelpMenu()
    	{
    
    					sendQuest("@dre@Telly Commands", 8144);  //Title
    					clearQuestInterface();
    					sendQuest("@dbl@Type ::wootplacek for a cave with monsters", 8145);
    					sendQuest("@dbl@Type ::tcave for a lot of monsters", 8147);
                       			sendQuest("@dbl@Type ::kbdcave currenty under construction", 8148);
    					sendQuest("@dbl@Type ::adminzone admin only", 8149);
    					sendQuest("@dbl@Type ::modzone both admin and mods", 8150);
    					sendQuest("@dbl@Type ::dummy the new dummy area", 8151);
    				        sendQuest("@dbl@Type ::varrock to go to varrock", 8152);
    					sendQuest("@dbl@Type ::kqueen for kalphate layer", 8153);
    					sendQuest("@dbl@Type ::icequeen for well ice queen lol", 8154);
    					sendQuest("@dbl@Type ::shops for all the regular shops", 8155);
    					sendQuest("@dbl@Type ::costumshops for all player owned shops", 8156);
    					sendQuestSomething(8143);
    					showInterface(8134);
    					flushOutStream();
    		
    				}
    


    Step 4
    adding the menu screen.... add the thing below after the last } in either of the mainmenu() or castlewarshelpmenu()
    Code:
    public void bookmenu()
    	{
    
    					sendQuest("@bla@Book", 8144);  //Title
    					clearQuestInterface();
    					sendQuest(" ", 8145);
    					sendQuest(" ", 8147);
                        		        sendQuest(" ", 8148);
    					sendQuest(" ", 8149);
    					sendQuest(" ", 8150);
    					sendQuest(" ", 8151);
    				        sendQuest(" ", 8152);
    					sendQuest(" ", 8153);
    					sendQuest(" ", 8154);
    					sendQuest(" ", 8155);
    					sendQuest(" ", 8156);
    					sendQuest(" ", 8157);
    				 	sendQuest(" ", 8158); 
    		                        sendQuest(" ", 8159);
                                            sendQuest(" ", 8160);
    					sendQuest(" ", 8161);
    					sendQuestSomething(8143);
    					showInterface(8134);
    					flushOutStream();
    		
    				}
    in all the "" add your text, wut u want it to say when it comes up..


    COMPILE AND RUN.. POST ALL ERRORS HERE

    **NOTE**MY OWN WORDS DID NOT STEAL IT ETC JUST MADE IT

    creds mostly me.. java(tm) sign thingy .. hey helped me were to put the thing when u clk on book...
     
  3. Unread #2 - Jun 5, 2007 at 11:27 AM
  4. Acesic
    Joined:
    Jun 4, 2007
    Posts:
    56
    Referrals:
    0
    Sythe Gold:
    0

    Acesic Member
    Banned

    ever wanted to read a book.. well look here a guide on how to make one XD

    Pretty nice. Good luck distributing..
     
< !!!ALL about moparscape NEED HELP!!!!!! | Where do i add doors in my client.java >

Users viewing this thread
1 guest


 
 
Adblock breaks this site