Merge branch 'master' of https://github.com/ronancpl/HeavenMS into credits_update
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user