Reformat and clean up quest scripts
This commit is contained in:
@@ -24,31 +24,31 @@ function start(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) {
|
||||
qm.sendNext("If you want to know more about the Seal Rock of Mu Lung, you will need to pass my test. Prove your valor overpowering me in melee combat, only then I shall recognize you as a worthy knight.");
|
||||
} else {
|
||||
var mapobj = qm.getWarpMap(925040001);
|
||||
if(mapobj.countPlayers() == 0) {
|
||||
if (mapobj.countPlayers() == 0) {
|
||||
mapobj.resetPQ(1);
|
||||
|
||||
|
||||
qm.warp(925040001, 0);
|
||||
qm.forceStartQuest();
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
qm.sendOk("Someone is already attempting a challenge. Wait for them to finish before you enter.");
|
||||
}
|
||||
|
||||
|
||||
|
||||
qm.dispose();
|
||||
}
|
||||
}
|
||||
@@ -58,23 +58,24 @@ 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) {
|
||||
qm.sendNext("Oh, you brought the ink. Now let me pour it, cautiously.... Almost there, almost. ... ..... Kyaaa! Th-the letter. It says: 'I'll be there to take your Seal Rock of Mu Lung.'");
|
||||
} else if (status == 1) {
|
||||
qm.gainItem(4032342, -8);
|
||||
qm.gainItem(4220151, -1);
|
||||
qm.gainExp(10000);
|
||||
|
||||
|
||||
qm.forceCompleteQuest();
|
||||
qm.dispose();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user