Files
sweetgum-server/scripts/portal/enterNepenthes.js
ronancpl bc482ee0d2 Aran skill & mount quests + New player IDs + MapleSkillMakerFetcher
Aran skill and mount questlines fixed.
Player ID starts counting from 20mil now, preventing clashes with map objects oid's (trying to solve the NPC disappearing issue).
New tool: MapleSkillMakerFetcher. It compiles a SQL script file containing updated Maker data info from the inputted ItemMake.wz.xml.
Updated Maker tables on the DB.
2017-11-14 16:55:37 -02:00

22 lines
713 B
JavaScript

function enter(pi) {
if (pi.isQuestActive(21739)) {
var mapobj1 = pi.getWarpMap(920030000);
var mapobj2 = pi.getWarpMap(920030001);
if(mapobj1.countPlayers() == 0 && mapobj2.countPlayers() == 0) {
mapobj1.resetPQ(1);
mapobj2.resetPQ(1);
mapobj2.spawnMonsterOnGroundBelow(Packages.server.life.MapleLifeFactory.getMonster(9300348), new Packages.java.awt.Point(591, -34));
pi.warp(920030000,2);
return true;
} else {
pi.message("Someone is already challenging the area.");
return false;
}
} else {
pi.warp(200060001,2);
return true;
}
}