- Joined
- Dec 10, 2012
- Messages
- 475
- Reaction score
- 9
Hello guys.
My function for clearpq
I have a question about this.
Then this part where i finish te bosspq
And I got this error.
I've checked for the error line which "var party = eim.getPlayers();"
Any Idea why?
I've tried ClearPQ(); and it didnt work as well.
My function for clearpq
I have a question about this.
PHP:
function disbandParty(eim) {
var party = eim.getPlayers();
for (var i = 0; i < party.size(); i++) {
playerExit(eim, party.get(i));
}
eim.dispose();
}
Then this part where i finish te bosspq
PHP:
if (monster_number > 4) {
map.broadcastMessage(Packages.tools.MaplePacketCreator.serverNotice(6, "[The Boss Quest] Congratulations! Your team has defeated all the bosses with " + points + " points!"));
map.broadcastMessage(Packages.tools.MaplePacketCreator.serverNotice(6, "[The Boss Quest] The points have been awarded, spend them as you wish."));
disbandParty();
}
And I got this error.
PHP:
javax.script.ScriptException: sun.org.mozilla.javascript.internal.EcmaError: Typ
eError: Cannot call method "getPlayers" of undefined (<Unknown source>#66) in <U
nknown source> at line number 66
at com.sun.script.javascript.RhinoScriptEngine.invoke(Unknown Source)
at com.sun.script.javascript.RhinoScriptEngine.invokeFunction(Unknown So
urce)
at scripting.event.EventInstanceManager.unregisterMonster(EventInstanceM
anager.java:122)
at server.life.MapleMonster.killBy(MapleMonster.java:353)
at server.maps.MapleMap.killMonster(MapleMap.java:678)
at server.maps.MapleMap.killMonster(MapleMap.java:562)
at server.maps.MapleMap.damageMonster(MapleMap.java:554)
at net.server.channel.handlers.AbstractDealDamageHandler.applyAttack(Abs
I've checked for the error line which "var party = eim.getPlayers();"
Any Idea why?
I've tried ClearPQ(); and it didnt work as well.

