Reformat and clean up quest scripts
This commit is contained in:
@@ -5,33 +5,32 @@
|
||||
|
||||
var status = -1;
|
||||
|
||||
function start(mode, type, selection){
|
||||
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) {
|
||||
if(!qm.hasItem(4001318) && qm.isQuestStarted(2331) && !qm.isQuestCompleted(2331)){
|
||||
if(qm.canHold(4001318)){
|
||||
if (!qm.hasItem(4001318) && qm.isQuestStarted(2331) && !qm.isQuestCompleted(2331)) {
|
||||
if (qm.canHold(4001318)) {
|
||||
qm.forceStartQuest();
|
||||
qm.gainItem(4001318, 1);
|
||||
qm.forceCompleteQuest();
|
||||
qm.sendOk("Looks like you forgot to pick up the #b#t4001318##k when you fought with the #bPrime Minister#k. This is very important to our kingdom, so please deliver this to my father as soon as possible.");
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
qm.sendOk("Please free up one spot in your ETC inventory");
|
||||
}
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
qm.dispose();
|
||||
}
|
||||
} else if (status == 1) {
|
||||
@@ -40,5 +39,5 @@ function start(mode, type, selection){
|
||||
}
|
||||
}
|
||||
|
||||
function end(mode, type, selection){
|
||||
function end(mode, type, selection) {
|
||||
}
|
||||
Reference in New Issue
Block a user