source
Source for my MapleSolaxiaV2 (v83 MapleStory).
This commit is contained in:
23
scripts/portal/enterFirstDH.js
Normal file
23
scripts/portal/enterFirstDH.js
Normal file
@@ -0,0 +1,23 @@
|
||||
var mapp = -1;
|
||||
var map = 0;
|
||||
function enter(pi) {
|
||||
if (pi.getQuestStatus(20701) == 1) {
|
||||
map = 913000000;
|
||||
} else if (pi.getQuestStatus(20702) == 1) {
|
||||
map = 913000100;
|
||||
} else if (pi.getQuestStatus(20703) == 1) {
|
||||
map = 913000200;
|
||||
}
|
||||
if (map > 0) {
|
||||
if (pi.getPlayerCount(map) == 0) {
|
||||
var mapp = pi.getMap(map);
|
||||
mapp.resetFully();
|
||||
mapp.respawn(true);
|
||||
pi.warp(map, 0);
|
||||
} else {
|
||||
pi.playerMessage(5, "Someone is already in this map.");
|
||||
}
|
||||
} else {
|
||||
pi.playerMessage(5, "Hall #1 can only be entered if you're engaged in Kiku's Acclimation Training.");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user