Thread: [PI]New Players CB lvl: 126

Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1 [PI]New Players CB lvl: 126 
    Registered Member
    Join Date
    Feb 2012
    Posts
    16
    Thanks given
    0
    Thanks received
    1
    Rep Power
    11
    Hi guys,

    When new players join my server they get automaticly a combat level of 99 and all combat skills 99 i want to change that but idk in which file it is located

    Can u guys tell me where it is located? in which file? which line? i can fix it myself if i knew where it is..


    Thanks guys.
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Feb 2012
    Posts
    629
    Thanks given
    201
    Thanks received
    59
    Rep Power
    0
    player class
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Feb 2012
    Posts
    16
    Thanks given
    0
    Thanks received
    1
    Rep Power
    11
    ok do u know where i need to search for?
    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Apr 2012
    Posts
    3,225
    Thanks given
    2,554
    Thanks received
    832
    Rep Power
    0
    Post me your Player.java
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Feb 2012
    Posts
    16
    Thanks given
    0
    Thanks received
    1
    Rep Power
    11
    i found this:
    public void requestFileServer() {
    //Downloads maps to players cache on login
    for (int skill = 0; skill < 7; skill++) {
    c.playerXP[skill] = c.getPA().getXPForLevel(99)+5;
    c.playerLevel[skill] = c.getPA().getLevelForXP(c.playerXP[skill]);
    c.getPA().refreshSkill(skill);
    }
    c.constitution = 990;
    c.getPA().requestUpdates();
    }
    ik it has to do something with this i tried many things, when i tried some things i get lvl 1 but hitpoints start at 0 then goes toe 1,2,3,4,5,6,7,8,9 ......
    how do i fix it??
    btw this is inside playerass.java
    Reply With Quote  
     

  6. #6  
    Banned

    Join Date
    Apr 2012
    Posts
    3,225
    Thanks given
    2,554
    Thanks received
    832
    Rep Power
    0
    Quote Originally Posted by stefano191 View Post
    i found this:
    public void requestFileServer() {
    //Downloads maps to players cache on login
    for (int skill = 0; skill < 7; skill++) {
    c.playerXP[skill] = c.getPA().getXPForLevel(99)+5;
    c.playerLevel[skill] = c.getPA().getLevelForXP(c.playerXP[skill]);
    c.getPA().refreshSkill(skill);
    }
    c.constitution = 990;
    c.getPA().requestUpdates();
    }
    ik it has to do something with this i tried many things, when i tried some things i get lvl 1 but hitpoints start at 0 then goes toe 1,2,3,4,5,6,7,8,9 ......
    how do i fix it??
    btw this is inside playerass.java
    No no no.. give me your whole player.java so i can help you.
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Feb 2012
    Posts
    16
    Thanks given
    0
    Thanks received
    1
    Rep Power
    11
    Reply With Quote  
     

  8. #8  
    Banned
    Join Date
    Feb 2012
    Posts
    629
    Thanks given
    201
    Thanks received
    59
    Rep Power
    0
    startup
    Reply With Quote  
     

  9. #9  
    Banned
    Join Date
    Dec 2011
    Posts
    438
    Thanks given
    15
    Thanks received
    8
    Rep Power
    0
    Replace this:

    Code:
     public int getLevelForXP(int exp) {
                    int points = 0;
                    int output = 0;
                    for (int lvl = 1; lvl <= 99; lvl++) {
                            points += Math.floor((double)lvl + 300.0 * Math.pow(2.0, (double)lvl / 7.0));
                            output = (int)Math.floor(points / 4);
                            if (output >= exp)
                                    return lvl;
                    }
                    return 1;
            }
    With this:

    Code:
    public int getLevelForXP(int exp) {
    		int points = 0;
    		int output = 0;
    
    		for (int lvl = 1; lvl <= 99; lvl++) {
    			points += Math.floor((double)lvl + 300.0 * Math.pow(2.0, (double)lvl / 7.0));
    			output = (int)Math.floor(points / 4);
    			if (output >= exp)
    				return lvl;
    		}
    		return 99;
    	}
    Tell me if that did anything
    Reply With Quote  
     

  10. #10  
    Banned
    Join Date
    Feb 2012
    Posts
    629
    Thanks given
    201
    Thanks received
    59
    Rep Power
    0
    What base are you using ?
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. Replies: 1
    Last Post: 02-01-2012, 07:46 PM
  2. GOT MY lvl 126 main back
    By Haloid95 in forum Chat
    Replies: 4
    Last Post: 02-02-2011, 04:15 AM
  3. Lvl 126
    By Nuked in forum Help
    Replies: 2
    Last Post: 07-08-2010, 04:10 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •