Jump to content

Recommended Posts

Posted

Ok, this is going to be my third time starting this over and making it more organized. SO far it just advances begginers into a new job. By the end I want it to be able to do a lot of thing. No, I DO NOT no java at all, i just took a lot of guesses on this. I basically look at other NPCs and see how they work then go from there. So, would this thing work so far? I dont know why but I really need feedback a lot. =)

 

 

var exit = 0;
var start = 0;
var part = 0;
var mode = 0;
var extra = 0;
var rest = 0;
var jobone = Array (THIEF, BOWMAN, WARRIOR, MAGICIAN, PIRATE);
var jobonename = Array (Thief, Bowman, Warrior, Magician, Pirate);
var jobtwo = Array (ASSASSIN, BANDIT, FIGHTER, PAGE, SPEARMAN, IL_WIZARD, FP_WIZARD, CLERIC, HUNTER, CROSSBOWMAN, BRAWLER, GUNSLINGER);

function start {
   if (exit == 0) {
       if (rest == 0) {
           if (extra == 0) {
               if (start == 0) {
                   start++;
                   cm.sendSimple("#L10#Warp To Maps#l/r/n#L11#Job Advance#l/r/n#L99#Leave#l");
                   part = selection;
               } else {
                   if (part == 10) {
                       extra = 1;
                   } else if (part == 11) {
                       extra = 2;
                   } else if (part == 99) {
                       exit++;
                   } else {
                       start = 0;
                   }
               }
           } else {
               if (extra == 1) {
                   //comming soon
               } else if (extra == 2) {
                   if (cm.getPlayer().isGM()) {
                       cm.sendSimple("What job would you like to be?");
                   } else {
                       if (cm.getJob().equals(net.sf.odinms.client.MapleJob.BEGINNER)) {
                           cm.sendSimple("What job would you like to be?/r/n#L31#Thief#l/r/n#L32#Bowman#l/r/n#L33#Warrior#l/r/n#L34#Magician#l/r/n#L35#Pirate#l");
                               if (cm.getLevel() >= 10) {
                                   cm.changeJob(MapleJob.(jobone[selection-30]));
                                   var jobname = jobonename[selection-30]
                                   cm.sendSimple("You are now a " + jobname + "! Enjoy.);
                               } else {
                                   cm.sendSimple("You are not over level 10!");
                                   rest++;
                       } else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.THIEF)) {

                       } else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.WARRIOR)) {

                       } else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.MAGICIAN)) {

                       } else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.BOWMAN)) {

                       } else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.PIRATE)) {

                       }
                   }
               } else {
                   exit++;
               }
           }
       } else {
           rest = 0;
           start = 0;
           part = 0;
           mode = 0;
           extra = 0;
       }
   } else {
       cm.sendOk("See you later!");
       cm.dispose();
   }
}

Posted

Ok, this is going to be my third time

 

Show us the first and the second please. Because you are a leeching kid, not giving credits!

I don't think that it was hard at least to change the text a bit...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...