Reviewed Mystic Doors. Fixed several issues showing up on Duey in uncommon scenarios. Fixed a concurrency issue with XMLDomMapleData. Scheduled forward the "lock disposal" action within the source. Now, it's expected that, after a set while, no method should require usage of a disposed lock and, during that while, a supposed "disposed lock" is still available to run (although no new processes is expected to require use of these locks). Fixed concurrency issues with player's current event instance, generating several inconsistencies when swiftly registering/unregistering from events. Implemented a mutually exclusive approach for server message - Boss HPbar. Fixed item-making Kage requiring lv71~80 ETC instead of the expected 81~90. Removed the possibility to buy cosmetic coupons with mesos through the NPCs. Sleepywood JQ's no longer gives cash items when they finish the quest repeatedly. Added Duey trucks in several maps lacking it. Added NPC Duey in New Leaf City. Fixed scripted quests not calculating QUEST_RATE (if applied) when rewarding experience and meso.
40 lines
1.4 KiB
JavaScript
40 lines
1.4 KiB
JavaScript
/*
|
|
Author: BubblesDev 0.75
|
|
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);
|
|
|
|
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!");
|
|
}
|
|
}
|
|
}
|
|
|
|
qm.dispose();
|
|
} |