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)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock