Reformat and clean up quest scripts
This commit is contained in:
@@ -5,48 +5,48 @@
|
||||
|
||||
var status = -1; // thanks IxianMace for noticing missing status declaration
|
||||
|
||||
function end(mode, type, selection){
|
||||
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.isQuestCompleted(2186)) {
|
||||
if(qm.haveItem(4031853)){
|
||||
if(qm.canHold(2030019)) {
|
||||
if (!qm.isQuestCompleted(2186)) {
|
||||
if (qm.haveItem(4031853)) {
|
||||
if (qm.canHold(2030019)) {
|
||||
qm.gainItem(4031853, -1);
|
||||
qm.gainExp(1700);
|
||||
qm.gainItem(2030019, 10);
|
||||
|
||||
qm.sendOk("Geez, you found my glasses! Thank you, thank you so much. Now I'm able to see everything again!");
|
||||
qm.forceCompleteQuest();
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
qm.sendOk("I need you to have an USE slot available to reward you properly!");
|
||||
}
|
||||
}else if(qm.haveItem(4031854) || qm.haveItem(4031855)){ //When I figure out how to make a completance with just a pickup xD
|
||||
if(qm.canHold(2030019)) {
|
||||
if(qm.haveItem(4031854))
|
||||
} else if (qm.haveItem(4031854) || qm.haveItem(4031855)) { //When I figure out how to make a completance with just a pickup xD
|
||||
if (qm.canHold(2030019)) {
|
||||
if (qm.haveItem(4031854)) {
|
||||
qm.gainItem(4031854, -1);
|
||||
else
|
||||
} else {
|
||||
qm.gainItem(4031855, -1);
|
||||
}
|
||||
|
||||
qm.gainExp(1000);
|
||||
qm.gainItem(2030019, 5);
|
||||
|
||||
qm.sendOk("Hm, those aren't my glasses... But alas, I'll take it anyway. Thanks.");
|
||||
qm.forceCompleteQuest();
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
qm.sendOk("I need you to have an USE slot available to reward you properly!");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user