@
prabza1234 has made a request on how to get infinite leveling. It is in fact not hard :P
In player.leveling.cs (found in wServer --> Realm --> Entities --> Player)
Find the area that says
Code:
private bool CheckLevelUp()
{
if (Experience - GetLevelExp(Level) >= ExperienceGoal && Level < 20)
{
Level++;
ExperienceGoal = GetExpGoal(Level);
foreach (var i in XmlDatas.TypeToElement[ObjectType].Elements("LevelIncrease"))
{
var rand = new Random();
var min = int.Parse(i.Attribute("min").Value);
var max = int.Parse(i.Attribute("max").Value) + 1;
var limit = int.Parse(XmlDatas.TypeToElement[ObjectType].Element(i.Value).Attribute("max").Value);
var idx = StatsManager.StatsNameToIndex(i.Value);
Stats[idx] += rand.Next(min, max);
if (Stats[idx] > limit) Stats[idx] = limit;
}
HP = Stats[0] + Boost[0];
MP = Stats[1] + Boost[1];
UpdateCount++;
if (Level == 20)
foreach (var i in Owner.Players.Values)
i.SendInfo(Name + " achieved level 20");
questEntity = null;
return true;
}
CalculateFame();
return false;
}
Change the number 20 in the line:
Code:
if (Experience - GetLevelExp(Level) >= ExperienceGoal && Level < 20)
to whatever you want it to be. My example will be 10000 which will look like:
Code:
if (Experience - GetLevelExp(Level) >= ExperienceGoal && Level < 10000)
Because of this you will have to change the quests that are also found in player.leveling.cs
For the reaching level 20 bit you can change it to what you want it to be like
Code:
if (Level == 20)
foreach (var i in Owner.Players.Values)
i.SendInfo(Name + " achieved level 20");
questEntity = null;
return true;
to
Code:
if (Level == 100)
foreach (var i in Owner.Players.Values)
i.SendInfo(Name + " achieved level 100");
questEntity = null;
return true;
Very simple and straight forwarding so if you didn't know this... well if you own your own private server and develop it, you should look around the source and find some things that might help you instead of just making your own custom items
Edit:
Crazyjani decided to post this so I will add this here:
Code:
if (Experience - GetLevelExp(Level) >= ExperienceGoal)