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.



  • Posts

    • just with this extender that I have shared it is not possible to start with c4 client, you have to make some changes to the extender and it works with c4 client perfectly. regarding the updates in this last revision   🔹dll is not packaged with vmprotect   New custom zone types have been added: 🔹 NO_NOBLESS begin MinX=84638 MaxX=92616 MinY=-87170 MaxY=-82018 MinZ=-6000 MaxZ=0 Type=NO_NOBLESS KickOutPos=83007/148057/-3464 end   ▶️ This zone checks if the character is noble. If it does not meet the condition, it will be automatically kicked to the indicated position (KickOutPos). 🔹 CUSTOM_SPAWN_ZONE begin MinX=77275 MaxX=85704 MinY=10122 MaxY=18066 MinZ=-8000 MaxZ=5000 Type=CUSTOM_SPAWN_ZONE OutPos=83007/148057/-3464 Spawns={{82984/18066/-5256}};{{79275/15147/-5248}};{{82922/14263/-5256}};{{83704/10122/-5288}} end ▶️ This zone allows characters, upon death, to respawn with full buff, CP, HP and MP if they press “Fixed”. They will only be able to revive in one of the positions defined in Spawns. 🔧 Both zones are fully configurable from territorydata.txt
    • Could you tell me what changed in this update?   more one question: Is it possible to log in through the c4 client instead of interlude? That would be great  
    • ➡ Discount for your purchase: JULY2025 (11% discount) ➡ Our Online Shop: https://socnet.store  ➡ Our SMM-Boosting Panel: https://socnet.pro  ➡ Telegram Shop Bot: https://socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: https://wa.me/79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
    • ➡ Discount for your purchase: JULY2025 (11% discount) ➡ Our Online Shop: https://socnet.store  ➡ Our SMM-Boosting Panel: https://socnet.pro  ➡ Telegram Shop Bot: https://socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: https://wa.me/79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock