Thread: Server xp rate!

Results 1 to 5 of 5
  1. #1 Server xp rate! 
    Valar Morghulis

    Laxika's Avatar
    Join Date
    Sep 2006
    Age
    32
    Posts
    2,813
    Thanks given
    1,804
    Thanks received
    274
    Rep Power
    2128
    If you want to add faster or slower xp rate???
    Add this tut...

    Open Player.java and add:

    public int XPrate = 1; //server XP rates... 1 = the xp rates now in the server 10 = 10X faster xp rates....

    close Player.java and open up client.java
    find this line:

    Code:
    int oldLevel = getLevelForXP(playerXP[skill]);
    You see this:

    Code:
    		int oldLevel = getLevelForXP(playerXP[skill]);
    		playerXP[skill] += amount;
    		if (oldLevel < getLevelForXP(playerXP[skill])) {
     if (Attack < getLevelForXP(playerXP[0])) {
                playerLevel[0] = getLevelForXP(playerXP[0]);
                levelup(0);
                updateRequired = true;
                appearanceUpdateRequired = true;
             }
             if (Defence < getLevelForXP(playerXP[1])) {
                playerLevel[1] = getLevelForXP(playerXP[1]);
                levelup(2);
    ...

    Replace this line:

    Code:
    playerXP[skill] += amount;
    whit this:

    Code:
    		playerXP[skill] += (amount*XPrate);
    Now if you want a faster or slower server you only need to edit the XPrate int....

    Have fun!
     

  2. #2  
    1337scape
    Guest
    This funny....I can't believe you post such a simple tut
     

  3. #3  
    ~Legend Rene
    Guest
    You didnt do much better did you?
     

  4. #4  
    PrimEviL
    Guest
    nice tyvm, nice short and effective
     

  5. #5  
    insane321
    Guest
    nice thanks, this helped out a noob
     


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
  •