Excellzone

Forum and disscussions since 2010


You are not connected. Please login or register

View previous topic View next topic Go down Message [Page 1 of 1]

#1
Rampenbram

avatar
Level 2
Level 2
this NPC leeched from Ragezone.



([You must be registered and logged in to see this link.])

Code:
/*
Made By Postalityjr :)
V75 Job Changer Made for SilentSource  changed into v62 Job CHanger.
*/
var status = 0;
var jobName;
var job;

function start() {
    status = -1;
    action(1, 0, 0);
}

function action(mode, type, selection) {
    if (mode == -1) {
        cm.dispose();
    } else {
        if (mode == 1)
            status++;
        else
            status--;
        if (status == 0) {           
            cm.sendSimple("Which would Job Would you like to have? #b\r\n#L0#Hero#l\r\n#L1#Paladin#l\r\n#L2#Dark Knight#l\r\n#L3#NightLord#l\r\n#L4#Shadower#l\r\n#L5#BowMaster#l\r\n#L6#Marksman#l\r\n#L7#F/P Mage#l\r\n#L8#I/L Mage#l\r\n#L9#Bishop#l#k");
        } else if (status == 1) {
            if (selection == 0) {
                jobName = "Hero";
                job = 112;
            }
            if (selection == 1) {
                jobName = "Paladin";
                job = 122;
            }
            if (selection == 2) {
                jobName = "Dark Knight";
                job = 132;
            }
            if (selection == 3) {
                jobName = "NightLord";
                job = 412;
            }
            if (selection == 4) {
                jobName = "Shadower";
                job = 422;
            }
            if (selection == 5) {
                jobName = "BowMaster";
                job = 312;
            }
            if (selection == 6) {
                jobName = "Marksman";
                job = 322;
            }
            if (selection == 7) {
                jobName = "F/P Mage";
                job = 212;
            }
            if (selection == 8) {
                jobName = "I/L Mage";
                job = 222;
            }
            if (selection == 9) {
                jobName = "Bishop";
                job = 232;
            }
                if (cm.getPlayer().getReborns()>=100) {
                cm.changeJobById(job);
                cm.dispose();
                } else {
                cm.sendOk(" Sorry. You do not have 100 or more Rebirths."); //If using a rebirth count and you decide to change amount of rebirths, change this number aswell :)
                cm.dispose();
          }
        }
    }

View user profile http://www.boomboomms.nl

View previous topic View next topic Back to top Message [Page 1 of 1]


Permissions in this forum:
You cannot reply to topics in this forum