Fixed buff system behaving oddly if a buff has value zero, that would render some skills "broken". Fixed players skipping maps when trying to access portals while under a poor Internet connection. Fixed storage not disposing players properly in cases where the players does not meet the storage conditions. Set some locks to use fairness strategy when dealing with atomic code, in order to make the calls to it properly synchronized. Fixed Aran introductory questline stucking players when certain conditions were met. Added drop data for some mob versions of Fairy, Yeti and Pepe.
37 lines
1.3 KiB
JavaScript
37 lines
1.3 KiB
JavaScript
var status = -1;
|
|
|
|
function start(mode, type, selection) {
|
|
if(mode == -1 || mode == 0 && type > 0) {
|
|
qm.dispose();
|
|
return;
|
|
}
|
|
|
|
if (mode == 1) {
|
|
status++;
|
|
} else {
|
|
if (status == 2) {
|
|
qm.sendNext("What? I don't think there are any suspects besides that kid. Please think again.");
|
|
qm.dispose();
|
|
return;
|
|
}
|
|
status--;
|
|
}
|
|
if (status == 0) {
|
|
qm.sendNext("What did #p1032112# say?", 8);
|
|
} else if (status == 1) {
|
|
qm.sendNextPrev("#b(You tell her what #p1032112# observed.)#k", 2);
|
|
} else if (status == 2) {
|
|
qm.sendAcceptDecline("A kid with a puppet? That seems very suspicious. I am sure that kid is the reason the Green Mushrooms have suddenly turned violent.");
|
|
} else if (status == 3) {
|
|
qm.forceStartQuest();
|
|
qm.sendNext("How dare this kid wreak havoc in the South Forest. Who knows how long it will take to restore the forest... I'll have to devote most of my time cleaning up the mess.", 2);
|
|
} else if (status == 4) {
|
|
qm.sendPrev("#b(You were able to find out what caused the changes in the Green Mushrooms. You should report #p1002104# and deliver the information you've collected.)#k", 2);
|
|
} else if (status == 5) {
|
|
qm.dispose();
|
|
}
|
|
}
|
|
|
|
function end(mode, type, selection) {
|
|
qm.dispose();
|
|
} |