RaGEZONE sponsored advertisment:
The free 3D side scrolling MMORPG.
09-08-2009
#1 (permalink )
I am a person.
Rank:
Member + Join Date: Aug 2009
Posts: 450
Thanked 41 Times in 34 Posts
Folderz Auto Job
This is my version of auto job. It works for me.
In the level up function. Code:
/* AutoJob Start */
if (level >= 70 && level <= 90) {
int[] autojob = {**** 120, 130, 210, 220, 230, 310, 320, 410, 420, 510, 520};
for (int t : autojob) {
if (getJob().getId() == t) {
changeJob(MapleJob.getById(getJob().getId()+1));
}
}
} else if (level >= 120 && level <= 140) {
int[] autojob = {**** 121, 131, 211, 221, 231, 311, 321, 411, 421, 511, 521};
for (int t : autojob) {
if (getJob().getId() == t) {
changeJob(MapleJob.getById(getJob().getId()+1));
}
}
} else if (level == 10 || level == 30 || (getJob().getId() == 0 && level >= 10)){
NPCScriptManager.getInstance().start(getClient(), 9200000, null, null);
}
/* AutoJob End */
The NPC (9200000 or doesn't work) Code:
var status = 0;
var secondJob = Array("#L0#Fighter#l\r\n#L1#Page#l\r\n#L2#Spearman#l", "#L3#Fire Wizard#l\r\n#L4#Ice Wizard#l\r\n#L5#Cleric#l", "#L6#Hunter#l\r\n#L7#Crossbow man#l", "#L8#Assassin#l\r\n#L9#Bandit#l", "#L10#Brawler#l\r\n#L11#Gunslinger#l");
var jobs = Array(**** 120, 130, 210, 220, 230, 310, 320, 410, 420, 510, 520);
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();
} else {
if (mode == 0 && status == 0) {
cm.dispose();
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
if (cm.getPlayer().getLevel() == 10 || (cm.getPlayer().getJob().getId() == 0 && cm.getPlayer().getLevel() >= 10)) {
cm.sendSimple("#b#L0#Warrior#l\r\n#L1#Mage#l\r\n#L2#Bowman#l\r\n#L3#Theif#l\r\n#L4#Pirate#l#k");
} else if (cm.getPlayer().getLevel() == 30) {
cm.sendSimple("#b" + secondJob[(cm.getPlayer().getJob().getId() / 100) - 1] + "#k");
status++;
} else {
cm.sendOk("Hi there, having a nice day?");
cm.dispose();
}
} else{
if (status == 1)
cm.changeJobById((selection + 1) * 100);
else if (status == 2)
cm.changeJobById(jobs[selection]);
cm.sendOk("You have now advanced in job!");
cm.dispose();
}
}
}
__________________
Quote:
Sometimes I want to ask god why there is hunger, famine and poverty in the world.
Sometimes I am scared he would ask me the same question.
RaGEZONE sponsored advertisment:
09-08-2009
#2 (permalink )
Monster Member
Rank: Member
Join Date: Aug 2008
Posts: 169
Thanked 7 Times in 7 Posts
Re: Folderz Auto Job
err wut exactly is this? It pops up a npc convo when u level to 10-30-70-120?
Endorsement
09-08-2009
#3 (permalink )
I am a person.
Rank:
Member + Join Date: Aug 2009
Posts: 450
Thanked 41 Times in 34 Posts
Re: Folderz Auto Job
nope. u has to read it to find out. its 1st, 2nd, 3rd and 4th auto job.
__________________
Quote:
Sometimes I want to ask god why there is hunger, famine and poverty in the world.
Sometimes I am scared he would ask me the same question.
Endorsement
09-08-2009
#4 (permalink )
Monster Member
Rank: Member
Join Date: Aug 2008
Posts: 169
Thanked 7 Times in 7 Posts
Re: Folderz Auto Job
:\
thats not possible lol
cus u gotta choose first and 2nd job first :\ so u cant autojob those automatically PSH!!! U LIE D:
09-08-2009
#5 (permalink )
I am a person.
Rank:
Member + Join Date: Aug 2009
Posts: 450
Thanked 41 Times in 34 Posts
Re: Folderz Auto Job
says you. Why don't you try it out? For third and fourth its 100% auto. First and Second open the most simple and pro job advance NPC ever. First and Second is more like semi-auto but still more auto then anything else.
__________________
Quote:
Sometimes I want to ask god why there is hunger, famine and poverty in the world.
Sometimes I am scared he would ask me the same question.
09-08-2009
#6 (permalink )
Infraction Banned
Rank:
Member + Join Date: Aug 2009
Posts: 346
Thanked 72 Times in 33 Posts
Re: Folderz Auto Job
Nice release. NPC isn't needed though. Can you add KoC to this? :P
09-08-2009
#7 (permalink )
I am a person.
Rank:
Member + Join Date: Aug 2009
Posts: 450
Thanked 41 Times in 34 Posts
Re: Folderz Auto Job
NPC is for Job 1 and 2. Ill release KoC & mage job fix tomorow
__________________
Quote:
Sometimes I want to ask god why there is hunger, famine and poverty in the world.
Sometimes I am scared he would ask me the same question.
09-08-2009
#8 (permalink )
The Omega
Rank: Member
Join Date: Oct 2008
Posts: 106
Thanked 11 Times in 5 Posts
Re: Folderz Auto Job
Decent. Thought I don't understand why you don't make the more advanced job advancer, we have a fine one. And I suggest you get rid of the beginner check, because some people actually do stay as a beginner.
Nice though.
09-08-2009
#9 (permalink )
Account Upgraded | Title Enabled!
Rank:
Member + Join Date: Mar 2009
Location: America
Posts: 443
Thanked 69 Times in 40 Posts
Re: Folderz Auto Job
PHP Code:
if (( level == 70 || level == 120 ) && ! getJob (). equals ( MapleJob . BEGINNER ) && getJob (). getId () % 100 != 0 ) { changeJob ( MapleJob . getById ( getJob (). getId ()+ 1 )); }
Magic.
Last edited by PinkGatsby; 09-08-2009 at 02:29 PM .
09-08-2009
#10 (permalink )
I am a person.
Rank:
Member + Join Date: Aug 2009
Posts: 450
Thanked 41 Times in 34 Posts
Re: Folderz Auto Job
Originally Posted by PinkGatsby PHP Code:
if (( level == 70 || level == 120 ) && ! getJob (). equals ( MapleJob . BEGINNER ) && getJob (). getId () % 100 != 0 ) {
changeJob ( MapleJob . getById ( getJob (). getId ()+ 1 ));
}
Magic.
If the rates are to high it skips @ level 70 and 120
__________________
Quote:
Sometimes I want to ask god why there is hunger, famine and poverty in the world.
Sometimes I am scared he would ask me the same question.
09-08-2009
#11 (permalink )
Account Upgraded | Title Enabled!
Rank:
Member + Join Date: Mar 2009
Location: America
Posts: 443
Thanked 69 Times in 40 Posts
Re: Folderz Auto Job
Originally Posted by Folderz
If the rates are to high it skips @ level 70 and 120
Unless your server 'sets' the level instead of incrementing one by one then I doubt it'll skip levels.
09-08-2009
#12 (permalink )
I am a person.
Rank:
Member + Join Date: Aug 2009
Posts: 450
Thanked 41 Times in 34 Posts
Re: Folderz Auto Job
Originally Posted by PinkGatsby
Unless your server 'sets' the level instead of incrementing one by one then I doubt it'll skip levels.
It did on my computer when the rates were to high (upwards of 100k on snails)
__________________
Quote:
Sometimes I want to ask god why there is hunger, famine and poverty in the world.
Sometimes I am scared he would ask me the same question.
09-08-2009
#13 (permalink )
Account Upgraded | Title Enabled!
Rank:
Member + Join Date: Mar 2009
Location: America
Posts: 443
Thanked 69 Times in 40 Posts
Re: Folderz Auto Job
Originally Posted by Folderz
It did on my computer when the rates were to high (upwards of 100k on snails)
Haha and I just tried on my computer. It works
09-08-2009
#14 (permalink )
I am a person.
Rank:
Member + Join Date: Aug 2009
Posts: 450
Thanked 41 Times in 34 Posts
Re: Folderz Auto Job
Originally Posted by PinkGatsby
Haha and I just tried on my computer. It works
Then keep on going up until it doesn't :P. I like to make mine work no matter what.
I know some servers that donners can get level 135 in 1 kill.
__________________
Quote:
Sometimes I want to ask god why there is hunger, famine and poverty in the world.
Sometimes I am scared he would ask me the same question.
09-08-2009
#15 (permalink )
Account Upgraded | Title Enabled!
Rank:
Member + Join Date: Mar 2009
Location: America
Posts: 443
Thanked 69 Times in 40 Posts
Re: Folderz Auto Job
Originally Posted by Folderz
Then keep on going up until it doesn't :P. I like to make mine work no matter what.
I know some servers that donners can get level 135 in 1 kill.
Oh.. Should have given me a better description of the problem. You're talking about when players get past 70 / 130 without first job due to high rates ? Easily fixed :)
PHP Code:
if ( level >= 70 && ! getJob (). equals ( MapleJob . BEGINNER ) && getJob (). getId () % 100 != 0 ) {
changeJob ( MapleJob . getById ( getJob (). getId ()+ 1 ));
}
Magic.
09-08-2009
#16 (permalink )
I am a person.
Rank:
Member + Join Date: Aug 2009
Posts: 450
Thanked 41 Times in 34 Posts
Re: Folderz Auto Job
Originally Posted by PinkGatsby
Oh.. Should have given me a better description of the problem. You're talking about when players get past 70 / 130 without first job due to high rates ? Easily fixed :) PHP Code:
if ( level >= 70 && ! getJob (). equals ( MapleJob . BEGINNER ) && getJob (). getId () % 100 != 0 ) { changeJob ( MapleJob . getById ( getJob (). getId ()+ 1 )); }
Magic.
No, I'm talking about extreme massive over leveling, so much that it skips or something and you don't advance in job. I started with the one you had right there but I had to change it because sometimes it was not working when I was testing massive over-leveling.
__________________
Quote:
Sometimes I want to ask god why there is hunger, famine and poverty in the world.
Sometimes I am scared he would ask me the same question.
09-08-2009
#17 (permalink )
Account Upgraded | Title Enabled!
Rank:
Member + Join Date: Mar 2009
Location: America
Posts: 443
Thanked 69 Times in 40 Posts
Re: Folderz Auto Job
Originally Posted by Folderz
No, I'm talking about extreme massive over leveling, so much that it skips or something and you don't advance in job. I started with the one you had right there but I had to change it because sometimes it was not working when I was testing massive over-leveling.
Fair enough..
I just want to point out that the most recent one I gave is basically the same as what your code does right now.
09-08-2009
#18 (permalink )
I am a person.
Rank:
Member + Join Date: Aug 2009
Posts: 450
Thanked 41 Times in 34 Posts
Re: Folderz Auto Job
Originally Posted by PinkGatsby
Fair enough..
I just want to point out that the most recent one I gave is basically the same as what your code does right now.
Yea, it does. It just isn't noob server friendly :P. I use yours but when the person I made this for told me the rates I re-made it.
__________________
Quote:
Sometimes I want to ask god why there is hunger, famine and poverty in the world.
Sometimes I am scared he would ask me the same question.
09-08-2009
#19 (permalink )
KayoMS Coder
Rank:
Member + Join Date: Aug 2009
Location: c.getNyC.pos
Posts: 478
Thanked 33 Times in 17 Posts
Re: Folderz Auto Job
Nice release works for me and using
__________________
SecretSource
Spoiler :
Quote:
good luck to anyone who runs these files, remember to try to stay level headed no matter how big you get.
Love,
raptorjesus
09-08-2009
#20 (permalink )
I am a person.
Rank:
Member + Join Date: Aug 2009
Posts: 450
Thanked 41 Times in 34 Posts
Re: Folderz Auto Job
Originally Posted by NyCPirate
Nice release works for me and using
thank you :)
__________________
Quote:
Sometimes I want to ask god why there is hunger, famine and poverty in the world.
Sometimes I am scared he would ask me the same question.
09-14-2009
#21 (permalink )
Biggulp productions
Rank:
Member + Join Date: Dec 2008
Location: Salem
Posts: 260
Thanked 32 Times in 8 Posts
Re: Folderz Auto Job
ok it works but im trying to add something and I cant seem to make it work
how would i make it so that if you are a gm or super gm it wont popup and ask you to change your job? ---------- Post added at 02:50 AM ---------- Previous post was at 02:43 AM ---------- nvm i figured it out
__________________
*Press the thanks button if I helped*
09-15-2009
#22 (permalink )
*
Rank:
Alpha Member Join Date: Jul 2008
Location: Dance Line
Posts: 2,569
Thanked 26 Times in 21 Posts
Re: Folderz Auto Job
If i were you i'd make sera make them choose what they will be, and set a boolean from that and that will be saved so that you write a check from what they chose and it will auto job for 1st and 2nd job
09-15-2009
#23 (permalink )
Biggulp productions
Rank:
Member + Join Date: Dec 2008
Location: Salem
Posts: 260
Thanked 32 Times in 8 Posts
Re: Folderz Auto Job
Originally Posted by CarterFTWWW
If i were you i'd make sera make them choose what they will be, and set a boolean from that and that will be saved so that you write a check from what they chose and it will auto job for 1st and 2nd job
good for you
__________________
*Press the thanks button if I helped*
09-15-2009
#24 (permalink )
I am a person.
Rank:
Member + Join Date: Aug 2009
Posts: 450
Thanked 41 Times in 34 Posts
Re: Folderz Auto Job
Originally Posted by CarterFTWWW
If i were you i'd make sera make them choose what they will be, and set a boolean from that and that will be saved so that you write a check from what they chose and it will auto job for 1st and 2nd job
That would work. It would tie into my custom rebirth system that makes you talk to sera... The only problem with what you said is that there would be people who want to change job often and rebirth lots in high rate servers.
Im to lazy to... but I would put in
if (cm.getPlayer.getJob().getId() % 10 == 1 || cm.getPlayer.getJob().getId() % 10 == 0 && (cm.getPlayer.getLevel() == 70 || cm.getPlayer.getLevel == 120) {
or some version of that. Learning java (not just odin) FTW
__________________
Quote:
Sometimes I want to ask god why there is hunger, famine and poverty in the world.
Sometimes I am scared he would ask me the same question.
09-15-2009
#25 (permalink )
*
Rank:
Alpha Member Join Date: Jul 2008
Location: Dance Line
Posts: 2,569
Thanked 26 Times in 21 Posts
Re: Folderz Auto Job
Originally Posted by Folderz
That would work. It would tie into my custom rebirth system that makes you talk to sera... The only problem with what you said is that there would be people who want to change job often and rebirth lots in high rate servers.
Im to lazy to... but I would put in
if (cm.getPlayer.getJob().getId() % 10 == 1 || cm.getPlayer.getJob().getId() % 10 == 0 && (cm.getPlayer.getLevel() == 70 || cm.getPlayer.getLevel == 120) {
or some version of that. Learning java (not just odin) FTW
How would it affect it?
Just write a check in the rebirth system
Also another idea is to make it when they register on the website.