Experienced Elementalist
- Joined
- Jul 10, 2008
- Messages
- 248
- Reaction score
- 15
-sigh-
No it's not, it's my own code. Maybe the older part but I added the phantom and the jett. This is from D.ChaosMS-Ex's source.
So not your code? Trololololo
Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!
Join Today!-sigh-
No it's not, it's my own code. Maybe the older part but I added the phantom and the jett. This is from D.ChaosMS-Ex's source.
I suggest putting a spoiler with code tags wrapped around this wall...hurts my eyes!I've been seeing a lot of job advancer npc's and stuff for the newer versions so I thought why not release this while I am in a good mood.
Auto Job advacer. Please this at the end of ur levelup function.
if (job >= 430 && job <= 434) { // Dual Blade
if (level >= 120 && job == 433) {
changeJob((short)434); //Blade Master
} else if (level >= 70 && job == 432) {
changeJob((short)433); //Blade Lord
} else if (level >= 55 && job == 431) {
changeJob((short)432); //Blade Specialist
} else if (level >= 30 && level < 70 && job != 431) {
changeJob((short)431); //Blade Acolyie
}
} else if (GameConstants.isAdventurer(job) && job > 0 && job < 600 && job != 100 && job != 200 && job != 300 && job != 400 && job != 500 && job % 10 >= 0) { // Explorer (Not Beginner), must have a class first
final String base_ = (String.valueOf(job).substring(0, 2)) + "0"; // Take the first 2 digits
if (level >= 120 && job % 10 != 2) {
changeJob((short)(Short.valueOf(base_) + 2));
} else if ((level >= 70 && level <= 119) && job % 10 != 1) {
changeJob((short)(Integer.valueOf(base_) + 1));
} // rest = need use npc
} else if (GameConstants.isKOC(job) && job > 1000) { // KOC (Not Nobless) //1500, 1510, 1511, 1512
final String base = (String.valueOf(job).substring(0, 2)) + "00"; // Take the first 2 digits
if (level >= 120 && job % 10 != 2 && job % 100 != 0) { // Level 120 and above, but not yet 4th job
changeJob((short)(Integer.valueOf(base) + 12));
} else if ((level >= 70 && level <= 119) && job % 10 != 1 && job % 100 != 0) { //Stil second job
changeJob((short)(Integer.valueOf(base) + 11));
} else if ((level >= 30 && level <= 69) && job % 100 == 0) { // Still first job
changeJob((short)(Integer.valueOf(base) + 10));
}
} else if (GameConstants.isAran(job)) { // Only one class
if (level >= 120 && job != 2112) {
changeJob((short)2112);
} else if ((level >= 70 && level <= 119) && job != 2111) {
changeJob((short)2111);
} else if ((level >= 30 && level <= 69) && job != 2110) {
changeJob((short)2110);
} else if ((level >= 10 && level <= 29) && job != 2100) {
changeJob((short)2100);
}
} else if (GameConstants.isEvan(job)) {
if (level >= 160 && job != 2218) {
changeJob((short)2218);
} else if (level >= 120 && level <= 159 && job != 2217) {
changeJob((short)2217);
} else if (level >= 100 && level <= 119 && job != 2216) {
changeJob((short)2216);
} else if (level >= 80 && level <= 99 && job != 2215) {
changeJob((short)2215);
} else if (level >= 60 && level <= 79 && job != 2214) {
changeJob((short)2214);
} else if (level >= 50 && level <= 59 && job != 2213) {
changeJob((short)2213);
} else if (level >= 40 && level <= 49 && job != 2212) {
changeJob((short)2212);
} else if (level >= 30 && level <= 39 && job != 2211) {
changeJob((short)2211);
} else if (level >= 20 && level <= 29 && job != 2210) {
changeJob((short)2210);
} else if (level >= 10 && level <= 19 && job != 2200) {
changeJob((short)2200);
}
} else if (GameConstants.isDemon(job)) {
if (level >= 120 && job == 3111) {
changeJob((short)3112); //Demon Slayer 4
} else if (level >= 70 && job == 3110) {
changeJob((short)3111); //Demon Slayer 3
} else if (level >= 30 && job == 3100) {
changeJob((short)3110); //Demon Slayer 2
}
} else if (GameConstants.isCannon(job)) {
if (level >= 120 && job == 531) {
changeJob((short)532); //Cannon Master
} else if (level >= 70 && job == 530) {
changeJob((short)531); //Cannon Trooper
} else if (level >= 30 && level < 70 && job != 530) {
changeJob((short)530); //Cannon Cannoneer
}
} else if (GameConstants.isMercedes(job)) {
if (level >= 120 && job == 2311) {
changeJob((short)2312); //Mercedes 4
} else if (level >= 70 && job == 2310) {
changeJob((short)2311); //Mercedes 3
} else if (level >= 30 && job == 2300) {
changeJob((short)2310); //Mercedes 2
}
} else if (GameConstants.isResist(job)) { //BattleMage
if (level >= 120 && job == 3211) { //not yet job advanced and job is 3rd job
changeJob((short)3212); //BattleMage 4
} else if (level >= 70 && job == 3210) { //not yet job advanced and job is 2nd job
changeJob((short)3211); //BattleMage 3
} else if (level >= 30 && job == 3200) { //make sure they are battle mage
changeJob((short)3210); //BattleMage 2
}
} else if (GameConstants.isResist(job)) { //Wild Hunter
if (level >= 120 && job == 3312) { //not yet job advanced and job is 3rd job
changeJob((short)3312); //WildHunter 4
} else if (level >= 70 && job == 3310) { //not yet job advanced and job is 2nd job
changeJob((short)3311); //WildHunter 3
} else if (level >= 30 && job == 3300) { //make sure they are wild hunter
changeJob((short)3310); //WildHunter 2
}
} else if (GameConstants.isResist(job)) { //Mechanic
if (level >= 120 && job == 3512) { //not yet job advanced and job is 3rd job
changeJob((short)3512); //Mechanic 4
} else if (level >= 70 && job == 3510) { //not yet job advanced and job is 2nd job
changeJob((short)3511); //Mechanic 3
} else if (level >= 30 && job == 3500) { //make sure they are mechanic
changeJob((short)3510); //Mechanic 2
}
} else if (GameConstants.isPhantom(job)) {
if (level >= 120 && job == 2411) {
changeJob((short)2412) ;
}else if (level >= 70 && job == 2410) {
changeJob((short)2411);//you tryed it alreadyk
}else if(level >= 30 && job == 2400) {
changeJob((short)2410);
}else if (level >=10 && job == 2003) {//this is first
changeJob((short)2400);//this is the 2nd job
}
} else if (GameConstants.isJett(job)) {
if (level >= 120 && job == 571) {
changeJob((short)572) ;
}else if (level >= 70 && job == 570) {
changeJob((short)571);
}else if(level >= 30 && job == 508) {
changeJob((short)570);
}else if (level >= 10 && job != 508) {
changeJob((short)508);
}
}
So not your code? Trololololo
You dunce I am the coder for D.ChaosMS-EX
No wonder why it's so bad...
No wonder why it's so bad...
can someone tell me where i need paste this code in Lithium?
But it's not working tho, so save your breath!
public void gainExp(final int total, final boolean show, final boolean inChat, final boolean white) {
try {
int prevexp = getExp();
int needed = getNeededExp();
if (total > 0) {
stats.checkEquipLevels(this, total); //gms like
}
if ((level >= 200 || (GameConstants.isKOC(job) && level >= 120)) && !isIntern()) {
setExp(0);
//if (exp + total > needed) {
// setExp(needed);
//} else {
// exp += total;
//}
} else {
boolean leveled = false;
long tot = exp + total;
if (tot >= needed) {
exp += total;
levelUp();
leveled = true;
if ((level >= 200 || (GameConstants.isKOC(job) && level >= 120)) && !isIntern()) {
setExp(0);
} else {
needed = getNeededExp();
if (exp >= needed) {
setExp(needed - 1);
}
}
} else {
exp += total;
}
if (total > 0) {
familyRep(prevexp, needed, leveled);
}
}
if (total != 0) {
if (exp < 0) { // After adding, and negative
if (total > 0) {
setExp(needed);
} else if (total < 0) {
setExp(0);
}
}
updateSingleStat(MapleStat.EXP, getExp());
if (show) { // still show the expgain even if it's not there
client.getSession().write(InfoPacket.GainEXP_Others(total, inChat, white));
}
}