-
npc ~ v97
i need to edit that NPC, new jobs in V97 (like resistance) cant use this NPC
PHP Code:
/*
ReEditted by Remixes from RAGEZONE
*/
var status = 0;
var jobName;
var job;
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
var jobId=cm.getPlayer().getJob().getId();
if (mode == -1) {
cm.sendOk("#eWell okay then. Come back if you change your mind.\r\n\r\nGood luck on your training.");
cm.dispose();
} else {
if (mode == 1)
status++;
else
status--;
if (status == 0) {
cm.sendNext("#eHello #r#h ##k, I'm in charge of Job Advancing.");
} else if (status == 1) {
if (cm.getLevel() < 200 && cm.getJobId()==0) {
if (cm.getLevel() < 8) {
cm.sendNext("#eSorry, but you have to be at least level 8 to use my services.");
status = 98;
} else if (cm.getLevel() < 10) {
cm.sendYesNo("#eCongratulations on reaching such a high level. Would you like to make the #rFirst Job Advancement#k as a #rMagician#k?");
status = 150;
} else {
cm.sendYesNo("#eCongratulations on reaching such a high level. Would you like to make the #rFirst Job Advancement#k?");
status = 153;
}
} else if (cm.getLevel() < 30) {
cm.sendNext("#eSorry, but you have to be at least level 30 to make the #rSecond Job Advancement#k.");
status = 98;
} else if (cm.getJobId()==400) {
cm.sendSimple("#eCongratulations on reaching such a high level. Which would you like to be? #b\r\n#L0#Assassin#l\r\n#L1#Bandit#l#k");
} else if (cm.getJobId()==100) {
cm.sendSimple("#eCongratulations on reaching such a high level. Which would you like to be? #b\r\n#L2#Fighter#l\r\n#L3#Page#l\r\n#L4#Spearman#l#k");
} else if (cm.getJobId()==200) {
cm.sendSimple("#eCongratulations on reaching such a high level. Which would you like to be? #b\r\n#L5#Ice Lightning Wizard#l\r\n#L6#Fire Poison Wizard#l\r\n#L7#Cleric#l#k");
} else if (cm.getJobId()==300) {
cm.sendSimple("#eCongratulations on reaching such a high level. Which would you like to be? #b\r\n#L8#Hunter#l\r\n#L9#Crossbowman#l#k");
} else if (cm.getJobId()==500) {
cm.sendSimple("#eCongratulations on reaching such a high level. Which would you like to be? #b\r\n#L10#Brawler#l\r\n#L11#Gunslinger#l#k");
} else if (cm.getJobId()==1200) {
cm.sendSimple("#eCongratulations on reaching such a high level. Do you want to job advance? #b\r\n#L12#Yes#l\r\n#L13#No#l#k");
} else if (cm.getJobId()==1100) {
cm.sendSimple("#eCongratulations on reaching such a high level. Do you want to job advance? #b\r\n#L14#Yes#l\r\n#L15#No#l#k");
} else if (cm.getJobId()==1400) {
cm.sendSimple("#eCongratulations on reaching such a high level. Do you want to job advance? #b\r\n#L16#Yes#l\r\n#L17#No#l#k");
} else if (cm.getJobId()==1300) {
cm.sendSimple("#eCongratulations on reaching such a high level. Do you want to job advance? #b\r\n#L18#Yes#l\r\n#L19#No#l#k");
} else if (cm.getJobId()==1500) {
cm.sendSimple("#eCongratulations on reaching such a high level. Do you want to job advance? #b\r\n#L20#Yes#l\r\n#L21#No#l#k");
} else if (cm.getJobId()==2100) {
cm.sendSimple("#eCongratulations on reaching such a high level. Do you want to job advance? #b\r\n#L22#Yes#l\r\n#L23#No#l#k");
} else if (cm.getLevel() < 70) {
cm.sendNext("#eSorry, but you have to be at least level 70 to make the #rThird Job Advancement#k.");
status = 98;
} else if (cm.getJobId()==410) {
status = 63;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==420) {
status = 66;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==310) {
status = 69;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==320) {
status = 72;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==210) {
status = 75;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==220) {
status = 78;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==230) {
status = 81;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==110) {
status = 84;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==120) {
status = 87;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==130) {
status = 90;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==520) {
status = 95;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==510) {
status = 92;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==1210) {
status = 169;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==1110) {
status = 172;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==1410) {
status = 175;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==1310) {
status = 178;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==1510) {
status = 181;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getLevel() < 120) {
cm.sendNext("#eSorry, but you have to be at least level 120 to make the #rForth Job Advancement#k.");
status = 98;
} else if (cm.getJobId()==411) {
status = 105;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==421) {
status = 108;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==311) {
status = 111;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==321) {
status = 114;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==211) {
status = 117;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==221) {
status = 120;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==231) {
status = 123;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==111) {
status = 126;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==121) {
status = 129;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==131) {
status = 132;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==511) {
status = 133;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==521) {
status = 134;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getLevel() < 200) {
cm.sendNext("#eSorry, but you have already attained the highest level of your job's mastery. \r\n\r\nHowever, you can #rrebirth#k when you are level 200.");
status = 98;
} else {
cm.dispose();
}
} else if (status == 2) {
if (selection == 0) {
jobName = "Assassin";
job = 410;
}
if (selection == 1) {
jobName = "Bandit";
job = 420;
}
if (selection == 2) {
jobName = "Fighter";
job = 110;
}
if (selection == 3) {
jobName = "Page";
job = 120;
}
if (selection == 4) {
jobName = "Spearman";
job = 130;
}
if (selection == 5) {
jobName = "Ice Lightning Wizard";
job = 220;
}
if (selection == 6) {
jobName = "Fire Poison Wizard";
job = 210;
}
if (selection == 7) {
jobName = "Cleric";
job = 230;
}
if (selection == 8) {
jobName = "Hunter";
job = 310;
}
if (selection == 9) {
jobName = "Crossbowman";
job = 320;
}
if (selection == 10) {
jobName = "Brawler";
job = 510;
}
if (selection == 11) {
jobName = "Gunslinger";
job = 520;
}
if (selection == 12) {
jobName = "Level 2 Blaze Wizard";
job = 1210;
}
if (selection == 13) {
cm.sendOk("Come back to me when you are ready.");
cm.dispose();
}
if (selection == 14) {
jobName = "Level 2 Dawn Warrior";
job = 1110;
}
if (selection == 15) {
cm.sendOk("Come back to me when you are ready.");
cm.dispose();
}
if (selection == 16) {
jobName = "Level 2 Night Walker";
job = 1410;
}
if (selection == 17) {
cm.sendOk("#eCome back to me when you are ready.");
cm.dispose();
}
if (selection == 18) {
jobName = "Level 2 Wind Archer";
job = 1310;
}
if (selection == 19) {
cm.sendOk("#eCome back to me when you are ready.");
cm.dispose();
}
if (selection == 20) {
jobName = "Level 2 Thunder Breaker";
job = 1510;
}
if (selection == 21) {
jobName = "Level 2 Aran";
job = 2110;
}
if (selection == 22) {
cm.sendOk("#eCome back to me when you are ready.");
cm.dispose();
}
cm.sendYesNo("#eDo you want to become a #r" + jobName + "#k?");
} else if (status == 3) {
cm.changeJobById(job);
cm.sendOk("#eThere you go. Hope you enjoy it. See you around in the future maybe :)");
cm.dispose();
} else if (status == 61) {
if (cm.getJobId()==410) {
status = 63;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==420) {
status = 66;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==310) {
status = 69;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==320) {
status = 72;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==210) {
status = 75;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==220) {
status = 78;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==230) {
status = 81;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==110) {
status = 84;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==120) {
status = 87;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==130) {
status = 90;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==520) {
status = 98;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==510) {
status = 93;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==1210) {
status = 170;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==1110) {
status = 173;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==1410) {
status = 176;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==1310) {
status = 179;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==1510) {
status = 182;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==2110) {
status = 185;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else {
cm.dispose();
}
} else if (status == 64) {
cm.changeJobById(411);
cm.sendOk("#eThere you go. Hope you enjoy it. See you around in the future maybe :)");
cm.dispose();
} else if (status == 67) {
cm.changeJobById(421);
cm.sendOk("#eThere you go. Hope you enjoy it. See you around in the future maybe :)");
cm.dispose();
} else if (status == 70) {
cm.changeJobById(311);
cm.sendOk("#eThere you go. Hope you enjoy it. See you around in the future maybe :)");
cm.dispose();
} else if (status == 73) {
cm.changeJobById(321);
cm.sendOk("#eThere you go. Hope you enjoy it. See you around in the future maybe :)");
cm.dispose();
} else if (status == 76) {
cm.changeJobById(211);
cm.sendOk("#eThere you go. Hope you enjoy it. See you around in the future maybe :)");
cm.dispose();
} else if (status == 79) {
cm.changeJobById(221);
cm.sendOk("#eThere you go. Hope you enjoy it. See you around in the future maybe :)");
cm.dispose();
} else if (status == 82) {
cm.changeJobById(231);
cm.sendOk("#eThere you go. Hope you enjoy it. See you around in the future maybe :)");
cm.dispose();
} else if (status == 85) {
cm.changeJobById(111);
cm.sendOk("#eThere you go. Hope you enjoy it. See you around in the future maybe :)");
cm.dispose();
} else if (status == 88) {
cm.changeJobById(121);
cm.sendOk("#eThere you go. Hope you enjoy it. See you around in the future maybe :)");
cm.dispose();
} else if (status == 91) {
cm.changeJobById(131);
cm.sendOk("#eThere you go. Hope you enjoy it. See you around in the future maybe :)");
cm.dispose();
} else if (status == 93) {
cm.changeJobById(511);
cm.sendOk("#eThere you go. Hope you enjoy it. See you around in the future maybe :)");
cm.dispose();
} else if (status == 96) {
cm.changeJobById(521);
cm.sendOk("#eThere you go. Hope you enjoy it. See you around in the future maybe :)");
cm.dispose();
} else if (status == 170) {
cm.changeJobById(1211);
cm.sendOk("#eThere you go. Hope you enjoy it. See you around in the future maybe :)");
cm.dispose();
} else if (status == 173) {
cm.changeJobById(1111);
cm.sendOk("#eThere you go. Hope you enjoy it. See you around in the future maybe :)");
cm.dispose();
} else if (status == 176) {
cm.changeJobById(1411);
cm.sendOk("#eThere you go. Hope you enjoy it. See you around in the future maybe :)");
cm.dispose();
} else if (status == 179) {
cm.changeJobById(1311);
cm.sendOk("#eThere you go. Hope you enjoy it. See you around in the future maybe :)");
cm.dispose();
} else if (status == 182) {
cm.changeJobById(1511);
cm.sendOk("#eThere you go. Hope you enjoy it. See you around in the future maybe :)");
cm.dispose();
} else if (status == 185) {
cm.changeJobById(2111);
cm.sendOk("#eThere you go. Hope you enjoy it. See you around in the future maybe :)");
cm.dispose();
} else if (status == 99) {
cm.sendOk("#eGood luck on your training.");
cm.dispose();
} else if (status == 102) {
if (cm.getJobId()==411) {
status = 105;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==421) {
status = 108;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==311) {
status = 111;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==321) {
status = 114;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==211) {
status = 117;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==221) {
status = 120;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==231) {
status = 123;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==111) {
status = 126;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==121) {
status = 129;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==131) {
status = 132;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==511) {
status = 134;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else if (cm.getJobId()==521) {
status = 136;
cm.sendYesNo("#eCongratulations on reaching such a high level. Do you want to Job Advance now?");
} else {
cm.dispose();
}
} else if (status == 106) {
cm.changeJobById(412);
cm.sendOk("#eThere you go. Hope you enjoy it.");
cm.dispose();
} else if (status == 109) {
cm.changeJobById(422);
cm.sendOk("#eThere you go. Hope you enjoy it.");
cm.dispose();
} else if (status == 112) {
cm.changeJobById(312);
cm.sendOk("#eThere you go. Hope you enjoy it.");
cm.dispose();
} else if (status == 115) {
cm.changeJobById(322);
cm.sendOk("#eThere you go. Hope you enjoy it.");
cm.dispose();
} else if (status == 118) {
cm.changeJobById(212);
cm.sendOk("#eThere you go. Hope you enjoy it.");
cm.dispose();
} else if (status == 121) {
cm.changeJobById(222);
cm.sendOk("#eThere you go. Hope you enjoy it.");
cm.dispose();
} else if (status == 124) {
cm.changeJobById(232);
cm.sendOk("#eThere you go. Hope you enjoy it.");
cm.dispose();
} else if (status == 127) {
cm.changeJobById(112);
cm.sendOk("#eThere you go. Hope you enjoy it.");
cm.dispose();
} else if (status == 130) {
cm.changeJobById(122);
cm.sendOk("#eThere you go. Hope you enjoy it.");
cm.dispose();
} else if (status == 133) {
cm.changeJobById(132);
cm.sendOk("#eThere you go. Hope you enjoy it.");
cm.dispose();
} else if (status == 134) {
cm.changeJobById(512);
cm.sendOk("#eThere you go. Hope you enjoy it.");
cm.dispose();
} else if (status == 135) {
cm.changeJobById(522);
cm.sendOk("#eThere you go. Hope you enjoy it.");
cm.dispose();
} else if (status == 154) {
cm.sendSimple("#eWhich would you like to be? #b\r\n#L0#Warrior#l\r\n#L1#Magician#l\r\n#L2#Bowman#l\r\n#L3#Thief#l\r\n#L4#Pirate#l#k\r\n\r\n#eOr Do you prefer Knights Of Cygnus?#k\r\n#L5##bDawn Warrior#l\r\n#L6#Night Walker#l\r\n#L7#Blaze Wizard#l\r\n#L8#Wind Archer#l\r\n#L9#Thunder Breaker#l#k\r\n\r\n#eOr do you prefer Aran?#k\r\n#L10#Aran#l#l#k\r\n\r\n#eOr Do you prefer Resistance?#k\r\n#L11##bMechanic#l\r\n#L12#WildHunter#l\r\n#L13#BattleMage#l#k\r\n\r\n#e#l#k\r\n\r\n#eOr do you prefer DualBlade?#k\r\n#L14#DualBlade#l#l#k\r\n\r\n#e#l#k\r\n\r\n#e#l#k\r\n\r\n#eOr do you prefer Evan?#k\r\n#L15#Evan#l#l#k\r\n\r\n#e");
} else if (status == 155) {
if (selection == 0) {
jobName = "Warrior";
job = 100;
}
if (selection == 1) {
jobName = "Magician";
job = 200;
}
if (selection == 2) {
jobName = "Bowman";
job = 300;
}
if (selection == 3) {
jobName = "Thief";
job = 400;
}
if (selection == 4) {
jobName = "Pirate";
job = 500;
}
if (selection == 5) {
jobName = "Dawn Warrior";
job = 1100;
}
if (selection == 6) {
jobName = "Night Walker";
job = 1400;
}
if (selection == 7) {
jobName = "Blaze Wizard";
job = 1200;
}
if (selection == 8) {
jobName = "Wind Archer";
job = 1300;
}
if (selection == 9) {
jobName = "Thunder Breaker";
job = 1500;
}
if (selection == 10) {
jobName = "Aran";
job = 2100;
}
if (selection == 11) {
jobName = "Mechanic";
job = 3512;
}
if (selection == 12) {
jobName = "WildHunter";
job = 3312;
}
if (selection == 13) {
jobName = "BattleMage";
job = 3212;
}
if (selection == 14) {
jobName = "DualBlade";
job = 434;
}
if (selection == 15) {
jobName = "Evan";
job = 2218;
}
cm.sendYesNo("#eDo you want to become a #r" + jobName + "#k?");
} else if (status == 156) {
cm.changeJobById(job);
cm.sendOk("#eThere you go. Hope you enjoy it. See you around in the future maybe.");
cm.dispose();
}
}
}
thanks!
please help me people with job 3000 (citizen) cant do WH/BM/MECH
or help me edit the original file, that people can do job 2,3,4 in the new jobs.
PHP Code:
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation version 3 as published by
the Free Software Foundation. You may not use, modify or distribute
this program under any other version of the GNU Affero General Public
License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* @Name: Cody
* @NPC ID: 9200000
* @Author: MrXotic
* @Author: XxOsirisxX
* @Author: Moogra
*/
var status = -1;
var possibleJobs = new Array();
var maps = [
/*BossMaps*/[100000005, 105070002, 105090900, 230040420, 280030000, 220080000, 240020402, 240020101, 801040100, 240060200, 610010005, 610010012, 610010013, 610010100, 610010101, 610010102, 610010103, 610010104],
/*MonsterMaps*/[100040001, 101010100, 104040000, 103000101, 103000105, 101030110, 106000002, 101030103, 101040001, 101040003, 101030001, 104010001, 105070001, 105090300, 105040306, 230020000, 230010400, 211041400, 222010000, 220080000, 220070301, 220070201, 220050300, 220010500, 250020000, 251010000, 200040000, 200010301, 240020100, 240040500, 240040000, 600020300, 801040004, 800020130, 800020400],
/*Towns*/[130000000, 300000000, 1010000, 680000000, 230000000, 101000000, 211000000, 100000000, 251000000, 103000000, 222000000, 104000000, 240000000, 220000000, 250000000, 800000000, 600000000, 221000000, 200000000, 102000000, 801000000, 105040300, 610010004, 260000000, 540010000, 120000000]];
var jobA = false;
var warper = false;
var job;
var newJob;
var chosenMap = -1;
var chosenSection = -1;
function start() {
cm.sendSimple("#fUI/UIWindow.img/QuestIcon/3/0#\r\n#L0#World Tour#l\r\n#L1#Job Advance#l");
}
function action(mode, type, selection) {
status++;
if(mode != 1){
cm.dispose();
return;
}
if (!jobA && !warper)
if (selection == 1)
jobA = true;
else
warper = true;
if (jobA)
jobAdv(selection);
else
warp(selection);
}
function warp(selection){
if (status == 0)
cm.sendSimple("#fUI/UIWindow.img/QuestIcon/3/0#\r\n#L0#Boss Maps#l\r\n#L1#Monster Maps#l\r\n#L2#Town Maps#l");
else if (status == 1) {
chosenSection = selection;
var selStr = "Select your destination.#b";
for (var i = 0; i < maps[selection].length; i++)
selStr += "\r\n#L" + i + "##m" + maps[selection][i] + "#";
cm.sendSimple(selStr);
} else if (status == 2) {
chosenMap = selection;
cm.sendYesNo("Do you want to go to #m" + maps[chosenSection][selection] + "#?");
} else if (status == 3) {
cm.warp(maps[chosenSection][chosenMap]);
cm.dispose();
}
}
function jobAdv(selection){
if (status == 0) {
newJob = cm.getJobId() + 1;
if (cm.getJobId() % 10 == 2) {
cm.sendOk("Hey, how's it going? I've been doing well here.");
cm.dispose();
} else if (cm.getJobId() % 10 >= 0 && cm.getJobId() % 100 != 0) {
var secondJob = cm.getJobId() % 10 == 0;
if ((secondJob && cm.getLevel() < 70) || (!secondJob && cm.getLevel() < 120)) {
cm.sendOk("Hey, how's it going? I've been doing well here.");
cm.dispose();
} else
cm.sendYesNo("Great job getting to level " + cm.getLevel() + ". Would you like to become a #b"+cm.getJobName(newJob)+"#k ?");
} else {
if (cm.getJobId() % 1000 == 0) {
if (cm.getLevel() >= 10)
for (var i = 1; i < 6; i++)
possibleJobs.push(cm.getJobId() + 100 * i);
else if (cm.getLevel() >= 8)
possibleJobs.push(200);
} else if (cm.getLevel() >= 30) {
switch (cm.getJobId()) {
case 100:
case 200:
possibleJobs.push(cm.getJobId() + 30);
case 300:
case 400:
case 500:
possibleJobs.push(cm.getJobId() + 20);
case 1100:
case 1200:
case 1300:
case 1400:
case 1500:
possibleJobs.push(cm.getJobId() + 10);
break;
}
}
if (possibleJobs.length == 0) {
cm.sendOk("Hey, how's it going? I've been doing well here.");
cm.dispose();
} else {
var text = "There are the available jobs you can take#b";
for (var j = 0; j < possibleJobs.length; j++)
text += "\r\n#L"+j+"#"+cm.getJobName(possibleJobs[j])+"#l";
cm.sendSimple(text);
}
}
} else if (status == 1 && cm.getJobId() % 100 != 0) {
cm.changeJobById(cm.getJobId() + 1);
cm.maxMastery();
cm.dispose();
} else if (status == 1) {
cm.changeJobById(possibleJobs[selection]);
if (cm.getJobId() % 100 == 0)
cm.dispose();
} else if (status == 2) {
job = selection;
cm.sendYesNo("Are you sure you want to job advance?");
} else if (status == 3) {
cm.changeJobById(possibleJobs[job]);
cm.dispose();
}
}
-
Re: npc ~ v97
just add
PHP Code:
if (cm.getLevel() < 30) {
}
below status == 0
-
Re: npc ~ v97
still not work..
people with job citizen cant do job..
what i need to do?
the original job advance work but after job1 people cant do job2,3,4..
-
Re: npc ~ v97
-
Re: npc ~ v97
Change line 28 to:
Code:
if (cm.getLevel() < 200 && (cm.getJobId()==0 || cm.getJobId()==3000)) {
Change line 37 to:
For some reason you had it go to status 153, while the status needed was 154.
It seems that script has several flaws with it. You are setting statuses to where you have no checks for it. (ie, for level 8 characters, you set the status to 150, yet there is no status check for 150. Only 154, 155 and 156. Is it an incomplete script?
-
Re: npc ~ v97
-
Re: npc ~ v97
Quote:
Originally Posted by
orikiller
in npc 1 or in npc 2?
This all pertains to the first NPC.
-
Re: npc ~ v97
thanks, i will check it later.
-
Re: npc ~ v97
-
Re: npc ~ v97
-
Re: npc ~ v97
-
Re: npc ~ v97