v75 転職npc

Go down

v75 転職npc

投稿 by 構築さん on 2014-05-30, 09:00

Code:
/*
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 file. If not, see <http>.
*/

/*\
Author: DeathRight of WorldOfGosu || Prio of WorldOfGosu (Added KoC jobs and cleaned up abit)
Function: Change to any job anytime if have a certain amount of rebirths
File: NEWNPC.js
Info: The selections are a little odd due to me not knowing if it would affect the others, so I gave everyting a different selection. Simular to the jobs, but -100.
\*/

//Do not touch below
var status;
/* All versions. Adventurer jobs. */
var thief = 0;
var warrior = 0;
var mage = 0;
var bowman = 0;
/* v62+. Pirate job. */
var pirate = 0;
/* v75+. KoC jobs. */
var kocthief = 0;
var kocwarrior = 0;
var kocmage = 0;
var kocbowman = 0;
var kocpirate = 0;
/* v82+. Aran job. */
// Coming soon...

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

function action(mode, type, selection) {
/* All versions. Adventurer jobs. */
var thiefjobs = Array(net.sf.odinms.client.MapleJob.THIEF, net.sf.odinms.client.MapleJob.ASSASSIN, net.sf.odinms.client.MapleJob.BANDIT, net.sf.odinms.client.MapleJob.HERMIT, net.sf.odinms.client.MapleJob.CHIEFBANDIT, net.sf.odinms.client.MapleJob.NIGHTLORD, net.sf.odinms.client.MapleJob.SHADOWER);
var warjobs = Array(net.sf.odinms.client.MapleJob.WARRIOR, net.sf.odinms.client.MapleJob.FIGHTER, net.sf.odinms.client.MapleJob.PAGE, net.sf.odinms.client.MapleJob.SPEARMAN, net.sf.odinms.client.MapleJob.CRUSADER, net.sf.odinms.client.MapleJob.WHITEKNIGHT, net.sf.odinms.client.MapleJob.DRAGONKNIGHT, net.sf.odinms.client.MapleJob.HERO, net.sf.odinms.client.MapleJob.PALADIN, net.sf.odinms.client.MapleJob.DARKKNIGHT);
var magejobs = Array(net.sf.odinms.client.MapleJob.MAGICIAN, net.sf.odinms.client.MapleJob.FP_WIZARD, net.sf.odinms.client.MapleJob.IL_WIZARD, net.sf.odinms.client.MapleJob.CLERIC, net.sf.odinms.client.MapleJob.FP_MAGE, net.sf.odinms.client.MapleJob.IL_MAGE, net.sf.odinms.client.MapleJob.PRIEST, net.sf.odinms.client.MapleJob.FP_ARCHMAGE, net.sf.odinms.client.MapleJob.IL_ARCHMAGE, net.sf.odinms.client.MapleJob.BISHOP);
var bowmanjobs = Array(net.sf.odinms.client.MapleJob.BOWMAN, net.sf.odinms.client.MapleJob.HUNTER, net.sf.odinms.client.MapleJob.CROSSBOWMAN, net.sf.odinms.client.MapleJob.RANGER, net.sf.odinms.client.MapleJob.SNIPER, net.sf.odinms.client.MapleJob.BOWMASTER, net.sf.odinms.client.MapleJob.CROSSBOWMASTER);
/* v62+. Pirate job. */
var piratejobs = Array(net.sf.odinms.client.MapleJob.PIRATE, net.sf.odinms.client.MapleJob.BRAWLER, net.sf.odinms.client.MapleJob.GUNSLINGER, net.sf.odinms.client.MapleJob.MARAUDER, net.sf.odinms.client.MapleJob.OUTLAW, net.sf.odinms.client.MapleJob.BUCCANEER, net.sf.odinms.client.MapleJob.CORSAIR);
/* v75+. KoC jobs. */
var kocthiefjobs = Array(net.sf.odinms.client.MapleJob.NIGHTWALKER1, net.sf.odinms.client.MapleJob.NIGHTWALKER2, net.sf.odinms.client.MapleJob.NIGHTWALKER3); // Three jobs, I think?
var kocwarjobs = Array(net.sf.odinms.client.MapleJob.DAWNWARRIOR1, net.sf.odinms.client.MapleJob.DAWNWARRIOR2, net.sf.odinms.client.MapleJob.DAWNWARRIOR3); // Three jobs, I think?
var kocmagejobs = Array(net.sf.odinms.client.MapleJob.BLAZEWIZARD1, net.sf.odinms.client.MapleJob.BLAZEWIZARD2, net.sf.odinms.client.MapleJob.BLAZEWIZARD3); // Three jobs.. RIGHT!?
var kocbowmanjobs = Array(net.sf.odinms.client.MapleJob.WINDARCHER1, net.sf.odinms.client.MapleJob.WINDARCHER2, net.sf.odinms.client.MapleJob.WINDARCHER3); // Must be three jobs..
var kocpiratejobs = Array(net.sf.odinms.client.MapleJob.THUNDERBREAKER1, net.sf.odinms.client.MapleJob.THUNDERBREAKER2, net.sf.odinms.client.MapleJob.THUNDERBREAKER3); // Three jobs ffs.
/* v82+. Aran job. */
// Coming soon...

var req=cm.getReborns() >= 1000; //Change the "1000" to however much you want.
var reqrb = "1000"; //Change the "1000" to however much you want.

if (mode == 1) {
status++;
}else{
status--;
}

if (status == 0 && req && thief == 0 && warrior == 0 && mage == 0 && bowman == 0 /* v62+ */ && pirate == 0 /* v75+ */ && kocwarrior == 0 && kocpirate == 0 && kocbowman == 0 && kocthief == 0 && kocmage == 0 /* v82+ */ ) {
cm.sendSimple("#rHey, #k#r#e#h ##n#k#r, you are very strong, with#k #e#b" + cm.getReborns() + " Rebirths#k#n#r!#k\r\n#r As a reward for reaching such a achievement, you are allowed to change jobs anytime you want. Please choose a class:#k\r\n#L0#Thief#l\r\n#L100#Warrior#l\r\n#L200#Mage#l\r\n#L300#Bowman#l\r\n#L400#Pirate#l\r\n#L500#KoC Warrior#l\r\n#L600#KoC Bowman#l\r\n#L700#KoC Magician#l\r\n#L800#KoC Thief#l\r\n#L900#KoC Pirate#l");
} else if (status == 1 && selection == 0) {
thief = 1;
cm.sendSimple("Please choose a job: \r\n#e#rFirst Job#k#n\r\n#L0#Rogue#l\r\n\r\n#b#eSecond Job#k#n\r\n#L1#Assassin#l\r\n#L2#Bandit#l\r\n\r\n#g#eThird Job#k#n\r\n#L3#Hermit#l\r\n#L4#Chief Bandit#l\r\n\r\n#eFourth Job#n\r\n#L5#Night Lord#l\r\n#L6#Shadower#l");
} else if (status == 2 && thief == 1) {
cm.changeJob(thiefjobs[selection]);
cm.dispose();
} else if (status == 1 && selection == 100) {
warrior = 1;
cm.sendSimple("Please choose a job: \r\n#e#rFirst Job#k#n\r\n#L110#Swordman#l\r\n\r\n#b#eSecond Job#k#n\r\n#L111#Fighter#l\r\n#L112#Page#l\r\n#L113#Spearman#l\r\n\r\n#g#eThird Job#k#n\r\n#L114#Crusader#l\r\n#L115#White Knight#l\r\n#L116#Dragon Knight#l\r\n\r\n#eFourth Job#n\r\n#L117#Hero#l\r\n#L118#Paladin#l\r\n#L119#Dark Knight#l");
} else if (status == 2 && warrior == 1) {
cm.changeJob(warjobs[selection]);
cm.dispose();
} else if (status == 1 && selection == 200) {
mage = 1;
cm.sendSimple("Please choose a job: \r\n#e#rFirst Job#k#n\r\n#L220#Magician#l\r\n\r\n#b#eSecond Job#k#n\r\n#L221#Fire/Poison Wizard#l\r\n#L222#Ice/Lightning Wizard#l\r\n#L223#Cleric#l\r\n\r\n#g#eThird Job#k#n\r\n#L224#Fire/Poison Mage#l\r\n#L225#Ice/Lightning Mage#l\r\n#L226#Priest#l\r\n\r\n#eFourth Job#n\r\n#L227#Fire/Poison Arch-Mage#l\r\n#L228#Ice/Lightning Arch-Mage#l\r\n#L229#Bishop#l");
} else if (status == 2 && mage == 1) {
cm.changeJob(magejobs[selection]);
cm.dispose();
} else if (status == 1 && selection == 300) {
bowman = 1;
cm.sendSimple("Please choose a job: \r\n#e#rFirst Job#k#n\r\n#L330#Archer#l\r\n\r\n#b#eSecond Job#k#n\r\n#L331#Hunter#l\r\n#L332#Crossbow man#l\r\n\r\n#g#eThird Job#k#n\r\n#L333#Ranger#l\r\n#L334#Sniper#l\r\n\r\n#eFourth Job#n\r\n#L335#Bowmaster#l\r\n#L336#Marksman#l");
} else if (status == 2 && bowman == 1) {
cm.changeJob(bowmanjobs[selection]);
cm.dispose();
/* v62+ */
} else if (status == 1 && selection == 400) {
pirate = 1;
cm.sendSimple("Please choose a job: \r\n#e#rFirst Job#k#n\r\n#L440#Pirate#l\r\n\r\n#b#eSecond Job#k#n\r\n#L441#Brawler#l\r\n#L442#Gunslinger#l\r\n\r\n#g#eThird Job#k#n\r\n#L443#Marauder#l\r\n#L444#Outlaw#l\r\n\r\n#eFourth Job#n\r\n#L445#Buccaneer#l\r\n#L446#Corsair#l");
} else if (status == 2 && pirate == 1) {
cm.changeJob(piratejobs[selection]);
cm.dispose();
/* v75+ */
} else if (status == 1 && selection == 500) {
kocthief = 1;
cm.sendSimple("Please choose a job: \r\n#e#rFirst Job#k#n\r\n#L550#KoC Thief#l\r\n\r\n#b#eSecond Job#k#n\r\n#L551#KoC Thief#l\r\n\r\n#g#eThird Job#k#n\r\n#L553#KoC Thief#l");
} else if (status == 2 && kocthief == 1) {
cm.changeJob(kocthiefjobs[selection]);
cm.dispose();
} else if (status == 1 && selection == 600) {
kocwarrior = 1;
cm.sendSimple("Please choose a job: \r\n#e#rFirst Job#k#n\r\n#L660#KoC Warrior#l\r\n\r\n#b#eSecond Job#k#n\r\n#L661#KoC Warrior#l\r\n\r\n#g#eThird Job#k#n\r\n#L663#KoC Warrior#l");
} else if (status == 2 && kocwarrior == 1) {
cm.changeJob(kocwarjobs[selection]);
cm.dispose();
} else if (status == 1 && selection == 700) {
kocmage = 1;
cm.sendSimple("Please choose a job: \r\n#e#rFirst Job#k#n\r\n#L770#KoC Magician#l\r\n\r\n#b#eSecond Job#k#n\r\n#L771#KoC Magician#l\r\n\r\n#g#eThird Job#k#n\r\n#L773#KoC Magician#l");
} else if (status == 2 && kocmage == 1) {
cm.changeJob(kocmagejobs[selection]);
cm.dispose();
} else if (status == 1 && selection == 800) {
kocbowman = 1;
cm.sendSimple("Please choose a job: \r\n#e#rFirst Job#k#n\r\n#L880#KoC Bowman#l\r\n\r\n#b#eSecond Job#k#n\r\n#L881#KoC Bowman#l\r\n\r\n#g#eThird Job#k#n\r\n#L883#KoC Bowman#l");
} else if (status == 2 && bowman == 1) {
cm.changeJob(kocbowmanjobs[selection]);
cm.dispose();
} else if (status == 1 && selection == 900) {
kocpirate = 1;
cm.sendSimple("Please choose a job: \r\n#e#rFirst Job#k#n\r\n#L990#KoC Pirate#l\r\n\r\n#b#eSecond Job#k#n\r\n#L991#KoC Pirate#l\r\n\r\n#g#eThird Job#k#n\r\n#L993#KoC Pirate#l");
} else if (status == 2 && kocpirate == 1) {
cm.changeJob(kocpiratejobs[selection]);
cm.dispose();
/* v82+ */
// Coming soon..


} else if (status == 0 && !req) {
cm.sendOk("Sorry, you must have " + reqrb + " reborns or more, please come back when you have " + reqrb + " reborns!");
cm.dispose();
}
}
avatar
構築さん
Admin

Posts : 193
Join date : 2014/05/29

http://maplescience.forumjap.com

トップに戻る Go down

トップに戻る


 
Permissions in this forum:
返信投稿: 不可