Reformat and clean up quest scripts

This commit is contained in:
P0nk
2021-09-09 23:36:54 +02:00
parent a78ca88a02
commit 3f43fe82d0
249 changed files with 4361 additions and 4247 deletions

View File

@@ -24,11 +24,12 @@ status = -1;
function start(mode, type, selection) {
status++;
if(mode == 0 && type == 0)
if (mode == 0 && type == 0) {
status -= 2;
else if (mode != 1) {
if (mode == 0)
} else if (mode != 1) {
if (mode == 0) {
qm.sendNext("#b(You need to think about this for a second...)#k");
}
qm.dispose();
return;
}
@@ -36,13 +37,13 @@ function start(mode, type, selection) {
qm.sendYesNo("#b(Are you certain that you were the hero that wielded the #p1201001#? Yes, you're sure. You better grab the #p1201001# really tightly. Surely it will react to you.)#k");
} else if (status == 1) {
if (qm.getPlayer().getJob().getId() == 2000) {
if(!qm.canHold(1142129)) {
qm.sendOk("Wow, your #bequip#k inventory is full. You need to make at least 1 empty slot to complete this quest.");
qm.dispose();
return;
if (!qm.canHold(1142129)) {
qm.sendOk("Wow, your #bequip#k inventory is full. You need to make at least 1 empty slot to complete this quest.");
qm.dispose();
return;
}
qm.gainItem(1142129, true);
qm.changeJobById(2100);
qm.resetStats();
@@ -51,7 +52,7 @@ function start(mode, type, selection) {
qm.teachSkill(21000000, 0, 10, -1); //combo ability
qm.teachSkill(21001003, 0, 20, -1); //polearm booster
}
qm.completeQuest();
//qm.getPlayer().changeSkillLevel(SkillFactory.getSkill(20009000), 0, -1);