Thread: [317] How to change combat XP [317]

Results 1 to 3 of 3
  1. #1 [317] How to change combat XP [317] 
    Registered Member
    Join Date
    Jun 2010
    Posts
    16
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Hello.

    Today i am teaching you on how to change your combatexp for some people that do not know
    Please do not flame as this tutorial only help people that do not know how to change, if you know, please don't flame
    This tutorial is basic

    File Modified : Client.java

    Tested : Most of the source in the RS2 317.

    Open your client.java

    Ctrl+f and Find

    combatexp


    and you will see something like this

    if (UseBow || UseCrossBow || UseRing) {
    TotalExp = (double)(400*hitDiff);
    TotalExp = (double)(TotalExp*CombatExpRate);
    addSkillXP((int)(TotalExp), 4);
    } else if (FightType != 3) {
    TotalExp = (double)(400*hitDiff);
    TotalExp = (double)(TotalExp*CombatExpRate);
    addSkillXP((int)(TotalExp), SkillID);
    } else {
    TotalExp = (double)(400*hitDiff);
    TotalExp = (double)(TotalExp*CombatExpRate);
    addSkillXP((int)(TotalExp), playerAttack);
    addSkillXP((int)(TotalExp), playerDefence);
    addSkillXP((int)(TotalExp), playerStrength);
    }
    TotalExp = (double)(400*hitDiff);
    TotalExp = (double)(TotalExp*CombatExpRate);
    addSkillXP((int)(TotalExp), playerHitpoints);


    Now what to change?
    You saw this?

    TotalExp = (double)(400*hitDiff);
    Change the 400 to your exp that you want

    If i want to change the exp to 500, it should be like this.

    if (UseBow || UseCrossBow || UseRing) {
    TotalExp = (double)(500*hitDiff);
    TotalExp = (double)(TotalExp*CombatExpRate);
    addSkillXP((int)(TotalExp), 4);
    } else if (FightType != 3) {
    TotalExp = (double)(500*hitDiff);
    TotalExp = (double)(TotalExp*CombatExpRate);
    addSkillXP((int)(TotalExp), SkillID);
    } else {
    TotalExp = (double)(500*hitDiff);
    TotalExp = (double)(TotalExp*CombatExpRate);
    addSkillXP((int)(TotalExp), playerAttack);
    addSkillXP((int)(TotalExp), playerDefence);
    addSkillXP((int)(TotalExp), playerStrength);
    }
    TotalExp = (double)(500*hitDiff);
    TotalExp = (double)(TotalExp*CombatExpRate);
    addSkillXP((int)(TotalExp), playerHitpoints);
    Hope this help those who do not know.
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Nov 2010
    Posts
    129
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Good for begginers like me; But i learned this already but
    Good job
    Reply With Quote  
     

  3. #3  
    Registered Member


    Join Date
    Sep 2010
    Posts
    852
    Thanks given
    6
    Thanks received
    29
    Rep Power
    108
    Very nice, but very basic.
    Real Eyes
    Realize
    Real Lies
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 03-21-2010, 11:44 PM
  2. how do u change the combat level?
    By `Rob in forum Help
    Replies: 2
    Last Post: 03-14-2009, 07:03 AM
  3. Change max level + Combat
    By Kurt in forum Tutorials
    Replies: 36
    Last Post: 02-29-2008, 09:06 AM
  4. Change max combat level
    By Afro in forum Tutorials
    Replies: 13
    Last Post: 07-25-2007, 01:44 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
  •