Merge branch 'master' of https://github.com/ronancpl/HeavenMS into credits_update

This commit is contained in:
ronancpl
2019-11-14 22:35:43 -03:00
864 changed files with 20650 additions and 11188 deletions

View File

@@ -43,11 +43,15 @@ function action(mode, type, selection) {
if(status == 0) {
if(cm.isQuestStarted(3929)) {
if(cm.getQuestProgress(3929, 0) != 1) {
if(cm.haveItem(4031580)) {
cm.gainItem(4031580, -1);
cm.setQuestProgress(3929, 0, 1);
}
var progress = cm.getQuestProgress(3929);
var slot = 0;
var ch = progress[slot];
if(ch == '2') {
var nextProgress = progress.substr(0, slot) + '3' + progress.substr(slot + 1);
cm.gainItem(4031580, -1);
cm.setQuestProgress(3929, nextProgress);
}
}