-
PQ npc problem
Hi there guys i tryed to setup a PQ warper on my server using the mapleblade PQ warper the script look like this:
Code:
var map = 926120400; //put your map id here.
var minLvl = 1;
var maxLvl = 200;
var minAmt = 2;
var maxAmt = 6;
function start() {
if (cm.getParty() == null) {
cm.sendOk("#eIf you want to JACPQ, #bthe leader of your party must talk to me#k. #rLevel range 1 ~ 200, 2+ person party.#k");
cm.dispose();
} else if (!cm.isLeader()) {
cm.sendOk("If you want to try the quest, please tell the #bleader of your party#k to talk to me.");
cm.dispose();
}else{
var party = cm.getParty().getMembers();
var inMap = cm.partyMembersInMap();
var lvlOk = 0;
for (var i = 0; i < party.size(); i++) {
if (party.get(i).getLevel() >= minLvl && party.get(i).getLevel() <= maxLvl)
lvlOk++;
}
if (inMap < minAmt || inMap > maxAmt) {
cm.sendOk("You don't have enough people in your party. You need a party of #b"+minAmt+"#k - #r"+maxAmt+"#k members and they must be in the map with you. There are #b"+inMap+"#k members here.");
cm.dispose();
} else if (lvlOk != inMap) {
cm.sendOk("Someone in your party isn't the proper level. Everyone needs to be Lvl. #b"+minLvl+"#k - #r"+maxLvl+"#k.");
cm.dispose();
}else{
cm.warpParty(map);
cm.dispose();
}
}
}
My problem is that when i click on the NPC all i get is the npc is not working. I then goto my server.bat no error logs o.O anyone have idea what problem is?