You are Unregistered, please register to gain Full access.
    


RaGEZONE sponsored advertisment:

Dragonica Image
The free 3D side scrolling MMORPG.

 
 
LinkBack Thread Tools
Old 09-08-2009   #1 (permalink)
I am a person.
 
Folderz's Avatar
 
Rank: Member +
Join Date: Aug 2009
Posts: 450
Thanked 41 Times in 34 Posts

Folderz Auto Job

Your Ad Here
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.

Folderz is offline  
Thanked by :

RaGEZONE sponsored advertisment:
Old 09-08-2009   #2 (permalink)
Monster Member
 
ijohnny's Avatar
 
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?
__________________
ijohnny is offline  

Endorsement
Old 09-08-2009   #3 (permalink)
I am a person.
 
Folderz's Avatar
 
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.

Folderz is offline  

Endorsement

Old 09-08-2009   #4 (permalink)
Monster Member
 
ijohnny's Avatar
 
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:
__________________
ijohnny is offline  
Old 09-08-2009   #5 (permalink)
I am a person.
 
Folderz's Avatar
 
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.

Folderz is offline  
Old 09-08-2009   #6 (permalink)
Infraction Banned
 
ToyFork's Avatar
 
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
ToyFork is offline  
Old 09-08-2009   #7 (permalink)
I am a person.
 
Folderz's Avatar
 
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.

Folderz is offline  
Old 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.
FluffyMS is offline  
Old 09-08-2009   #9 (permalink)
Account Upgraded | Title Enabled!
 
PinkGatsby's Avatar
 
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.
PinkGatsby is offline  
Thanked by :
Old 09-08-2009   #10 (permalink)
I am a person.
 
Folderz's Avatar
 
Rank: Member +
Join Date: Aug 2009
Posts: 450
Thanked 41 Times in 34 Posts

Re: Folderz Auto Job

Originally Posted by PinkGatsby View Post
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.

Folderz is offline  
Old 09-08-2009   #11 (permalink)
Account Upgraded | Title Enabled!
 
PinkGatsby's Avatar
 
Rank: Member +
Join Date: Mar 2009
Location: America
Posts: 443
Thanked 69 Times in 40 Posts

Re: Folderz Auto Job

Originally Posted by Folderz View Post
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.
PinkGatsby is offline  
Thanked by :
Old 09-08-2009   #12 (permalink)
I am a person.
 
Folderz's Avatar
 
Rank: Member +
Join Date: Aug 2009
Posts: 450
Thanked 41 Times in 34 Posts

Re: Folderz Auto Job

Originally Posted by PinkGatsby View Post
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.

Folderz is offline  
Old 09-08-2009   #13 (permalink)
Account Upgraded | Title Enabled!
 
PinkGatsby's Avatar
 
Rank: Member +
Join Date: Mar 2009
Location: America
Posts: 443
Thanked 69 Times in 40 Posts

Re: Folderz Auto Job

Originally Posted by Folderz View Post
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
PinkGatsby is offline  
Old 09-08-2009   #14 (permalink)
I am a person.
 
Folderz's Avatar
 
Rank: Member +
Join Date: Aug 2009
Posts: 450
Thanked 41 Times in 34 Posts

Re: Folderz Auto Job

Originally Posted by PinkGatsby View Post
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.

Folderz is offline  
Old 09-08-2009   #15 (permalink)
Account Upgraded | Title Enabled!
 
PinkGatsby's Avatar
 
Rank: Member +
Join Date: Mar 2009
Location: America
Posts: 443
Thanked 69 Times in 40 Posts

Re: Folderz Auto Job

Originally Posted by Folderz View Post
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.
PinkGatsby is offline  
Thanked by :
Old 09-08-2009   #16 (permalink)
I am a person.
 
Folderz's Avatar
 
Rank: Member +
Join Date: Aug 2009
Posts: 450
Thanked 41 Times in 34 Posts

Re: Folderz Auto Job

Originally Posted by PinkGatsby View Post
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.

Folderz is offline  
Old 09-08-2009   #17 (permalink)
Account Upgraded | Title Enabled!
 
PinkGatsby's Avatar
 
Rank: Member +
Join Date: Mar 2009
Location: America
Posts: 443
Thanked 69 Times in 40 Posts

Re: Folderz Auto Job

Originally Posted by Folderz View Post
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.
PinkGatsby is offline  
Old 09-08-2009   #18 (permalink)
I am a person.
 
Folderz's Avatar
 
Rank: Member +
Join Date: Aug 2009
Posts: 450
Thanked 41 Times in 34 Posts

Re: Folderz Auto Job

Originally Posted by PinkGatsby View Post
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.

Folderz is offline  
Old 09-08-2009   #19 (permalink)
KayoMS Coder
 
NyCPirate's Avatar
 
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
NyCPirate is offline  
Old 09-08-2009   #20 (permalink)
I am a person.
 
Folderz's Avatar
 
Rank: Member +
Join Date: Aug 2009
Posts: 450
Thanked 41 Times in 34 Posts

Re: Folderz Auto Job

Originally Posted by NyCPirate View Post
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.

Folderz is offline  
Old 09-14-2009   #21 (permalink)
Biggulp productions
 
gundum584's Avatar
 
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*
gundum584 is offline  
Old 09-15-2009   #22 (permalink)
*
 
CarterFTWWW's Avatar
 
Rank: Alpha Member
Join Date: Jul 2008
Location: Dance Line
Posts: 2,569
Blog Entries: 1
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
__________________
CarterFTWWW is offline  
Old 09-15-2009   #23 (permalink)
Biggulp productions
 
gundum584's Avatar
 
Rank: Member +
Join Date: Dec 2008
Location: Salem
Posts: 260
Thanked 32 Times in 8 Posts

Re: Folderz Auto Job

Originally Posted by CarterFTWWW View Post
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*
gundum584 is offline  
Old 09-15-2009   #24 (permalink)
I am a person.
 
Folderz's Avatar
 
Rank: Member +
Join Date: Aug 2009
Posts: 450
Thanked 41 Times in 34 Posts

Re: Folderz Auto Job

Originally Posted by CarterFTWWW View Post
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.

Folderz is offline  
Old 09-15-2009   #25 (permalink)
*
 
CarterFTWWW's Avatar
 
Rank: Alpha Member
Join Date: Jul 2008
Location: Dance Line
Posts: 2,569
Blog Entries: 1
Thanked 26 Times in 21 Posts

Re: Folderz Auto Job

Originally Posted by Folderz View Post
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.
__________________
CarterFTWWW is offline  
 

Bookmarks

Thread Tools




Translated by Google
Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Italian Japanese Korean Latvian Lithuanian Maltese Norwegian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swedish Taiwanese Thai Turkish Ukrainian Vietnamese
no new posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274