Thread: Bone burying base(with addSkillXP method).

Page 1 of 3 123 LastLast
Results 1 to 10 of 22
  1. #1 Bone burying base(with addSkillXP method). 
    Registered Member

    Join Date
    Jan 2008
    Age
    30
    Posts
    898
    Thanks given
    14
    Thanks received
    39
    Rep Power
    140
    Description: Base of bone burying

    Difficulty: Ugh 2?

    Assumed Knowledge: C&p

    Tested Server: Cellkyborg's 474.

    Files/Classes Modified: ClientPackets, RSPlayer

    Procedure
    Step 1: Open up your Clientpackets and add this.
    Code:
    public static final int BURY = 89;


    Step 2: Now open up RSPlayer.java, look for
    Code:
    case ClientPackets.PING:// ping
    			break;


    Step 3: Under it add
    Code:
    		case ClientPackets.BURY:// Burying
    			addSkillXP(4, 5);
    			doAnimation(830, 0);
    			break;
    (Yes i know Animation ID is wrong.).


    Step 4:Declare this also somewhere in RSPlayer.
    Code:
        public void addSkillXP(double amount, int skill) {
    
       	playerXP[skill] += amount;
    	setSkillLevelXP(skill, playerLevel[skill], playerXP[skill]);
    
                }


    Enjoy(all bones will give 4xp as this is base)
    Credits: All done by me(markkevin)

    Thanks Valentino for sig.
    Reply With Quote  
     

  2. #2  
    Officially Retired


    Join Date
    Oct 2007
    Age
    30
    Posts
    5,454
    Thanks given
    558
    Thanks received
    122
    Rep Power
    1364
    good job man

    something wron with
    case ClientPackets.BURY:// Burying
    addSkillXP(4, Prayer);
    doAnimation(830, 0);
    break;
    when compiler it error
    Reply With Quote  
     

  3. #3  
    Registered Member
    psyhoman's Avatar
    Join Date
    Sep 2007
    Age
    30
    Posts
    2,781
    Thanks given
    56
    Thanks received
    58
    Rep Power
    2774
    Thank you, but i will edit the xp from like 4 to 400
    Circumstances don't matter, only state of being matters!
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    Jan 2008
    Age
    30
    Posts
    898
    Thanks given
    14
    Thanks received
    39
    Rep Power
    140
    Thanks for comments.

    Thanks Valentino for sig.
    Reply With Quote  
     

  5. #5  
    paramore
    Guest
    good job, this will help making bases for herbalore aswell i guess nice one
    Reply With Quote  
     

  6. #6  
    lazy
    Guest
    compile error


    Code:
    src\net\cellkyborg\RSInstances\RSPlayer.java:697: cannot find symbol
    symbol  : variable Prayer
    location: class net.cellkyborg.RSInstances.RSPlayer
                            addSkillXP(4000, Prayer);
                                             ^
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    Note: src\net\cellkyborg\RSInstances\RSPlayer.java uses unchecked or unsafe oper
    ations.
    Note: Recompile with -Xlint:unchecked for details.
    1 error
    .\src\net\cellkyborg\RSInstances\RSPlayer.java:697: cannot find symbol
    symbol  : variable Prayer
    location: class net.cellkyborg.RSInstances.RSPlayer
                            addSkillXP(4000, Prayer);
                                             ^
    Note: .\src\net\cellkyborg\RSInstances\RSPlayer.java uses unchecked or unsafe op
    erations.
    Note: Recompile with -Xlint:unchecked for details.
    1 error
    Druk op een toets om door te gaan. . .
    Reply With Quote  
     

  7. #7  
    Registered Member

    Join Date
    Jan 2008
    Age
    30
    Posts
    898
    Thanks given
    14
    Thanks received
    39
    Rep Power
    140
    Replace the Prayer with 5 then.

    Thanks Valentino for sig.
    Reply With Quote  
     

  8. #8  
    Registered Member
    hayzie's Avatar
    Join Date
    Nov 2007
    Posts
    364
    Thanks given
    0
    Thanks received
    17
    Rep Power
    462
    nice mate (H)
    packet size does matter
    Reply With Quote  
     

  9. #9  
    Registered Member

    Join Date
    Jan 2008
    Age
    30
    Posts
    898
    Thanks given
    14
    Thanks received
    39
    Rep Power
    140
    Thanks.
    Made it simpler for those who got errors with addSkillXP(4, Prayer); . =)

    Thanks Valentino for sig.
    Reply With Quote  
     

  10. #10  
    Banned
    Join Date
    Jul 2008
    Age
    35
    Posts
    536
    Thanks given
    123
    Thanks received
    33
    Rep Power
    0
    i fixed the error replace

    case ClientPackets.BURY:// Burying
    addSkillXP(4, Prayer);
    doAnimation(827, 0);
    break;

    With

    case ClientPackets.BURY:// Burying
    addSkillXP(4, playerLevel[5]);
    doAnimation(827, 0);
    break;
    Reply With Quote  
     

Page 1 of 3 123 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
  •