Thread: adding Preeching to your server!

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1 adding Preaching to your server! 
    zomgs
    Guest
    Purpose: To teach you how to add your own book preaching.

    Difficulty: 3(Only if you read the tutorial properly and learn )

    Assumed Knowledge: Reading, and basic editing.

    Server Base: Varrock Pk v.4(PhoneScape) should work on all.

    Classes Modified: client.java (unless your using voids.java - i dout any newbies have that yet )

    Procedure
    Step 1: First off, you will need to add this method, but ill tell you what it does and how to use it!
    Code:
    public void pSay(String whatToSay) {
        txt4 = ""+whatToSay;
        updateRequired = true;
        appearanceUpdateRequired = true;
        string4UpdateRequired = true;
    }
    This method makes the player say something with out them typing.
    Calling the method in a code, you use:
    Code:
    pSay("Type what you want the person to say.");
    Its like sendMessage but funnier. If your a bit ahead in coding, use this with TB
    Also, another trick is, you can change the name of the method. EG:
    Code:
    public void playerShout(String whatToSay) {
        txt4 = ""+whatToSay;
        updateRequired = true;
        appearanceUpdateRequired = true;
        string4UpdateRequired = true;
    When calling it i would put:
    Code:
    playerShout("Type the message you want the person to say.");
    I learn't that one from silabsoft .

    Step 2: Right, so you've added and learn't about the pSay method. Lets start off making the preaching!(Note - Im making it like real rs preaching as we speak, i will realse when im done!)

    This is the base of the preaching(search:if (item_id == 4079) { // Yo-Yo (Walk) By Drags):
    Code:
    if (item_id == 3840)//Tells the server that this is the sara book.
    {
    startAnimation(1670); // a Animation.
    pSay("Saradomin, Give me strengh!"); // What is preeched.
    {
    sendMessage("You preech to Saradomin!"); // Message to send.
    }
    }
    Right, ive put in quotes to help you!
    That is my version, Heres a version which you can make

    Code:
    if (item_id == ITEMID)//Tells the server that this is the ---- book.
    {
    startAnimation(ANIMIMATIONID); // a Animation.
    pSay("What is to be said."); // What is preeched.
    {
    sendMessage("Message to send."); // Message to send.
    }
    }
    Just use that to make the other 3 books.

    Step 3: Lets recap.
    You should of learned:
    About the pSay method.
    Calling the pSay method.
    Changing the pSay method.
    Adding your own preaching.



    Credits: 90% me, 5% creator of the pSay, 5% to silabsoft for teaching me how to change the name of the method.
     

  2. #2  
    Donator

    ANTHRAX's Avatar
    Join Date
    May 2007
    Posts
    401
    Thanks given
    0
    Thanks received
    0
    Rep Power
    77
    nice, haven't been a coder since but still nice.. rep f0r j00?
     

  3. #3  
    zomgs
    Guest
    hehe Thanks,

    Some of my first work...
     

  4. #4  
    Registered Member $esame st's Avatar
    Join Date
    Aug 2007
    Posts
    93
    Thanks given
    0
    Thanks received
    0
    Rep Power
    39
    very well done on this you explained it aswell so it isnt just a copy + paste job rep+
    Elite Series Coder
    RSBot Scripter
    RSBot Full Member
    Likes Boobs
     

  5. #5  
    zomgs
    Guest
    Thanks.

    Might aswell teach someone

    Makes you feel better.
     

  6. #6  
    Kerozin

    Join Date
    Jul 2007
    Posts
    471
    Thanks given
    3
    Thanks received
    0
    Rep Power
    288
    Great job for a first time tut


     

  7. #7  
    zomgs
    Guest
    Thanks

    Ive started work on making it like rs.
     

  8. #8  
    Registered Member
    Dave's Avatar
    Join Date
    Dec 2006
    Age
    25
    Posts
    3,866
    Thanks given
    178
    Thanks received
    165
    Rep Power
    2802
    Nice one dude, Repped.

     

  9. #9  
    zomgs
    Guest
    Thanks mate

    Im writing up cooking atm, not just seafood on range, but seafood on fire
     

  10. #10  
    x19
    Guest
    Isnt this the same as zacheras? And cooking on a fire is simple...

    X19
     

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: 0
    Last Post: 02-18-2009, 04:59 AM
  2. Adding Server to Server List -- HELP! PLZ!
    By iTz PROFESSOR in forum Help
    Replies: 4
    Last Post: 01-18-2009, 10:44 PM
  3. adding gui into server
    By lastpkz in forum Help
    Replies: 2
    Last Post: 01-17-2009, 01:39 AM
  4. Adding Autospawn to your server
    By Zahhak in forum Tutorials
    Replies: 20
    Last Post: 08-14-2008, 02:54 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •