Jump to content
  • 0

Auto Open Door


Question

Posted

Can someone write a script where you could set that as the door opened every 24 hours. I just know that it can be done via a script + global_tasks.

I will be grateful for any advice.

2 answers to this question

Recommended Posts

  • 0
Posted

I won't do everything for you, since its not marketplace, but request HELP not ready code section.

 

So here is code to open doors:

 

	private static void openDoors(List<Integer> doors)
{
	for (int doorId : doors)
	{
		L2DoorInstance doorInstance = DoorTable.getInstance().getDoor(doorId);

		if (doorInstance != null)
		{
			doorInstance.openMe();
		}
	}
}

 

Just create proper LIST with door ID's which should be opened, and create proper task for it (task manager is explained, use search)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...