- Joined
- Feb 27, 2010
- Messages
- 12
- Reaction score
- 6
I decided to help out the community since I am quitting my server. (Aka: My first release on ragezone)
This is for high rate server who want EXP rate to decrease for each Rebirth they do.
Sorry about the messiness, My coding is always messy :glare:
Add this in your MapleCharacter.Java, Inside setRates()
And Don't forget to add
into your
Credits : Me
Don't forget to thank me if this helped :]
This is for high rate server who want EXP rate to decrease for each Rebirth they do.
Sorry about the messiness, My coding is always messy :glare:
Add this in your MapleCharacter.Java, Inside setRates()
PHP:
int newexprate = ServerConstants.EXP_RATE;
int numReborns = getReborns();
int looper = 0;
while (numReborns - 1000 > 0){
numReborns -= 1000;
looper++;
}
int rb1000 = 1000;
if (looper == 0){ // 1-1000rb
while ((numReborns - 5) >= 0) {
numReborns -= 5;
newexprate = (newexprate - 1);
}
}
if (looper == 1){ // 1000-2000 rb
while ((rb1000 - 5) >= 0) {
rb1000 -= 5;
newexprate = (newexprate - 1);
}
rb1000 = 1000;
while ((numReborns - 10) >= 0) {
numReborns -= 10;
newexprate = (newexprate - 1);
}
}
if (looper == 2){ // 2000-3000rb
while ((rb1000 - 5) >= 0) {
rb1000 -= 5;
newexprate = (newexprate - 1);
}
rb1000 = 1000;
while ((rb1000 - 10) >= 0) {
rb1000 -= 10;
newexprate = (newexprate - 1);
}
rb1000 = 1000;
while ((numReborns - 100) >= 0) {
numReborns -= 100;
newexprate = (newexprate - 1);
}
this.dropRate = 2;
}
if (looper >= 3){ // 3000rb+
while ((rb1000 - 5) >= 0) { // 1-1000
rb1000 -= 5;
newexprate = (newexprate - 1);
}
rb1000 = 1000;
while ((rb1000 - 10) >= 0) { // 1000-2000
rb1000 -= 10;
newexprate = (newexprate - 1);
}
rb1000 = 1000;
while ((rb1000 - 20) >= 0) { // 3000-4000
rb1000 -= 20;
newexprate = (newexprate - 1);
}
rb1000 = 1000;
while ((numReborns - 50) >= 0 && newexprate >= 50) {//4000+
numReborns -= 50;
newexprate = (newexprate - 1);
}
this.dropRate = 1;
}
if (newexprate < 50){
newexprate = 50;
}
this.expRate = newexprate;
message("Your Rates are currently :" + getRates());
PHP:
setRates();
PHP:
doReborn()
Don't forget to thank me if this helped :]
Last edited by a moderator: