Convert remaining scripts to Graal
Mainly missed scripts that use Nashorn's "Packages"
This commit is contained in:
@@ -54,7 +54,8 @@ function end(mode, type, selection) {
|
||||
}
|
||||
qm.gainItem(4032096, -30);
|
||||
qm.gainItem(1142067, 1);
|
||||
qm.getPlayer().changeJob(Packages.client.MapleJob.DAWNWARRIOR2);
|
||||
const MapleJob = Java.type('client.MapleJob');
|
||||
qm.getPlayer().changeJob(MapleJob.DAWNWARRIOR2);
|
||||
qm.completeQuest();
|
||||
}
|
||||
qm.sendNext("You are a Knight-in-Training no more. You are now an official knight of the Cygnus Knights.");
|
||||
|
||||
@@ -54,7 +54,8 @@ function end(mode, type, selection) {
|
||||
}
|
||||
qm.gainItem(4032097, -30);
|
||||
qm.gainItem(1142067, 1);
|
||||
qm.getPlayer().changeJob(Packages.client.MapleJob.BLAZEWIZARD2);
|
||||
const MapleJob = Java.type('client.MapleJob');
|
||||
qm.getPlayer().changeJob(MapleJob.BLAZEWIZARD2);
|
||||
qm.completeQuest();
|
||||
}
|
||||
qm.sendNext("You are no longer a Knight-in-Training. You are now an official Cygnus Knight!");
|
||||
|
||||
@@ -54,7 +54,8 @@ function end(mode, type, selection) {
|
||||
}
|
||||
qm.gainItem(4032098, -30);
|
||||
qm.gainItem(1142067, 1);
|
||||
qm.getPlayer().changeJob(Packages.client.MapleJob.WINDARCHER2);
|
||||
const MapleJob = Java.type('client.MapleJob');
|
||||
qm.getPlayer().changeJob(MapleJob.WINDARCHER2);
|
||||
qm.completeQuest();
|
||||
}
|
||||
qm.sendNext("You are no longer a Knight-in-Training. You are now officially a Cygnus Knight.");
|
||||
|
||||
@@ -54,7 +54,8 @@ function end(mode, type, selection) {
|
||||
}
|
||||
qm.gainItem(4032099, -30);
|
||||
qm.gainItem(1142067, 1);
|
||||
qm.getPlayer().changeJob(Packages.client.MapleJob.NIGHTWALKER2);
|
||||
const MapleJob = Java.type('client.MapleJob');
|
||||
qm.getPlayer().changeJob(MapleJob.NIGHTWALKER2);
|
||||
qm.completeQuest();
|
||||
}
|
||||
qm.sendNext("You are no longer a Knight-in-Training. You have officially become a Cygnus Knight.");
|
||||
|
||||
@@ -54,7 +54,8 @@ function end(mode, type, selection) {
|
||||
}
|
||||
qm.gainItem(4032100, -30);
|
||||
qm.gainItem(1142067, 1);
|
||||
qm.getPlayer().changeJob(Packages.client.MapleJob.THUNDERBREAKER2);
|
||||
const MapleJob = Java.type('client.MapleJob');
|
||||
qm.getPlayer().changeJob(MapleJob.THUNDERBREAKER2);
|
||||
qm.completeQuest();
|
||||
}
|
||||
qm.sendNext("You are now no longer a Knight-in-Training. You have now officially become a Cygnus Knight.");
|
||||
|
||||
@@ -54,7 +54,8 @@ function start(mode, type, selection) {
|
||||
} else {
|
||||
qm.completeQuest();
|
||||
qm.gainItem(1142068, 1);
|
||||
qm.getPlayer().changeJob(Packages.client.MapleJob.DAWNWARRIOR3);
|
||||
const MapleJob = Java.type('client.MapleJob');
|
||||
qm.getPlayer().changeJob(MapleJob.DAWNWARRIOR3);
|
||||
qm.sendOk("#h #, as of this moment, you are an Advanced Knight. From this moment on, you shall carry yourself with dignity and respect befitting your new title, an Advanced Knight of Cygnus Knights. May your glory continue to shine as bright as this moment.");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,7 +54,8 @@ function start(mode, type, selection) {
|
||||
} else {
|
||||
qm.completeQuest();
|
||||
qm.gainItem(1142068, 1);
|
||||
qm.getPlayer().changeJob(Packages.client.MapleJob.BLAZEWIZARD3);
|
||||
const MapleJob = Java.type('client.MapleJob');
|
||||
qm.getPlayer().changeJob(MapleJob.BLAZEWIZARD3);
|
||||
qm.sendOk("#h #, as of this moment, you are an Advanced Knight. From this moment on, you will train yourself with fervor as you will lead your group of Knights for the safety of this world. That fervor will provide you with plenty of courage.");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,7 +54,8 @@ function start(mode, type, selection) {
|
||||
} else {
|
||||
qm.completeQuest();
|
||||
qm.gainItem(1142068, 1);
|
||||
qm.getPlayer().changeJob(Packages.client.MapleJob.WINDARCHER3);
|
||||
const MapleJob = Java.type('client.MapleJob');
|
||||
qm.getPlayer().changeJob(MapleJob.WINDARCHER3);
|
||||
qm.sendOk("#h #, as of this moment, you are an Advanced Knight. From this moment on, you will be carrying a while lot of responsibility befitting your new title as an Advanced Knight of Cygnus Knights. You may view the world in a carefree mode, but please remember what your mission is.");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -53,7 +53,8 @@ function start(mode, type, selection) {
|
||||
qm.sendNext("If you wish to receive the medal befitting the title, you may want to make some room in your equipment inventory.");
|
||||
} else {
|
||||
qm.gainItem(1142068, 1);
|
||||
qm.getPlayer().changeJob(Packages.client.MapleJob.NIGHTWALKER3);
|
||||
const MapleJob = Java.type('client.MapleJob');
|
||||
qm.getPlayer().changeJob(MapleJob.NIGHTWALKER3);
|
||||
qm.completeQuest();
|
||||
qm.sendOk("#h #, from here on out, you are an Advanced Knight of Cygnus Knights. The title comes with a newfound broad view on everything. You may encounter temptations here and there, but I want you to keep your faith and beliefs intact and do not succumb to the darkness.");
|
||||
}
|
||||
|
||||
@@ -53,7 +53,8 @@ function start(mode, type, selection) {
|
||||
qm.sendNext("If you wish to receive the medal befitting the title, you may want to make some room in your equipment inventory.");
|
||||
} else {
|
||||
qm.gainItem(1142068, 1);
|
||||
qm.getPlayer().changeJob(Packages.client.MapleJob.THUNDERBREAKER3);
|
||||
const MapleJob = Java.type('client.MapleJob');
|
||||
qm.getPlayer().changeJob(MapleJob.THUNDERBREAKER3);
|
||||
qm.completeQuest();
|
||||
qm.sendOk("#h #, from here on out, you will become an Advanced Knight of the Knights of Cygnus! As your standing rises, so does the difficulty of the tasks you will be receiving. But challenge is good, right? You have to enjoy life. Enjoy what's given to you!");
|
||||
}
|
||||
|
||||
@@ -23,10 +23,10 @@ function start(mode, type, selection) {
|
||||
}
|
||||
if (status == 0)
|
||||
qm.sendAcceptDecline("I think i've heard of a potion that breaks these kinds of barriers. I think it's called #bKiller Mushroom Spores#k? Hmmm... outside, you'll find the Mushroom Scholar #bScarrs#k waiting outside. #bScarrs#k is an expert on mushrooms, so go talk to him.");
|
||||
else if (status == 1){
|
||||
else if (status == 1) {
|
||||
qm.forceStartQuest();
|
||||
qm.sendOk("I am confident #kScarrs#k will do everything to help you.");
|
||||
else if (status == 2){
|
||||
} else if (status == 2){
|
||||
qm.dispose();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,25 +4,27 @@ function end(mode, type, selection) {
|
||||
if (mode == -1) {
|
||||
qm.dispose();
|
||||
} else {
|
||||
if(mode == 0 && type > 0) {
|
||||
if (mode == 0 && type > 0) {
|
||||
qm.dispose();
|
||||
return;
|
||||
}
|
||||
|
||||
if (mode == 1)
|
||||
|
||||
if (mode == 1) {
|
||||
status++;
|
||||
else
|
||||
} else {
|
||||
status--;
|
||||
|
||||
}
|
||||
|
||||
if (status == 0) {
|
||||
if(qm.haveItem(4031092, 10)) {
|
||||
if(qm.getPlayer().getInventory(Packages.client.inventory.MapleInventoryType.USE).getNumFreeSlot() >= 1) {
|
||||
if (qm.haveItem(4031092, 10)) {
|
||||
const MapleInventoryType = Java.type('client.inventory.MapleInventoryType');
|
||||
if (qm.getPlayer().getInventory(MapleInventoryType.USE).getNumFreeSlot() >= 1) {
|
||||
qm.sendOk("Well done! You brought back all the #t4031092# that were missing. Here, take this scroll as a token of my gratitude...");
|
||||
} else {
|
||||
} else {
|
||||
qm.sendOk("Free a space on your USE inventory before receiving your prize.");
|
||||
qm.dispose();
|
||||
return;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
qm.sendOk("Please return me 10 #t4031092# that went missing on this room.");
|
||||
qm.dispose();
|
||||
@@ -30,12 +32,17 @@ function end(mode, type, selection) {
|
||||
}
|
||||
} else if (status == 1) {
|
||||
qm.gainItem(4031092, -10);
|
||||
|
||||
|
||||
rnd = Math.floor(Math.random() * 4);
|
||||
if(rnd == 0) qm.gainItem(2040704, 1);
|
||||
else if(rnd == 1) qm.gainItem(2040705, 1);
|
||||
else if(rnd == 2) qm.gainItem(2040707, 1);
|
||||
else qm.gainItem(2040708, 1);
|
||||
if (rnd == 0) {
|
||||
qm.gainItem(2040704, 1);
|
||||
} else if (rnd == 1) {
|
||||
qm.gainItem(2040705, 1);
|
||||
} else if (rnd == 2) {
|
||||
qm.gainItem(2040707, 1);
|
||||
} else {
|
||||
qm.gainItem(2040708, 1);
|
||||
}
|
||||
|
||||
qm.gainExp(2700);
|
||||
qm.forceCompleteQuest();
|
||||
|
||||
@@ -13,7 +13,8 @@ function end(mode, type, selection) {
|
||||
if(status == 0) {
|
||||
qm.sendNext("What the? Are you telling me you've already taken out 150 #o4230120#s? And these ... yes, these really are 120 #t4000122#s. I was wondering how you were going to complete this mission all by yourself, but you took care of it just fine. Alright, here ... this is a very important item for me, but please take it.");
|
||||
} else if(status == 1) {
|
||||
if(qm.getPlayer().getInventory(Packages.client.inventory.MapleInventoryType.EQUIP).getNumFreeSlot() < 1) {
|
||||
const MapleInventoryType = Java.type('client.inventory.MapleInventoryType');
|
||||
if(qm.getPlayer().getInventory(MapleInventoryType.EQUIP).getNumFreeSlot() < 1) {
|
||||
qm.sendOk("Please free a EQUIP inventory slot to receive the reward.");
|
||||
qm.dispose();
|
||||
return;
|
||||
|
||||
@@ -44,7 +44,8 @@ function end(mode, type, selection) {
|
||||
status--;
|
||||
|
||||
if (status == 0) {
|
||||
if(qm.getPlayer().getInventory(Packages.client.inventory.MapleInventoryType.ETC).getNumFreeSlot() < 1) {
|
||||
const MapleInventoryType = Java.type('client.inventory.MapleInventoryType');
|
||||
if(qm.getPlayer().getInventory(MapleInventoryType.ETC).getNumFreeSlot() < 1) {
|
||||
qm.sendOk("Make room on your ETC inventory first.");
|
||||
qm.dispose();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user