Map chair patch + other minor fixes
Patched map chair skill not disposing heal task properly in case of player changing maps while resting.
This commit is contained in:
@@ -1,16 +1,6 @@
|
||||
function enter(pi) {
|
||||
var questProgress = pi.getQuestProgress(2330, 3300005) + pi.getQuestProgress(2330, 3300006) + pi.getQuestProgress(2330, 3300007); //3 Yetis
|
||||
|
||||
if(questProgress == 3 && !pi.hasItem(4032388) && !pi.isQuestCompleted(2332)){
|
||||
if(pi.canHold(4032388)){
|
||||
pi.getPlayer().message("You have aquired a key to the Wedding Hall. King Pepe must have dropped it.")
|
||||
pi.gainItem(4032388, 1);
|
||||
}
|
||||
else{
|
||||
pi.getPlayer().message("Please make room in your ETC inventory.");
|
||||
}
|
||||
}
|
||||
|
||||
if(pi.isQuestStarted(2330) && questProgress < 3){
|
||||
pi.openNpc(1300013);
|
||||
}
|
||||
|
||||
@@ -1,9 +1,26 @@
|
||||
function enter(pi) {
|
||||
var eim = pi.getEventInstance();
|
||||
eim.stopEventTimer();
|
||||
eim.dispose();
|
||||
if(eim != null) {
|
||||
eim.stopEventTimer();
|
||||
eim.dispose();
|
||||
}
|
||||
|
||||
pi.playPortalSound();
|
||||
pi.warp(106021400, 2);
|
||||
return true;
|
||||
var questProgress = pi.getQuestProgress(2330, 3300005) + pi.getQuestProgress(2330, 3300006) + pi.getQuestProgress(2330, 3300007); //3 Yetis
|
||||
if(questProgress == 3 && !pi.hasItem(4032388)) {
|
||||
if(pi.canHold(4032388)){
|
||||
pi.getPlayer().message("You have aquired a key to the Wedding Hall. King Pepe must have dropped it.")
|
||||
pi.gainItem(4032388, 1);
|
||||
|
||||
pi.playPortalSound();
|
||||
pi.warp(106021400, 2);
|
||||
return true;
|
||||
} else {
|
||||
pi.getPlayer().message("Please make room in your ETC inventory.");
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
pi.playPortalSound();
|
||||
pi.warp(106021400, 2);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user