Buff System & Map skipping fix + properly disposing Storage + Fairness to locks
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.
This commit is contained in:
@@ -2,9 +2,12 @@
|
||||
importPackage(Packages.client);
|
||||
var status = -1;
|
||||
|
||||
|
||||
|
||||
function start(mode, type, selection) {
|
||||
if(mode == -1 || mode == 0 && type > 0) {
|
||||
qm.dispose();
|
||||
return;
|
||||
}
|
||||
|
||||
if (mode == 1) {
|
||||
status++;
|
||||
} else {
|
||||
@@ -16,27 +19,32 @@ function start(mode, type, selection) {
|
||||
status--;
|
||||
}
|
||||
if (status == 0) {
|
||||
qm.sendNext("Your abilities are really beginning to take shape. I am surprised that an old man like me was able to help you. I''m tearing up just thinking about how happy it makes me to have been of assistance to you. *Sniff sniff*");
|
||||
qm.sendNext("Your abilities are really beginning to take shape. I am surprised that an old man like me was able to help you. I'm tearing up just thinking about how happy it makes me to have been of assistance to you. *Sniff sniff*");
|
||||
} else if (status == 1) {
|
||||
qm.sendNextPrev("#b(You didn't even train that long with him... Why is he crying?)#k", 2);
|
||||
} else if (status == 2) {
|
||||
qm.sendNextPrev("Alright, here''s the third and the final stage of training. Your last opponent is... #r#o9300343#s#k! Do you know anything about #o1210100#s?");
|
||||
qm.sendNextPrev("Alright, here's the third and the final stage of training. Your last opponent is... #r#o9300343#s#k! Do you know anything about #o1210100#s?");
|
||||
} else if (status == 3) {
|
||||
qm.sendNextPrev('Well, a little bit...', 2);
|
||||
} else if (status == 4) {
|
||||
qm.sendNextPrev("They are natural warriors! They''re born with a voracious appetite for food. They devour any food that''s visible the moment they sweep by. Terrifying, isn''t it?");
|
||||
qm.sendNextPrev("They are natural warriors! They're born with a voracious appetite for food. They devour any food that's visible the moment they sweep by. Terrifying, isn't it?");
|
||||
} else if (status == 5) {
|
||||
qm.sendNextPrev("#b(Is that really true?)#k", 2);
|
||||
} else if (status == 6) {
|
||||
qm.sendAcceptDecline("Okay, now... #bEnter the Training Center again#k, defeat #r30#k #o9300343#s, and show me what you're made of! You'll have to exert all your energy to defeat them! Go, go, go! Rise above me!");
|
||||
} else if (status == 7) {
|
||||
qm.forceStartQuest();
|
||||
qm.sendOk("Now go and take on those monstrous #o9300343#s!");
|
||||
qm.dispose();
|
||||
qm.forceStartQuest();
|
||||
qm.sendOk("Now go and take on those monstrous #o9300343#s!");
|
||||
qm.dispose();
|
||||
}
|
||||
}
|
||||
|
||||
function end(mode, type, selection) {
|
||||
if(mode == -1 || mode == 0 && type > 0) {
|
||||
qm.dispose();
|
||||
return;
|
||||
}
|
||||
|
||||
if (mode == 1) {
|
||||
status++;
|
||||
} else {
|
||||
@@ -45,7 +53,7 @@ function end(mode, type, selection) {
|
||||
qm.dispose();
|
||||
return;
|
||||
}
|
||||
status--;
|
||||
status--;
|
||||
}
|
||||
if (status == 0) {
|
||||
qm.sendNext("Ah, you've come back after defeating all 30 #o9300343#s. I knew you had it in you... Even though you have no memories and few abilities, I could see that you were different! How? Because you're carrying around a Polearm, obviously!");
|
||||
|
||||
Reference in New Issue
Block a user