-
[Release] Pirate Job advancer (1-4) like cody *Fixed!
Hey again sorry for re-posting but i wasn't sure how to change the title? anyways the other script i released i found out didn't work so i fixed it (yay). I made it like cody to stop interchanging jobs between job advancements like in other releases. Anyways hope u like it =]
New improved code;
Code:
/*
Created By Eclipsed
NPC: Sejan of Ariant
Function: Pirate job advancer (1st - 4th job) ~ Min Dex= 20 ~ Min level= 10 (first job)
*/
importPackage(net.sf.odinms.client);
var status = 0;
var job;
function start()
{
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();
} else {
if ((mode == 0 && status == 1) || (mode == 0 && status == 4)) {
cm.sendOk("Come back once you have thought about it some more.");
cm.dispose();
return;
}
}
if (mode == -1)
{
cm.dispose();
}
else
{
if (mode == 1)
{
status++;
}
else
{
status--;
}
if (status == 0)
{
if (cm.getJob().equals(net.sf.odinms.client.MapleJob.BEGINNER)) {
if (cm.getLevel() >= 10 && cm.getChar().getDex() >= 20)
cm.sendNext("So you decided to become a #rPirate#k?");
else {
cm.sendOk("Train a bit more and I can show you the way of the #rPirate#k.");
cm.dispose();
}
}
else if (cm.getLevel() >= 10 && cm.getLevel() < 30)
{
if (cm.getJob().equals(net.sf.odinms.client.MapleJob.PIRATE))
{
cm.sendOk("Sorry, you need to be #blvl 30#k for your next job advance");
cm.dispose();
}
else
{
status = 3;
cm.sendNext("The progress you have made is astonishing.");
}
}
}
else if (cm.getLevel() >= 30 && cm.getLevel() < 70)
{
if (cm.getJob().equals(net.sf.odinms.client.MapleJob.INFIGHTER) || cm.getJob().equals(net.sf.odinms.client.MapleJob.GUNSLINGER))
{
cm.sendOk("Sorry, you need to be at least #blvl 70#k for your next job advance");
cm.dispose();
}
else
{
status = 6;
cm.sendNext("The progress you have made is astonishing.");
}
}
else if (cm.getLevel() >= 70 && cm.getLevel() < 120)
{
if (cm.getJob().equals(net.sf.odinms.client.MapleJob.VALKYRIE) || cm.getJob().equals(net.sf.odinms.client.MapleJob.BUCCANEER))
{
cm.sendOk("Sorry, you need to be at least #blvl 120#k for your next job advance");
cm.dispose();
}
else
{
status = 5;
cm.sendNext("The progress you have made is astonishing.");
}
}
else if (cm.getLevel() >=120)
{
if (cm.getJob().equals(net.sf.odinms.client.MapleJob.CAPTAIN) || cm.getJob().equals(net.sf.odinms.client.MapleJob.VIPER))
{
cm.sendOk("Hey #b#h ##k! \r\n#dYou are already at the highest job of #rMapleStory#k. Go test you're 4th job skills out instead, or hunt some strong bosses.#k");
cm.dispose();
}
else
{
status = 12;
cm.sendNext("The progress you have made is astonishing.");
}
}else if (status == 1) {
cm.sendYesNo("Are you sure you want to become a #rPirate?#k");
}else if (status == 2) {
if (cm.getJob().equals(net.sf.odinms.client.MapleJob.BEGINNER)) {
cm.changeJob(net.sf.odinms.client.MapleJob.PIRATE);
cm.sendOk("So be it! Now go, and go with pride.");
cm.dispose();
{
cm.sendSimple("Congrats on reaching #blevel 30!#k Which would you like to be? #b\r\n#L0#Gunslinger#l\r\n#L1#Infighter#l#k");
}
}
else if (status == 4)
if (cm.getJob().equals(net.sf.odinms.client.MapleJob.INFIGHTER) || cm.getJob().equals(net.sf.odinms.client.MapleJob.GUNSLINGER))
{
var jobName;
if (selection == 0)
{
jobName = "Gunslinger";
job = net.sf.odinms.client.MapleJob.GUNSLINGER;
}else{
if (selection == 1)
jobName = "Infighter";
job = net.sf.odinms.client.MapleJob.INFIGHTER;
}
cm.sendYesNo("Are you sure you want to become a #r" + jobName + "#k?");
{
status = 5
}
cm.changeJob(job);
cm.sendOk("You have successfully taken you're job advancement. Hope to see you again in the future.");
cm.dispose();
}
}
else if (status == 7)
{
if (cm.getJob().equals(net.sf.odinms.client.MapleJob.GUNSLINGER))
{
status = 8;
cm.sendYesNo("Congrats on reaching level 70 #b#h ##k! Do you want to advance to a Valkyrie?");
}
}
else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.INFIGHTER))
{
status = 10;
cm.sendYesNo("Congrats on reaching level 70 #b#h ##k! Do you want to advance to a Buccaneer?");
}
else if (status == 9)
{
cm.changeJob(MapleJob.VALKYRIE);
cm.sendOk("You have successfully taken your 3rd job advance.");
cm.dispose();
}
else if (status == 11)
{
cm.changeJob(MapleJob.BUCCANEER);
cm.sendOk("You have successfully taken your 3rd job advance.");
cm.dispose();
}
else if (status == 13)
{
if (cm.getJob().equals(net.sf.odinms.client.MapleJob.VALKYRIE))
{
status = 14;
cm.sendYesNo("Congrats on reaching level 120 #b#h ##k. Would you like to advance as a Captain now?");
}
else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.BUCCANEER))
{
status = 16;
cm.sendYesNo("Congrats on reaching level 120 #b#h ##k. Would you like to advance as a Viper now?");
}
}
else if (status == 15)
{
cm.changeJob(MapleJob.CAPTAIN);
cm.teachSkill(5221000,20,20); //MW
cm.teachSkill(5220001,30,30); //gun
cm.teachSkill(5220002,20,20); //octopus
cm.teachSkill(5221003,30,30); //bird
cm.teachSkill(5221004,30,30); //bullet
// cm.teachSkill(5221005,30,30); //dont have tis o.0
// cm.teachSkill(5221006,10,10); //pirate ship bugs-dc
cm.teachSkill(5221007,30,30); //pirate ship shoot
cm.teachSkill(5221008,30,30); //fish
cm.teachSkill(5221009,20,20); //batman
cm.teachSkill(5221010,1,1); //Hero's Will
cm.teachSkill(5220011,20,20); //flag
cm.sendOk("Congratulations #b#h ##k, you have successfully completed your 4th Job advancement.");
cm.dispose();
}
else if (status == 17)
{
cm.changeJob(MapleJob.VIPER);
cm.teachSkill(5121000,30,30);
cm.teachSkill(5121001,30,30);
cm.teachSkill(5121002,30,30);
cm.teachSkill(5121003,30,30);
cm.teachSkill(5121004,30,30);
cm.teachSkill(5121005,30,30);
cm.teachSkill(5121007,30,30);
cm.teachSkill(5121008,30,30);
cm.teachSkill(5121009,30,30);
cm.teachSkill(5121010,30,30);
cm.sendOk("Congratulations #b#h ##k, you have successfully completed your 4th Job advancement.");
cm.dispose();
}
}
}
Ok zonith here's my Cody script WITH Pirates :thumbup:
Code:
/*
Created By Eclipsed (Credits to whoever originally made Cody for 90% or the script)
NPC: Cody
Function: Job Advancer
*/
importPackage(net.sf.odinms.client);
var status = 0;
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)
{
if (cm.getLevel() < 30)
{
status = 98;
cm.sendNext("Sorry, but you have to be at least level 30 to get a 2nd job advance.");
cm.dispose();
}
else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.WARRIOR)
|| cm.getJob().equals(net.sf.odinms.client.MapleJob.MAGICIAN)
|| cm.getJob().equals(net.sf.odinms.client.MapleJob.BOWMAN)
|| cm.getJob().equals(net.sf.odinms.client.MapleJob.THIEF)
|| cm.getJob().equals(net.sf.odinms.client.MapleJob.PIRATE))
{
cm.sendNext("Hello #b#h ##k, I'm #rCody#k and I'm in charge of Job Advancement");
}
else if (cm.getLevel() >= 30 && cm.getLevel() < 70)
{
if (cm.getJob().equals(net.sf.odinms.client.MapleJob.ASSASSIN)
|| cm.getJob().equals(net.sf.odinms.client.MapleJob.BANDIT)
|| cm.getJob().equals(net.sf.odinms.client.MapleJob.HUNTER)
|| cm.getJob().equals(net.sf.odinms.client.MapleJob.CROSSBOWMAN)
|| cm.getJob().equals(net.sf.odinms.client.MapleJob.PAGE)
|| cm.getJob().equals(net.sf.odinms.client.MapleJob.FIGHTER)
|| cm.getJob().equals(net.sf.odinms.client.MapleJob.SPEARMAN)
|| cm.getJob().equals(net.sf.odinms.client.MapleJob.CLERIC)
|| cm.getJob().equals(net.sf.odinms.client.MapleJob. FP_WIZARD)
|| cm.getJob().equals(net.sf.odinms.client.MapleJob. IL_WIZARD)
|| cm.getJob().equals(net.sf.odinms.client.MapleJob.INFIGHTER)
|| cm.getJob().equals(net.sf.odinms.client.MapleJob.GUNSLINGER) )
{
cm.sendOk("Hello, I'm sorry but you need to be lvl70 for your next job advancement");
cm.dispose();
}
else
{
cm.sendNext("Hello #b#h ##k, I'm #rCody#k and I'm in charge of Job Advancement");
}
}
else if (cm.getLevel() >= 70 && cm.getLevel() < 120)
{
if (cm.getJob().equals(net.sf.odinms.client.MapleJob.HERMIT)
|| cm.getJob().equals(net.sf.odinms.client.MapleJob.CHIEFBANDIT)
|| cm.getJob().equals(net.sf.odinms.client.MapleJob.RANGER)
|| cm.getJob().equals(net.sf.odinms.client.MapleJob.SNIPER)
|| cm.getJob().equals(net.sf.odinms.client.MapleJob.WHITEKNIGHT)
|| cm.getJob().equals(net.sf.odinms.client.MapleJob.CRUSADER)
|| cm.getJob().equals(net.sf.odinms.client.MapleJob.DRAGONKNIGHT)
|| cm.getJob().equals(net.sf.odinms.client.MapleJob.PRIEST)
|| cm.getJob().equals(net.sf.odinms.client.MapleJob. FP_MAGE)
|| cm.getJob().equals(net.sf.odinms.client.MapleJob. IL_MAGE)
|| cm.getJob().equals(net.sf.odinms.client.MapleJob.BUCCANEER)
|| cm.getJob().equals(net.sf.odinms.client.MapleJob.VALKYRIE) )
{
cm.sendOk("Hello, I'm sorry but you need to be lvl120 for your next job advancement");
cm.dispose();
}
else
{
status = 60;
cm.sendNext("Hello #b#h ##k, I'm #rCody#k and I'm in charge of Job Advancement");
}
}
else if (cm.getLevel() >=120)
{
if (cm.getJob().equals(net.sf.odinms.client.MapleJob.NIGHTLORD)
|| cm.getJob().equals(net.sf.odinms.client.MapleJob.SHADOWER)
|| cm.getJob().equals(net.sf.odinms.client.MapleJob.BOWMASTER)
|| cm.getJob().equals(net.sf.odinms.client.MapleJob.CROSSBOWMASTER)
|| cm.getJob().equals(net.sf.odinms.client.MapleJob.PALADIN)
|| cm.getJob().equals(net.sf.odinms.client.MapleJob.HERO)
|| cm.getJob().equals(net.sf.odinms.client.MapleJob.DARKKNIGHT)
|| cm.getJob().equals(net.sf.odinms.client.MapleJob.BISHOP)
|| cm.getJob().equals(net.sf.odinms.client.MapleJob. FP_ARCHMAGE)
|| cm.getJob().equals(net.sf.odinms.client.MapleJob. IL_ARCHMAGE)
|| cm.getJob().equals(net.sf.odinms.client.MapleJob.VIPER)
|| cm.getJob().equals(net.sf.odinms.client.MapleJob.CAPTAIN) )
{
cm.sendOk("Hello #b#h ##k, \r\n#dYou are already at the highest job of MapleStory. Go test you're 4th job skills out instead or hunt some strong bosses.#k");
cm.dispose();
}
else
{
status = 101;
cm.sendNext("Hello #b#h ##k, I'm #rCody#k and I'm in charge of Job Advancement");
}
}
}
else if (status == 1)
{
if (cm.getJob().equals(net.sf.odinms.client.MapleJob.THIEF))
{
cm.sendSimple("Congrats on reaching level 30! Which would you like to be? #b\r\n#L0#Assassin#l\r\n#L1#Bandit#l#k");
}
if (cm.getJob().equals(net.sf.odinms.client.MapleJob.WARRIOR))
{
cm.sendSimple("Congrats on reaching level 30! Which would you like to be? #b\r\n#L2#Fighter#l\r\n#L3#Page#l\r\n#L4#Spearman#l#k");
}
if (cm.getJob().equals(net.sf.odinms.client.MapleJob.MAGICIAN))
{
cm.sendSimple("Congrats on reaching level 30! 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");
}
if (cm.getJob().equals(net.sf.odinms.client.MapleJob.BOWMAN))
{
cm.sendSimple("Congrats on reaching level 30! Which would you like to be? #b\r\n#L8#Hunter#l\r\n#L9#Crossbowman#l#k");
}
if (cm.getJob().equals(net.sf.odinms.client.MapleJob.PIRATE))
{
cm.sendSimple("Congrats on reaching level 30! Which would you like to be? #b\r\n#L10#Infighter#l\r\n#L11#Gunslinger#l#k");
}
if (cm.getJob().equals(net.sf.odinms.client.MapleJob.BEGINNER))
{
cm.sendNext("Sorry #b#h ##k, you must've undergone the First Job Advancement before you can use my services.");
cm.dispose();
}
}
else if (status == 2)
{
var jobName;
if (selection == 0)
{
jobName = "Assassin";
job = net.sf.odinms.client.MapleJob.ASSASSIN;
}
if (selection == 1)
{
jobName = "Bandit";
job = net.sf.odinms.client.MapleJob.BANDIT;
}
if (selection == 2)
{
jobName = "Fighter";
job = net.sf.odinms.client.MapleJob.FIGHTER;
}
if (selection == 3)
{
jobName = "Page";
job = net.sf.odinms.client.MapleJob.PAGE;
}
if (selection == 4)
{
jobName = "Spearman";
job = net.sf.odinms.client.MapleJob.SPEARMAN;
}
if (selection == 5)
{
jobName = "Ice Lightning Wizard";
job = net.sf.odinms.client.MapleJob.IL_WIZARD;
}
if (selection == 6)
{
jobName = "Fire Poison Wizard";
job = net.sf.odinms.client.MapleJob.FP_WIZARD;
}
if (selection == 7)
{
jobName = "Cleric";
job = net.sf.odinms.client.MapleJob.CLERIC;
}
if (selection == 8)
{
jobName = "Hunter";
job = net.sf.odinms.client.MapleJob.HUNTER;
}
if (selection == 9)
{
jobName = "Crossbowman";
job = net.sf.odinms.client.MapleJob.CROSSBOWMAN;
}
if (selection == 10)
{
jobName = "Infighter";
job = net.sf.odinms.client.MapleJob.INFIGHTER;
}
if (selection == 11)
{
jobName = "Gunslinger";
job = net.sf.odinms.client.MapleJob.GUNSLINGER;
}
cm.sendYesNo("Do you want to become a #r" + jobName + "#k?");
}
else if (status == 3)
{
cm.changeJob(job);
cm.sendOk("You have successfully taken you're job advancement. Hope to see you again in the future.");
cm.dispose();
}
else if (status == 61)
{
if (cm.getJob().equals(net.sf.odinms.client.MapleJob.ASSASSIN))
{
status = 63;
cm.sendYesNo("Congrats on reaching level 70 #b#h ##k! Do you want to advance to a Hermit?");
}
else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.BANDIT))
{
status = 66;
cm.sendYesNo("Congrats on reaching level 70 #b#h ##k! Do you want to advance to a Chief Bandit?");
}
else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.HUNTER))
{
status = 69;
cm.sendYesNo("Congrats on reaching level 70 #b#h ##k! Do you want to advance to a Ranger?");
}
else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.CROSSBOWMAN))
{
status = 72;
cm.sendYesNo("Congrats on reaching level 70 #b#h ##k! Do you want to advance to a Sniper?");
}
else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.FP_WIZARD))
{
status = 75;
cm.sendYesNo("Congrats on reaching level 70 #b#h ##k! Do you want to advance to a F/P Mage?");
}
else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.IL_WIZARD))
{
status = 78;
cm.sendYesNo("Congrats on reaching level 70 #b#h ##k! Do you want to advance to a I/L Mage?");
}
else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.CLERIC))
{
status = 81;
cm.sendYesNo("Congrats on reaching level 70 #b#h ##k! Do you want to advance to a Priest?");
}
else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.FIGHTER))
{
status = 84;
cm.sendYesNo("Congrats on reaching level 70 #b#h ##k! Do you want to advance to a Crusader?");
}
else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.PAGE))
{
status = 87;
cm.sendYesNo("Congrats on reaching level 70 #b#h ##k! Do you want to advance to a White Knight?");
}
else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.SPEARMAN))
{
status = 90;
cm.sendYesNo("Congrats on reaching level 70 #b#h ##k! Do you want to advance to a Dragon Knight?");
}
else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.INFIGHTER))
{
status = 93;
cm.sendYesNo("Congrats on reaching level 70 #b#h ##k! Do you want to advance to a BUCCANEER?");
}
else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.GUNSLINGER))
{
status = 96;
cm.sendYesNo("Congrats on reaching level 70 #b#h ##k! Do you want to advance to a VALKYRIE?");
}
else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.BEGINNER))
{
cm.sendNext("Sorry #b#h ##k, you must've undergone the First Job Advancement before you can use my services.");
}
}
else if (status == 64)
{
cm.changeJob(MapleJob.HERMIT);
cm.sendOk("You have successfully taken your 3rd job advance.");
cm.dispose();
}
else if (status == 67)
{
cm.changeJob(MapleJob.CHIEFBANDIT);
cm.sendOk("You have successfully taken your 3rd job advance.");
cm.dispose();
}
else if (status == 70)
{
cm.changeJob(MapleJob.RANGER);
cm.sendOk("You have successfully taken your 3rd job advance.");
cm.dispose();
}
else if (status == 73)
{
cm.changeJob(MapleJob.SNIPER);
cm.sendOk("You have successfully taken your 3rd job advance.");
cm.dispose();
}
else if (status == 76)
{
cm.changeJob(MapleJob.FP_MAGE);
cm.sendOk("You have successfully taken your 3rd job advance.");
cm.dispose();
}
else if (status == 79)
{
cm.changeJob(MapleJob.IL_MAGE);
cm.sendOk("You have successfully taken your 3rd job advance.");
cm.dispose();
}
else if (status == 82)
{
cm.changeJob(MapleJob.PRIEST);
cm.sendOk("You have successfully taken your 3rd job advance.");
cm.dispose();
}
else if (status == 85)
{
cm.changeJob(MapleJob.CRUSADER);
cm.sendOk("You have successfully taken your 3rd job advance.");
cm.dispose();
}
else if (status == 88)
{
cm.changeJob(MapleJob.WHITEKNIGHT);
cm.sendOk("You have successfully taken your 3rd job advance.");
cm.dispose();
}
else if (status == 91)
{
cm.changeJob(MapleJob.DRAGONKNIGHT);
cm.sendOk("You have successfully taken your 3rd job advance.");
cm.dispose();
}
else if (status == 94)
{
cm.changeJob(MapleJob.BUCCANEER);
cm.sendOk("You have successfully taken your 3rd job advance.");
cm.dispose();
}
else if (status == 97)
{
cm.changeJob(MapleJob.VALKYRIE);
cm.sendOk("You have successfully taken your 3rd job advance.");
cm.dispose();
}
else if (status == 99)
{
cm.sendOk("Good luck on your training.");
cm.dispose();
}
else if (status == 102)
{
if (cm.getJob().equals(net.sf.odinms.client.MapleJob.HERMIT))
{
status = 105;
cm.sendYesNo("Congrats on reaching level 120 #g#h ##k Do you want to advance to a Nightlord now?");
}
else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.CHIEFBANDIT))
{
status = 108;
cm.sendYesNo("Congrats on reaching level 120 #g#h ##k Do you want to advance to a Shadower now?");
}
else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.RANGER))
{
status = 111;
cm.sendYesNo("Congrats on reaching level 120 #g#h ##k Do you want to advance to a Bowmaster now?");
}
else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.SNIPER))
{
status = 114;
cm.sendYesNo("Congrats on reaching level 120 #g#h ##k Do you want to advance to a MarksMan now?");
}
else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.FP_MAGE))
{
status = 117;
cm.sendYesNo("Congrats on reaching level 120 #g#h ##k Do you want to advance to a F/P Archmage now?");
}
else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.IL_MAGE))
{
status = 120;
cm.sendYesNo("Congrats on reaching level 120 #g#h ##k Do you want to advance to an I/L Archmage now?");
}
else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.PRIEST))
{
status = 123;
cm.sendYesNo("Congrats on reaching level 120 #g#h ##k Do you want to advance to a Bishop now?");
}
else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.CRUSADER))
{
status = 126;
cm.sendYesNo("Congrats on reaching level 120 #g#h ##k Do you want to advance to a Hero now?");
}
else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.WHITEKNIGHT))
{
status = 129;
cm.sendYesNo("Congrats on reaching level 120 #g#h ##k Do you want to advance to a Paladin now?");
}
else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.DRAGONKNIGHT))
{
status = 132;
cm.sendYesNo("Congrats on reaching level 120 #g#h ##k Do you want to advance to a Dark Knight now?");
}
else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.BUCCANEER))
{
status = 135;
cm.sendYesNo("Congrats on reaching level 120 #g#h ##k Do you want to advance to a VIPER now?");
}
else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.VALKYRIE))
{
status = 138;
cm.sendYesNo("Congrats on reaching level 120 #g#h ##k Do you want to advance to a CAPTAIN now?");
}
else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.BEGINNER))
{
cm.sendNext("Sorry #b#h ##k, you must've undergone the First Job Advancement before you can use my services.");
cm.dispose();
}
}
else if (status == 106)
{
cm.changeJob(MapleJob.NIGHTLORD);
cm.teachSkill(4121000,1,20); //MW
cm.teachSkill(4120002,1,30); //fake
cm.teachSkill(4120005,1,30); //venom
cm.teachSkill(4121006,1,30); //Spirit Claw
cm.teachSkill(4121003,1,30); //Showdown
cm.teachSkill(4121004,1,30); //Ninja Ambush
cm.teachSkill(4121007,1,30); //Triple Throw
cm.teachSkill(4121008,1,30); //Ninja Storm
cm.sendOk("You have successfully taken your 4th Job advance #b#h ##k. I provided you a full sets of skills aswell. Keep up the good work.");
cm.dispose();
}
else if (status == 109)
{
cm.changeJob(MapleJob.SHADOWER);
cm.teachSkill(4221000,1,20); //MW
cm.teachSkill(4221007,1,30); //Boomerang Step
cm.teachSkill(4221005,1,30); //venom
cm.teachSkill(4220002,1,30); //fake
cm.teachSkill(4221008,1,1); //Hero's Will
cm.teachSkill(4221001,1,30); //Assassinate
cm.teachSkill(4221003,1,30); //Showdown
cm.teachSkill(4221004,1,30); //Ninja Ambush
cm.teachSkill(4221006,1,30); //Smoke Shell
cm.sendOk("You have successfully taken your 4th Job advance #b#h ##k. I provided you a full sets of skills aswell. Keep up the good work.");
cm.dispose();
}
else if (status == 112)
{
cm.changeJob(MapleJob.BOWMASTER);
cm.teachSkill(3121000,1,30); //MW
cm.teachSkill(3121002,1,30); //Sharp Eyes
cm.teachSkill(3120005,1,30); //Bow Expert
cm.teachSkill(3121007,1,30); //Hamstring
cm.teachSkill(3121009,1,1); //Hero's Will
cm.teachSkill(3121003,1,30); //Dragon Pulse - Dragon's Breath
cm.teachSkill(3121004,1,30); //Storm Arrow - Hurricane
cm.teachSkill(3121006,1,30); //Phoenix
cm.teachSkill(3121008,1,30); //Concentration
cm.sendOk("You have successfully taken your 4th Job advance #b#h ##k. I provided you a full sets of skills aswell. Keep up the good work.");
cm.dispose();
}
else if (status == 115)
{
cm.changeJob(MapleJob.CROSSBOWMASTER);
cm.teachSkill(3221000,1,20); //MW
cm.teachSkill(3221002,1,30); //Sharp Eyes
cm.teachSkill(3220004,1,30); //Crossbow Expert
cm.teachSkill(3221006,1,30); //Blind
cm.teachSkill(3221008,1,1); //Hero's Will
cm.teachSkill(3221001,1,30); //Piercing
cm.teachSkill(3221003,1,30); //Dragon Pulse
cm.teachSkill(3221005,1,30); //Freezer
cm.sendOk("You have successfully taken your 4th Job advance #b#h ##k. I provided you a full sets of skills aswell. Keep up the good work.");
cm.dispose();
}
else if (status == 118)
{
cm.changeJob(MapleJob.FP_ARCHMAGE);
cm.teachSkill(2121000,1,20); //MW
cm.teachSkill(2121001,1,30); //Big Bang
cm.teachSkill(2121002,1,30); //Mana Reflection
cm.teachSkill(2121006,1,30); //Paralyze
cm.teachSkill(2121008,1,1); //Hero's Will
cm.teachSkill(2121003,1,30); //Fire Demon
cm.teachSkill(2121004,1,30); //Infinity
cm.teachSkill(2121005,1,30); //Elquines
cm.teachSkill(2121007,1,30); //Meteo
cm.sendOk("You have successfully taken your 4th Job advance #b#h ##k. I provided you a full sets of skills aswell. Keep up the good work.");
cm.dispose();
}
else if(status == 121)
{
cm.changeJob(MapleJob.IL_ARCHMAGE);
cm.teachSkill(2221000,1,20); //MW
cm.teachSkill(2221001,1,30); //Big Bang
cm.teachSkill(2221002,1,30); //Mana Reflection
cm.teachSkill(2221006,1,30); //Chain Lightning
cm.teachSkill(2221008,1,1); //Hero's Will
cm.teachSkill(2221003,1,30); //Ice Demon
cm.teachSkill(2221004,1,30); //Infinity
cm.teachSkill(2221005,1,30); //Ifrit
cm.teachSkill(2221007,1,30); //Blizzard
cm.sendOk("You have successfully taken your 4th Job advance #b#h ##k. I provided you a full sets of skills aswell. Keep up the good work.");
cm.dispose();
}
else if (status == 124)
{
cm.changeJob(MapleJob.BISHOP);
cm.teachSkill(2321000,1,20); //MW
cm.teachSkill(2321001,1,30); //Big Bang
cm.teachSkill(2321002,1,30); //Mana Reflection
cm.teachSkill(2321005,1,30); //Holy Shield
cm.teachSkill(2321009,1,1); //Hero's Will
cm.teachSkill(2321003,1,30); //Bahamut
cm.teachSkill(2321004,1,30); //Infinity
cm.teachSkill(2321006,1,10); //Resurrection
cm.teachSkill(2321007,1,30); //Angels Ray
cm.teachSkill(2321008,1,30); //Genesis
cm.sendOk("You have successfully taken your 4th Job advance #b#h ##k. I provided you a full sets of skills aswell. Keep up the good work.");
cm.dispose();
}
else if (status == 127)
{
cm.changeJob(MapleJob.HERO);
cm.teachSkill(1120004,1,30); //Achilles
cm.teachSkill(1121011,1,1); //Hero's Will
cm.teachSkill(1121008,1,30); //Brandish
cm.teachSkill(1121000,1,20); //MW
cm.teachSkill(1121001,1,29); //Monster Magnet
cm.teachSkill(1121002,1,30); //Stance
cm.teachSkill(1120003,1,30); //Advanced Combo
cm.teachSkill(1120005,1,30); //blocking
cm.teachSkill(1121006,1,30); //Rush
cm.teachSkill(1121010,1,30); //Enrage
cm.sendOk("You have successfully taken your 4th Job advance #b#h ##k. I provided you a full sets of skills aswell. Keep up the good work.");
cm.dispose();
}
else if (status == 130)
{
cm.changeJob(MapleJob.PALADIN);
cm.teachSkill(1221000,1,20); //MW
cm.teachSkill(1221001,1,29); //Monster Magnet
cm.teachSkill(1220005,1,30); //Achilles
cm.teachSkill(1221012,1,1); //Hero's Will
cm.teachSkill(1221002,1,30); //Stance
cm.teachSkill(1221003,1,19); //Holy Charge: Sword
cm.teachSkill(1221004,1,19); //Divine Charge: Mace
cm.teachSkill(1220006,1,30); //blocking
cm.teachSkill(1221007,1,30); //Rush
cm.teachSkill(1221009,1,30); //Blast
cm.teachSkill(1220010,1,10); //Advanced Charge
cm.teachSkill(1221011,1,30); //Sanctuary - Heaven's Hammer
cm.sendOk("You have successfully taken your 4th Job advance #b#h ##k. I provided you a full sets of skills aswell. Keep up the good work.");
cm.dispose();
}
else if (status == 133)
{
cm.changeJob(MapleJob.DARKKNIGHT);
cm.teachSkill(1321000,1,20); //MW
cm.teachSkill(1321001,1,29); //Monster Magnet
cm.teachSkill(1320005,1,30); //Achilles
cm.teachSkill(1320009,1,25); //Beholder's Buff
cm.teachSkill(1321010,1,1); //Hero's Will
cm.teachSkill(1321002,1,30); //Stance
cm.teachSkill(1321003,1,30); //Rush
cm.teachSkill(1320006,1,30); //Berserk
cm.teachSkill(1321007,1,10); //Beholder
cm.teachSkill(1320008,1,25); //Beholder's Healing
cm.sendOk("You have successfully taken your 4th Job advance #b#h ##k. I provided you a full sets of skills aswell. Keep up the good work.");
cm.dispose();
}
else if (status == 136)
{
cm.changeJob(MapleJob.VIPER);
cm.teachSkill(5121000,30,30);
cm.teachSkill(5121001,30,30);
cm.teachSkill(5121002,30,30);
cm.teachSkill(5121003,30,30);
cm.teachSkill(5121004,30,30);
cm.teachSkill(5121005,30,30);
cm.teachSkill(5121007,30,30);
cm.teachSkill(5121008,30,30);
cm.teachSkill(5121009,30,30);
cm.teachSkill(5121010,30,30);
cm.sendOk("You have successfully taken your 4th Job advance #b#h ##k. I provided you a full sets of skills aswell. Keep up the good work.");
cm.dispose();
}
else if (status == 139)
{
cm.changeJob(MapleJob.CAPTAIN);
cm.teachSkill(5221000,20,20); //MW
cm.teachSkill(5220001,30,30); //gun
cm.teachSkill(5220002,20,20); //octopus
cm.teachSkill(5221003,30,30); //bird
cm.teachSkill(5221004,30,30); //bullet
// cm.teachSkill(5221005,30,30); //dont have tis o.0
// cm.teachSkill(5221006,10,10); //pirate ship bugs-dc
cm.teachSkill(5221007,30,30); //pirate ship shoot
cm.teachSkill(5221008,30,30); //fish
cm.teachSkill(5221009,20,20); //batman
cm.teachSkill(5221010,1,1); //Hero's Will
cm.teachSkill(5220011,20,20); //flag
cm.sendOk("You have successfully taken your 4th Job advance #b#h ##k. I provided you a full sets of skills aswell. Keep up the good work.");
cm.dispose();
}
}
}
(still fixing the pirate bit) but i guess u dun need it so much now that cody is done
If you like use Cody's script for 2-4th job advancements and use this temporerily untill i fix the all in one advancer.
Code:
/*
Created By Eclipsed
NPC: Sejan of Ariant
Function: Pirate 1st job advancer Min Dex= 20 ~ Min level= 10
*/
var status = 0;
var job;
importPackage(net.sf.odinms.client);
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();
} else {
if ((mode == 0 && status == 2) || (mode == 0 && status == 3)) {
cm.sendOk("Come back once you have thought about it some more.");
cm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
if (cm.getJob().equals(net.sf.odinms.client.MapleJob.BEGINNER)) {
if (cm.getLevel() >= 10 && cm.getChar().getDex() >= 20)
cm.sendNext("So you decided to become a #Pirate#k?");
} else
cm.sendOk("Train a bit more and I can show you the way of the #rPirate#k.");
cm.dispose()
} else if (status == 1) {
cm.sendNextPrev("It is an important and final choice. You will not be able to turn back.");
} else if (status == 2) {
cm.sendYesNo("Do you want to become a #rPirate#k?");
} else if (status == 3) {
if (cm.getJob().equals(net.sf.odinms.client.MapleJob.BEGINNER)) {
cm.changeJob(net.sf.odinms.client.MapleJob.PIRATE);
}
cm.sendOk("So be it! Now go, and go with pride.");
cm.dispose();
}
}
}
That does first job (just leaving options here)
~Eclipsed :drool:
-
Re: [Release] Pirate Job advancer (1-4) like cody *Fixed!
Correct me if i'm wrong.
This wont work. Missing {
-
Re: [Release] Pirate Job advancer (1-4) like cody *Fixed!
you didnt even test this did you
-
Re: [Release] Pirate Job advancer (1-4) like cody *Fixed!
No lol.
Just treat it as i'm wrong ._.
-
Re: [Release] Pirate Job advancer (1-4) like cody *Fixed!
-
Re: [Release] Pirate Job advancer (1-4) like cody *Fixed!
can i paste this in the botom of my cody script? will it conflict with the other script even if i change it around a little? (im noob with npcs)
-
Re: [Release] Pirate Job advancer (1-4) like cody *Fixed!
script does not work tested it advanced to piratwe then its unclickable after tyhat
-
Re: [Release] Pirate Job advancer (1-4) like cody *Fixed!
I believe the DEX requirement is 20, not 10
And you put a } at the wrong spot
-
Re: [Release] Pirate Job advancer (1-4) like cody *Fixed!
-
Re: [Release] Pirate Job advancer (1-4) like cody *Fixed!
Quote:
Originally Posted by
zonith
can i paste this in the botom of my cody script? will it conflict with the other script even if i change it around a little? (im noob with npcs)
U can but it wont work immediatly, U'll have to fix the selection and status numbers n stuff that's about it.
And no i didnt test it cuz i was in a rush yesterday and i thought it would work sorry gimme lyk 10 mins an ill fix it :*: i fink it doesn't work after the first advance becuz status is wrong btw i found another prob when i tested it jus then when u advance the first job i dc?
Anyways sorry about that, sould be a simple fix :(:
Edit: Use my script for cody (advances 2-4th jobs same as every other job =p) - sorry it took so long i couldn't find the skill id's for 4th jobs
-
Re: [Release] Pirate Job advancer (1-4) like cody *Fixed!
No it will not, it will very much'ly confilict with your old script.
huh? i don't really see any wrong }s from net beans :x
-
Re: [Release] Pirate Job advancer (1-4) like cody *Fixed!
hahaha swwweeet man thanks so much <3
-
Re: [Release] Pirate Job advancer (1-4) like cody *Fixed!
-
Re: [Release] Pirate Job advancer (1-4) like cody *Fixed!
Quote:
Originally Posted by
zonith
hahaha swwweeet man thanks so much <3
Quote:
Originally Posted by
Azora
Thank you!
No problems glad i can help (though its not much) :ott1:
-
Re: [Release] Pirate Job advancer (1-4) like cody *Fixed!
nah its a lot i love it :] btw where did u learn npc coding ? i really wanna learn cause im done with database learning and i wanna go to the next step T_T
-
Re: [Release] Pirate Job advancer (1-4) like cody *Fixed!
Quote:
Originally Posted by
zonith
nah its a lot i love it :] btw where did u learn npc coding ? i really wanna learn cause im done with database learning and i wanna go to the next step T_T
Lol i kinda taught myself, like i understand how things function cuz ive done bits and pieces in visual basic and c++ before at school but u can kinda learn from different npc's that are already coded and if u like can use the basics of that coding if its similar to what you want to do. (I used cody as a reference for this)
http://forum.ragezone.com/f428/guide...cripts-465896/
^ Use that for more detailed scriptng (like font colour ect)
-
Re: [Release] Pirate Job advancer (1-4) like cody *Fixed!
-
Re: [Release] Pirate Job advancer (1-4) like cody *Fixed!
How do I make a file for Sejan if the file isn't in my NPC section of the repack?
-
Re: [Release] Pirate Job advancer (1-4) like cody *Fixed!
it dont have to be sejan just find the npc u want and replace the code in there file with this one
-
Re: [Release] Pirate Job advancer (1-4) like cody *Fixed!
Quote:
Originally Posted by
Colbeh
How do I make a file for Sejan if the file isn't in my NPC section of the repack?
As zonith said copy paste the script in here into any npc you like Sejan is my default for this thats all. btw don't use it it still doesn't work fully the 2nd advancer script and cody work but the first 1 =fail atm
-
Re: [Release] Pirate Job advancer (1-4) like cody *Fixed!
my players use the first one for the first job and use cody for the rest lol
-
Re: [Release] Pirate Job advancer (1-4) like cody *Fixed!
Quote:
Originally Posted by
zonith
my players use the first one for the first job and use cody for the rest lol
Yeh that makes sense does the 2nd one dc when the job advance is given?
-
Re: [Release] Pirate Job advancer (1-4) like cody *Fixed!
nah it doesnt for cody it doesnt but for the first script it does
-
Re: [Release] Pirate Job advancer (1-4) like cody *Fixed!
Quote:
Originally Posted by
zonith
nah it doesnt for cody it doesnt but for the first script it does
Ah kay thats good =] i'm not sure why it does but yeh i guess ill fix that eventually as well -.-
-
Re: [Release] Pirate Job advancer (1-4) like cody *Fixed!
Thanks, i'm gonna use this. Overlevels work?