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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • Only 3 days left and we'll start with some events, you can check our Discord for more info!
    • Tired of frantically switching between windows trying to find that specific Warlock who should be casting saves? Forgot which server you left your Warsmith on? This mod solves these problems! What it does: Turns the boring window title into an information panel: Server Name - Character Name [Class] Real-life examples: - ServerName - HardcoreFarm [Spoilerr] (who's been spoiling for 3 months already) - ServerName - ClericHelper [Buffer] (eternal buffer on standby) - ServerName - MainChar [Gladiator] (main character who's always AFK) Why you need this: For multiboxers - to avoid confusing where the DD is and where the healer is For the forgetful - if your memory is like a goldfish For streamers - viewers immediately see who's on screen For adults - when playing at work and need to quickly hide the window DLL only - no Interface files needed Installation (more complicated than making tea): 1. Download the DLL 2. Drop it into the System folder 3. Launch the client 4. Be amazed how you lived without this before! Purchase Conditions: Price: 100$ Payment Method: USDT. How to Buy: Contact me on Telegram: @kiselevwv for a quick response. I will answer all your questions and provide additional information if needed. I guarantee functionality at the moment of sale and prompt assistance with setup after purchase.
    • I agree, l2damage crap to compare to l2java which was the father of pvp servers and till this days people playing there for good time.
    • 📝 Registration — Account Registration Creating a new player account. Usually includes: login password password confirmation email Result: a new record is created in the accounts table (loginserver). 🔑 Change Password — Password Change The player changes the password knowing the current one. Required: current password new password new password confirmation Result: the password field is updated in the accounts table. ♻️ Password Recovery — Password Reset If the player forgot the password. Implementation only via email: the player enters their login, email the system sends an email with a link or code the player opens the link / enters the code sets a new password Result: the password is updated in the accounts table.   All fields are validated (required, format, length, uniqueness, security checks).   Price: 80$   and i can rewrite script for PTS server.   Contacts:   Telegram Discord
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..