Thread: Changing max lvl!

Results 1 to 4 of 4
  1. #1 Changing max lvl! 
    Registered Member
    Join Date
    May 2007
    Posts
    95
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Purpose: To change the max lvl of a skill.

    Difficulty: 1 realy easy

    Assumed Knowledge: copy and a brain

    Server Base: Satan's isle

    Classes Modified:Client.java

    Procedure OPen up client.java

    Step 1: Find
    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;
    Step 2: Edit it so its like this,
    public int getLevelForXP(int exp) {
    int points = 0;
    int output = 0;

    for (int lvl = 1; lvl <= THE MAX LVL YOU WANT; 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 THE MAX LVL YOU WANT!;
    Step 3: So in the end it looks like this ( I changed it from 99 to 135)
    public int getLevelForXP(int exp) {
    int points = 0;
    int output = 0;

    for (int lvl = 1; lvl <= 135; 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 135;


    Credits: me


    EDIT: if you cant find what i told you to in step one, change the 99s to the max lvl you have on your source.
     

  2. #2  
    Im Insane
    P Hatz Own's Avatar
    Join Date
    Oct 2006
    Posts
    222
    Thanks given
    1
    Thanks received
    0
    Rep Power
    29
    Nice TuT.. nicely done


    Thanks.
     

  3. #3  
    PAC MAN
    Guest
    yea nice tut repp for u
     

  4. #4  
    Registered Member
    Join Date
    May 2007
    Posts
    95
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    =o bumped from like the 3rd page thx pac man also thx p hats
     


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. [NON]Changing to ->
    By +Deus Ex in forum Snippets
    Replies: 4
    Last Post: 05-17-2010, 03:42 AM
  2. [317] Changing IP
    By Skype in forum Help
    Replies: 11
    Last Post: 11-25-2009, 02:44 AM
  3. [525] Changing Ip
    By Rusty_Online in forum Help
    Replies: 0
    Last Post: 07-09-2009, 08:01 PM
  4. Changing teh
    By I Mayhem I in forum Help
    Replies: 0
    Last Post: 05-28-2009, 02:08 AM
  5. Changing Me Name Soon to:
    By `Google in forum Console
    Replies: 2
    Last Post: 03-18-2008, 05:16 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •