PDA

View Full Version : [508] Changing Max level [Source-Davidscape]



Lolliescape
June 25th, 2010, 09:45
I am using Davidscape Source, But it has 174 combat?
I really don't wanna have a server with custom combat, Can someone please post how to fix it back to 126 or 138.
Thnx heaps,

~Timmy

Cataclysm
June 25th, 2010, 17:27
hmmm go to client then find combat idk sucks for you... Im noob

Lolliescape
June 25th, 2010, 23:41
Thnx, i've went there and spent 30 minutes trying to find out what is wrong,
Please someone help :)

Davidi2
July 2nd, 2010, 18:23
Look around :P

millennium
July 3rd, 2010, 17:40
Lol.... > Player.java > public int getLevelForXP(int skillId) {

Replace with > see the 99's


public int getLevelForXP(int skillId) {
int exp = skillXP[skillId];
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 - 1) >= exp) {
return lvl;
}
}

return 99;
}