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.
56 lines
1.6 KiB
JavaScript
56 lines
1.6 KiB
JavaScript
/* ===========================================================
|
|
Resonance
|
|
NPC Name: Scarrs
|
|
Map(s): Mushroom Castle: Corner of Mushroom Forest(106020000)
|
|
Description: Quest - Killer Mushroom Spores(3)
|
|
=============================================================
|
|
Version 1.0 - Script Done.(18/7/2010)
|
|
=============================================================
|
|
*/
|
|
|
|
importPackage(Packages.client);
|
|
|
|
var status = -1;
|
|
|
|
function start(mode, type, selection) {
|
|
status++;
|
|
if (mode != 1) {
|
|
if(type == 1 && mode == 0)
|
|
status -= 2;
|
|
else{
|
|
qm.sendOk("I know it's not a tough task, so come back to me if you're ready.");
|
|
qm.dispose();
|
|
return;
|
|
}
|
|
}
|
|
if (status == 0)
|
|
qm.sendAcceptDecline("Oh, I almost forgot! What was I thinking? I need you to hand this #bSample of Killer Mushroom Spores#k to #bMinister of Magic#k and report the results.");
|
|
if (status == 1){
|
|
qm.forceStartQuest();
|
|
qm.gainItem(4032389, 1);
|
|
qm.sendOk("The #bMinister of Magic#k told me once the #bKiller Mushroom Spores#k is complete, that he'll want a sample of it as well. I'll give you the sample; now go please hand it in to our #bMinister of Magic.#k");
|
|
qm.dispose();
|
|
}
|
|
}
|
|
|
|
function end(mode, type, selection) {
|
|
status++;
|
|
if (mode != 1) {
|
|
if(type == 1 && mode == 0)
|
|
status -= 2;
|
|
else{
|
|
qm.dispose();
|
|
return;
|
|
}
|
|
}
|
|
if (status == 0)
|
|
qm.sendOk("Are the #bKiller Mushroom Spores#k finally completed?");
|
|
if (status == 1){
|
|
qm.gainExp(4200);
|
|
qm.gainItem(4032389, -1);
|
|
qm.sendOk("Okay, so this is the #bKiller Mushroom Spores.#k Thank you, thank you, and please tell #bScarrs#k the same.");
|
|
qm.forceCompleteQuest();
|
|
qm.dispose();
|
|
}
|
|
}
|
|
|