Merge branch 'master' of https://github.com/ronancpl/HeavenMS into credits_update

This commit is contained in:
ronancpl
2019-11-14 22:35:43 -03:00
864 changed files with 20650 additions and 11188 deletions

View File

@@ -3,38 +3,56 @@
Quest: Abel Glasses Quest
*/
function end(mode, type, selection){
if(!qm.isQuestCompleted(2186)) {
if(qm.haveItem(4031853)){
if(qm.canHold(2030019)) {
qm.gainItem(4031853, -1);
qm.gainExp(1700);
qm.gainItem(2030019, 10);
var status = -1; // thanks IxianMace for noticing missing status declaration
qm.sendOk("Geez, you found my glasses! Thank you, thank you so much. Now I'm able to see everything again!");
qm.forceCompleteQuest();
}
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))
qm.gainItem(4031854, -1);
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 {
qm.sendOk("I need you to have an USE slot available to reward you properly!");
function end(mode, type, selection){
if (mode == -1) {
qm.dispose();
} else {
if(mode == 0 && type > 0) {
qm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
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 {
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))
qm.gainItem(4031854, -1);
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 {
qm.sendOk("I need you to have an USE slot available to reward you properly!");
}
}
}
} else if (status == 1) {
qm.dispose();
}
}
qm.dispose();
}