Files
sweetgum-server/scripts/portal/Depart_goFoward0.js
ronancpl 972517e7b2 source
Source for my MapleSolaxiaV2 (v83 MapleStory).
2015-11-02 23:17:21 -02:00

27 lines
1.0 KiB
JavaScript

function enter(pi) {
if (pi.getPlayer().getMap().getId() == 103040410 && pi.isQuestCompleted(2287)) {
pi.playPortalSound();
pi.warp(103040420, "right00");
return true;
} else if (pi.getPlayer().getMap().getId() == 103040420 && pi.isQuestCompleted(2288)) {
pi.playPortalSound();
pi.warp(103040430, "right00");
return true;
} else if (pi.getPlayer().getMap().getId() == 103040410 && pi.isQuestStarted(2287)) {
pi.playPortalSound();
pi.warp(103040420, "right00");
return true;
} else if (pi.getPlayer().getMap().getId() == 103040420 && pi.isQuestStarted(2288)) {
pi.playPortalSound();
pi.warp(103040430, "right00");
return true;
} else {
if (pi.getPlayer().getMap().getId() == 103040440 || pi.getPlayer().getMap().getId() == 103040450) {
pi.playPortalSound();
pi.warp(pi.getPlayer().getMap().getId() + 10, "right00");
return true;
}
pi.getPlayer().dropMessage(5, "You cannot access this area.");
return false;
}
}