Error while open a door

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
Bliss
Posts: 8
Joined: Sat May 21, 2011 4:28 pm

Error while open a door

Post by Bliss »

If you want to receive support we need this info to help you properly.
» 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();                }
When I try to open the door, it opens, but I get this error and the script stops.

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!
Post Reply