Exp gain & Chaos scroll fix + Diet's MK Overhaul

Fixed issues with negative experience being distributed to characters
when killing a mob, rendering "Exp reset". Fixed chaos scroll behaving
oddly. Refactored debuff expirations to manage one list with registered
debuffs and expire times, thus lifting some load from the TimerManager.
Added concurrency protection on how World deals with parties. Thanks to
the DietStory dev team, fixed some issues with the MK maps.
This commit is contained in:
ronancpl
2017-10-04 02:35:52 -03:00
parent 6445f0b4e4
commit 3a882c7f31
141 changed files with 1719 additions and 524 deletions

41
scripts/quest/2335.js Normal file
View File

@@ -0,0 +1,41 @@
/*
QUEST: Eliminating the Rest
NPC: Violetta
*/
var status = -1;
function start(mode, type, selection){
if(mode == -1 || (mode == 0 && status == 0)){
qm.dispose();
return;
}
else if(mode == 0)
status--;
else
status++;
if(status == 0){
qm.sendNext("This is not the end, #b#h ##k. Minions of the #bPrime Minister#k can still be found scattered throughout the castle.");
}
else if(status == 1){
qm.sendAcceptDecline("From what I've heard, there is a place near #bSkyscraper 3#k where a group of Prime Minister's minions can be found. I've picked up a key that the Prime Minister dropped the other day. Here, use this key.");
}
else if(status == 2){
if(qm.canHold(4032405)){
qm.gainItem(4032405, 1);
qm.sendNext("For one last time, good luck.");
}
else{
qm.sendOk("Please have a free space in your ETC inventory.");
qm.dispose();
}
}
else if(status == 3){
qm.forceStartQuest();
qm.dispose();
}
}
function end(mode, type, selection){}