Skip to content

Super Npc Start

Featured Replies

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();
   }
}

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...

whats npc start ? i dont get it what u mean ? xD

 

lol

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.