Merge branch 'master' of https://github.com/ronancpl/HeavenMS into credits_update
This commit is contained in:
@@ -50,13 +50,13 @@ function action(mode, type, selection) {
|
||||
cm.getMap().broadcastMessage(MaplePacketCreator.playSound("orbis/" + harpSounds[cm.getNpc() - 2012027]));
|
||||
|
||||
if(cm.isQuestStarted(3114)) {
|
||||
var idx = cm.getQuestProgress(3114, 7777);
|
||||
var idx = -1 * cm.getQuestProgressInt(3114);
|
||||
|
||||
if(idx != -1) {
|
||||
if(idx > -1) {
|
||||
var nextNote = harpSong[idx];
|
||||
|
||||
if(harpNote != nextNote) {
|
||||
cm.setQuestProgress(3114, 7777, 0);
|
||||
cm.setQuestProgress(3114, 0);
|
||||
|
||||
cm.getPlayer().announce(MaplePacketCreator.showEffect("quest/party/wrong_kor"));
|
||||
cm.getPlayer().announce(MaplePacketCreator.playSound("Party1/Failed"));
|
||||
@@ -70,7 +70,7 @@ function action(mode, type, selection) {
|
||||
|
||||
if(idx == 45) { // finished lullaby
|
||||
cm.message("Twinkle, twinkle, little star, how I wonder what you are.");
|
||||
cm.setQuestProgress(3114, 7777, -1);
|
||||
cm.setQuestProgress(3114, 42);
|
||||
|
||||
cm.getPlayer().announce(MaplePacketCreator.showEffect("quest/party/clear"));
|
||||
cm.getPlayer().announce(MaplePacketCreator.playSound("Party1/Clear"));
|
||||
@@ -88,7 +88,7 @@ function action(mode, type, selection) {
|
||||
}
|
||||
}
|
||||
|
||||
cm.setQuestProgress(3114, 7777, idx + 1);
|
||||
cm.setQuestProgress(3114, -1 * (idx + 1));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user