[HELP]Increase Maximum Level(LOTF)

07/24/2009 02:51 DePredaTe#1
How do I increase maximum level, which file do I edit?
07/24/2009 04:14 Arcotemple:)#2
Quote:
Originally Posted by DePredaTe View Post
How do I increase maximum level, which file do I edit?
first go to character.cs first search for this
Code:
 if (Exp > DataBase.NeededXP(Level) && Level < 130)
and udner that you'll see this
Code:
while (Exp > DataBase.NeededXP(Level) && Level < 130)
change both of those 130's to what ever number you want.
now go to database.cs
now search for this
Code:
            else if (Level == 129)
and then you add levels add exp to whatever level you put in the the first code!
and there you go.
07/24/2009 05:10 Pete1990#3
next time use search there is like 3 threads on this thanks
#Request close
07/24/2009 05:15 f0am#4
for me its else if (Level == 134) :P
07/24/2009 05:45 Arcotemple:)#5
lol cuz your max level is 135
07/24/2009 22:04 DePredaTe#6
Alright, I searched for it.
I found the 2 in character.cs but i didn't find the 1 in database.cs
So, i went ahead and changed those two to what i wanted (150) and now when I get to level 135, and hit 1 mob, i level strait to level 150.
Is it because I didn't change what was in database.cs?
Because I searched it, and I didn't find anything even close to that.
07/25/2009 00:54 tanelipe#7
Are you sure you added the below code? If you didn't, I believe LOTF returns 1 from the level exp function if the level was not listed. (the last else statement.)

Below the code you need to add 'return XXX' and replace the XXX with whatever integer value you wish the experience to be.

PHP Code:
else if (Level == 150
07/25/2009 01:23 DePredaTe#8
Code:
                else if (Level == 130 || Level == 131 || Level == 132 || Level == 133 || Level == 134 || Level == 135
Are you talking about this line in character.cs? Do I just keep adding them? or are you talking about
Code:
            if (Exp > ExternalDatabase.NeededXP(Level) && Level < 135)
            {
                Leveled = true;
                while (Exp > ExternalDatabase.NeededXP(Level) && Level < 135)
I can't determine which one you guys are talking about. I think Arcotemple's source is different than mine, because he is using '129' instead of '134'
07/25/2009 02:24 Arcotemple:)#9
im not using 129
im using 134 lol
i just posted that cuz i was pretty sure you havent edited your to say 134 yet
07/25/2009 03:51 DePredaTe#10
Oh, well. Mine must have been previously edited. Well, do you know which one i edit?
07/25/2009 03:52 Arcotemple:)#11
i told you already lol
just change the numbers to your needing
07/25/2009 05:13 DePredaTe#12
I didn't find the one you told me to change in database.cs or anythingclose to that.
07/25/2009 05:16 Pete1990#13
HTML Code:
Search for this         public static ulong NeededXP(uint Level) in DataBase.cs And then AT the End Of

HTML Code:
else if (Level == 134)
                return 12437417590;
Add
HTML Code:
else if (Level == XXX)
                return XXXXXXXX;
XXXX stands for the next level and the Exp needed thats all u do
07/25/2009 05:33 f0am#14
actually

search for

Code:
 if (Exp > DataBase.NeededXP(Level) && Level < 130)
            {
                Leveled = true;
                while (Exp > DataBase.NeededXP(Level) && Level < 130)
or it might be

Code:
 if (Exp > DataBase.NeededXP(Level) && Level < 135)
            {
                Leveled = true;
                while (Exp > DataBase.NeededXP(Level) && Level < 135)
Change it to w.e number is ur highest level then...


fix your expball >< to the level of max.

Code:
else if (ItemParts[0] == "723700")
then you will find

Code:
else if (Level == 129)
                return 1073741759;
            else
                return 1;
or

else if (Level == 134)
return 12437417590;
to me it seems like its going up at like the 130s by 80m i think.

and say ur going to 140 end it at 139 and do for the next

Code:
else 
     return 1;
then edit ur reborn

Code:
else if (Level == 130
just do like

Code:
else if (Level >= 130 && Level <= 140)
{
stat stuffs
}
and walah!! you are done with your level stuffs. =]]

07/25/2009 05:38 Pete1990#15
No becuse if u dont change it inside of DataBase.cs then when u hit 135 ur 150 or what ever level ur gonna want and i just changed it inside of the umm database.cs before and it worked fine