» Find Revision
L2J Revision 5547:
L2JDP Revision 9045:
Hi, I get this error when my players try to open a door inside a instance (the one of the Seven signs at gludio):
java.lang.NullPointerException
at com.l2jserver.gameserver.model.actor.instance.L2DoorInstance.setOpen(L2DoorInstance.java:289)
at com.l2jserver.gameserver.model.actor.instance.L2DoorInstance.openMe(L2DoorInstance.java:480)
at instances.SanctumOftheLordsOfDawn.SanctumOftheLordsOfDawn.openDoor(SanctumOftheLordsOfDawn.java:317)
at instances.SanctumOftheLordsOfDawn.SanctumOftheLordsOfDawn.onTalk(SanctumOftheLordsOfDawn.java:344)
at com.l2jserver.gameserver.model.quest.Quest.notifyTalk(Quest.java:636)
at handlers.bypasshandlers.QuestLink.showQuestWindow(QuestLink.java:197)
at handlers.bypasshandlers.QuestLink.useBypass(QuestLink.java:65)
at com.l2jserver.gameserver.model.actor.L2Npc.onBypassFeedback(L2Npc.java:945)
at com.l2jserver.gameserver.network.clientpackets.RequestBypassToServer.runImpl(RequestBypassToServer.java:152)
at com.l2jserver.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameClientPacket.java:62)
at com.l2jserver.gameserver.network.L2GameClient.run(L2GameClient.java:1072)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
The script opens the door this way:
Code: Select all
protected void openDoor(int doorId, int instanceId) { for (L2DoorInstance door : InstanceManager.getInstance().getInstance(instanceId).getDoors()) if (door.getDoorId() == doorId) { door.openMe(); } }
Code: Select all
InstanceWorld tmpworld = InstanceManager.getInstance().getWorld(npc.getInstanceId()); if (tmpworld instanceof HSWorld) { HSWorld world = (HSWorld) tmpworld; if (world.doorst == 0) { openDoor(ONE, world.instanceId, player); world.doorst++; npc.deleteMe(); }
I saw that the Frintezza's script uses the same function to open a door, and it works fine, I don't know why it is not working on this script. Can you help me? Thanks!