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:
@@ -48,36 +48,38 @@ function start(mode, type, selection) {
|
||||
}
|
||||
|
||||
function end(mode, type, selection) {
|
||||
status++;
|
||||
if (mode != 1) {
|
||||
if (type == 1 && mode == 0) {
|
||||
qm.sendNext("What about the child? Please give me the child!");
|
||||
}
|
||||
qm.dispose();
|
||||
return;
|
||||
}
|
||||
if (status == 0)
|
||||
qm.sendYesNo("You made it back safely! What about the child?! Did you bring the child with you?!");
|
||||
else if (status == 1) {
|
||||
qm.gainItem(4001271, -1);
|
||||
qm.removeEquipFromSlot(-11);
|
||||
qm.forceCompleteQuest();
|
||||
qm.sendNext("Oh, what a relief. I'm so glad...", 9);
|
||||
} else if (status == 2)
|
||||
qm.sendNextPrev("Hurry and board the ship! We don't have much time!", 3);
|
||||
else if (status == 3)
|
||||
qm.sendNextPrev("We don't have any time to waste. The Black Mage's forces are getting closer and closer! We're doomed if we don't leave right right this moment!", 9);
|
||||
else if (status == 4)
|
||||
qm.sendNextPrev("Leave, now!", 3);
|
||||
else if (status == 5)
|
||||
qm.sendNextPrev("Aran, please! I know you want to stay and fight the Black Mage, but it's too late! Leave it to the others and come to Victoria Island with us!", 9);
|
||||
else if (status == 6)
|
||||
qm.sendNextPrev("No, I can't!", 3);
|
||||
else if (status == 7) {
|
||||
qm.sendNextPrev("Athena Pierce, why don't you leave for Victoria Island first? I promise I'll come for you later. I'll be alright. I must fight the Black Mage with the other heroes!", 3);
|
||||
} else if (status == 8) {
|
||||
qm.forceCompleteQuest();
|
||||
qm.warp(914090010); // Initialize Aran Tutorial Scenes
|
||||
qm.dispose();
|
||||
}
|
||||
}
|
||||
status++;
|
||||
if (mode != 1) {
|
||||
if (type == 1 && mode == 0) {
|
||||
qm.sendNext("What about the child? Please give me the child!");
|
||||
}
|
||||
|
||||
qm.dispose();
|
||||
return;
|
||||
}
|
||||
|
||||
if (status == 0)
|
||||
qm.sendYesNo("You made it back safely! What about the child?! Did you bring the child with you?!");
|
||||
else if (status == 1) {
|
||||
qm.sendNext("Oh, what a relief. I'm so glad...", 9);
|
||||
} else if (status == 2)
|
||||
qm.sendNextPrev("Hurry and board the ship! We don't have much time!", 3);
|
||||
else if (status == 3)
|
||||
qm.sendNextPrev("We don't have any time to waste. The Black Mage's forces are getting closer and closer! We're doomed if we don't leave right right this moment!", 9);
|
||||
else if (status == 4)
|
||||
qm.sendNextPrev("Leave, now!", 3);
|
||||
else if (status == 5)
|
||||
qm.sendNextPrev("Aran, please! I know you want to stay and fight the Black Mage, but it's too late! Leave it to the others and come to Victoria Island with us!", 9);
|
||||
else if (status == 6)
|
||||
qm.sendNextPrev("No, I can't!", 3);
|
||||
else if (status == 7) {
|
||||
qm.sendNextPrev("Athena Pierce, why don't you leave for Victoria Island first? I promise I'll come for you later. I'll be alright. I must fight the Black Mage with the other heroes!", 3);
|
||||
} else if (status == 8) {
|
||||
qm.gainItem(4001271, -1);
|
||||
qm.removeEquipFromSlot(-11);
|
||||
qm.forceCompleteQuest();
|
||||
|
||||
qm.warp(914090010); // Initialize Aran Tutorial Scenes
|
||||
qm.dispose();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user