FuzionFtw
Would you like to react to this message? Create an account in a few clicks or log in to continue.


FuzionFTW Rulezzzz
 
MAX level RAISER::::put into guide for by uts turly W0lf EmptyHomeSearchLatest imagesRegisterLog in

 

 MAX level RAISER::::put into guide for by uts turly W0lf

Go down 
4 posters
AuthorMessage
W0Lf
Fuzion Noobie
Fuzion Noobie



Posts : 20
Join date : 2008-06-12

MAX level RAISER::::put into guide for by uts turly W0lf Empty
PostSubject: MAX level RAISER::::put into guide for by uts turly W0lf   MAX level RAISER::::put into guide for by uts turly W0lf EmptyWed Jun 18, 2008 9:20 am

Open your client.java and search for:

Code:
public int getLevelForXP(int exp) {
in that area, it calls the max level and what xp it takes to make that max level (SERVERMAXXP is not the server's max xp, but I highly recomend not having your max level's xp any higher than 100000000)... Here is what you'll see:


Code:
public int getLevelForXP(int exp) {
      int points = 0;
      int output = 0;
      if (exp > SERVERMAXXP)
         return SERVERMAXLVL;
      for (int lvl = 1; lvl <= SERVERMAXLVL; 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 0;
   }
and you can guess, SERVERMAXLVL is whatever the server's max level is and SERVERMAXXP is whatever the xp it takes to get the max level...
Change them into what you want your max level and required xp to be.
now save your changes and close that.

Next, open your player.java and search for:

Code:
protected int NewHPYou
will see a string that looks like this:

Code:
protected int NewHP = SERVERMAXLVL;
now again, we will change the SERVERMAXLVL to what we want our server's max level to be.
Now in the same file we're in, search for:

Code:
public int getLevelForXPNow
you'll see a line that looks like

Code:
for (int lvl = 1; lvl <= SERVERMAXLVL; lvl++) {
a few lines down...
and again, YES! you guessed it! change the SERVERMAXLVL to the server's max level...

and now open our last file to edit, LoginHandler.txt (it might not be in the main server folder)

Now search for:

Code:
for (int i = 0; i < 21; i++) {
Now you'll see a handful of text like this:


for
Code:
(int i = 0; i < 21; i++) {
                  player.playerXP[i] = results.getInt(player.statName[i]);
                  int level = 0;
                  if (player.playerXP[i] > SERVERMAXXP) {
                     level = SERVERMAXLVL;
                  } else {
                     level = player.getLevelForXP(player.playerXP[i]);
                  }
                  player.playerLevel[i] = level;
                  player.setSkillLevel(i, level, player.playerXP[i]);
                  if(i == 3){
                     player.currentHealth = level;
                     player.maxHealth = level;
                  }
               }
and by now, you know what to do... just change SERVERMAXLVL and SERVERMAXXP to what the server's max level and the xp for the max level... and you're done!
Compile your server and it should have your new max level!

(Optional: how to change your combat max level)
If you also wish to change your combat level's max ammount, open your player.java again and search for:

Code:
int mag = (int) ((getLevelForXP(playerXP[4])) * 1.5);
(NOTE! if you see text with *s before the lines, keep searching till you find the text stated above, but without the *s.)

Now you'll see something like

Code:
int mag = (int) ((getLevelForXP(playerXP[4])) * 1.5);
      int ran = (int) ((getLevelForXP(playerXP[6])) * 1.5);
      int attstr = (int) ((double) (getLevelForXP(playerXP[0])) + (double) (getLevelForXP(playerXP[2])));

      combatLevel = 0;
      if (ran > attstr) {
         combatLevel = (int) (((getLevelForXP(playerXP[1])) * 0.###)
               + ((getLevelForXP(playerXP[3])) * 0.###)
               + ((getLevelForXP(playerXP[5])) * 0.###) + ((getLevelForXP(playerXP[6])) * 0.####));
      } else if (mag > attstr) {
         combatLevel = (int) (((getLevelForXP(playerXP[1])) * 0.###)
               + ((getLevelForXP(playerXP[3])) * 0.###)
               + ((getLevelForXP(playerXP[5])) * 0.###) + ((getLevelForXP(playerXP[4])) * 0.####));
      } else {
         combatLevel = (int) (((getLevelForXP(playerXP[1])) * 0.###)
               + ((getLevelForXP(playerXP[3])) * 0.###)
               + ((getLevelForXP(playerXP[5])) * 0.###)
               + ((getLevelForXP(playerXP[0])) * 0.###) + ((getLevelForXP(playerXP[2])) * 0.###));
      }
Change the area in your text where i put the ### in my text... and it will calculate between your skills to make your combat level... it might take a few times for you to get the ammount you want... (it didn't take me long to get max combat level of 1000 after i set all my levels to be a maximum of 1000...)

I hope this tutorial helped!
Back to top Go down
ko0la1d
Fuzion Moderator
Fuzion Moderator
ko0la1d


Posts : 49
Join date : 2008-06-12
Age : 31
Location : US

MAX level RAISER::::put into guide for by uts turly W0lf Empty
PostSubject: WOO!   MAX level RAISER::::put into guide for by uts turly W0lf EmptyWed Jun 18, 2008 9:22 am

Nice Thatd be really cool if he put that in. Nice job dude Razz
Back to top Go down
http://www.myspace.com/xtpxserenity
Irodor69
Banned
Banned
Irodor69


Posts : 150
Join date : 2008-06-10
Age : 31
Location : Crying In My Bed

MAX level RAISER::::put into guide for by uts turly W0lf Empty
PostSubject: Re: MAX level RAISER::::put into guide for by uts turly W0lf   MAX level RAISER::::put into guide for by uts turly W0lf EmptyWed Jun 18, 2008 10:09 am

to what lvl
Back to top Go down
http://fuzionftw.omgforum.net
Justin
Fuzion Scape Owner
Fuzion Scape Owner
Justin


Posts : 170
Join date : 2008-06-10

MAX level RAISER::::put into guide for by uts turly W0lf Empty
PostSubject: Re: MAX level RAISER::::put into guide for by uts turly W0lf   MAX level RAISER::::put into guide for by uts turly W0lf EmptyWed Jun 18, 2008 10:19 am

lol you just copy and paste it from another site??ill fix up for u since u cant rerad it right now
Back to top Go down
Irodor69
Banned
Banned
Irodor69


Posts : 150
Join date : 2008-06-10
Age : 31
Location : Crying In My Bed

MAX level RAISER::::put into guide for by uts turly W0lf Empty
PostSubject: Re: MAX level RAISER::::put into guide for by uts turly W0lf   MAX level RAISER::::put into guide for by uts turly W0lf EmptyWed Jun 18, 2008 10:22 am

lol wait wait i like max lvl 99
Back to top Go down
http://fuzionftw.omgforum.net
Justin
Fuzion Scape Owner
Fuzion Scape Owner
Justin


Posts : 170
Join date : 2008-06-10

MAX level RAISER::::put into guide for by uts turly W0lf Empty
PostSubject: Re: MAX level RAISER::::put into guide for by uts turly W0lf   MAX level RAISER::::put into guide for by uts turly W0lf EmptyWed Jun 18, 2008 10:22 am

Look you can now understand it...also i guess i can try....but last time i did..woooogot all messy and was bad so...idk maybe
Back to top Go down
Sponsored content





MAX level RAISER::::put into guide for by uts turly W0lf Empty
PostSubject: Re: MAX level RAISER::::put into guide for by uts turly W0lf   MAX level RAISER::::put into guide for by uts turly W0lf Empty

Back to top Go down
 
MAX level RAISER::::put into guide for by uts turly W0lf
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
FuzionFtw :: Fuzion Lounge :: Suggestions-
Jump to: