Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

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