• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

How to Change XP Rate [317]

Newbie Spellweaver
Joined
Jan 1, 2008
Messages
36
Reaction score
0
Look in Client.java

look for "combatexprate" or

a code like below
Code:
}
                attackedNpc = true;
                attackedNpcId = attacknpc;
                double TotalExp = 0;
                if (!UseBow)
                    animationReset = System.currentTimeMillis() + 1200;
                if (server.npcHandler.npcs[attacknpc].npcType != 1472) {
                    if (UseBow) {
                        TotalExp = (double) ([COLOR=Red]60[/COLOR] * hitDiff * 2); // added *2 for
                        // faster
                        // leveling
                        // -wildjjbug
                        TotalExp = (double) (TotalExp * CombatExpRate);
                        addSkillXP((int) (TotalExp), 4);
                    } else if (FightType != 3) {
                        TotalExp = (double) ([COLOR=Red]60[/COLOR] * hitDiff * 2); // added *2 for
                        // faster
                        // leveling
                        // -wildjjbug
                        TotalExp = (double) (TotalExp * CombatExpRate);
                        addSkillXP((int) (TotalExp), SkillID);
                    } else {
                        TotalExp = (double) ([COLOR=Red]60[/COLOR] * hitDiff * 2); // added *2 for
                        // faster
                        // leveling
                        // -wildjjbug
                        TotalExp = (double) (TotalExp * CombatExpRate);
                        addSkillXP((int) (TotalExp), playerAttack);
                        addSkillXP((int) (TotalExp), playerDefence);
                        addSkillXP((int) (TotalExp), playerStrength);
                    }
                    TotalExp = (double) ([COLOR=Red]20 [/COLOR]* hitDiff * 2); // added *2 for
                    // faster leveling
                    // -wildjjbug
                    TotalExp = (double) (TotalExp * CombatExpRate);
                    addSkillXP((int) (TotalExp), playerHitpoints);
                    attackTimer = 7;
                    if (debug)
                        sendMessage("hitDiff=" + hitDiff + ", elapsed="
                                + (thisTime - lastAttack));
                    lastAttack = System.currentTimeMillis();
                }
                return true;
and just change the 60 to w/e you want or w/e yours is
 
Junior Spellweaver
Joined
Apr 12, 2008
Messages
105
Reaction score
1
Nice, basic, easy-to-read tutorial.

Good job ;)
 
Chaos Is Here
Joined
Apr 6, 2006
Messages
256
Reaction score
5
even though this is what i sent him through pm, anyway nice i guess...
 
Back
Top