Hello & Welcome to our community. Is this your first visit? Register
Results 1 to 3 of 3
  1. #1
    Member sixpack's Avatar

    Rank
    Member
    Join Date
    Jan 2008
    Posts
    66
    Likes (Received)
    0

    How to Change XP Rate [317]

    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) (60 * hitDiff * 2); // added *2 for
                            // faster
                            // leveling
                            // -wildjjbug
                            TotalExp = (double) (TotalExp * CombatExpRate);
                            addSkillXP((int) (TotalExp), 4);
                        } else if (FightType != 3) {
                            TotalExp = (double) (60 * hitDiff * 2); // added *2 for
                            // faster
                            // leveling
                            // -wildjjbug
                            TotalExp = (double) (TotalExp * CombatExpRate);
                            addSkillXP((int) (TotalExp), SkillID);
                        } else {
                            TotalExp = (double) (60 * 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) (20 * 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
    [SIGPIC][/SIGPIC]

  2. #2
    Long time no see Worthy's Avatar

    Rank
    True Member
    Join Date
    Apr 2008
    Location
    Scotland
    Posts
    280
    Likes (Received)
    3

    Re: How to Change XP Rate [317]

    Nice, basic, easy-to-read tutorial.

    Good job ;)

  3. #3
    Chaos Is Here wildjjbug's Avatar

    Rank
    True Member
    Join Date
    Apr 2006
    Location
    America
    Posts
    915
    Likes (Received)
    11

    Re: How to Change XP Rate [317]

    even though this is what i sent him through pm, anyway nice i guess...

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

HostKey
Sponsored by HostKey , secured by Incapsula and mods by DBTech.
All times are GMT +1. The time now is 06:39 AM.
Powered by vBulletin® Copyright , Jelsoft Enterprises Ltd.