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
HappyLDE
Posts: 123 Joined: Tue Sep 10, 2013 6:22 pm
Location: Belgium
Contact:
Post
by HappyLDE » Sat Nov 15, 2014 5:40 pm
So i create a dynamic instance like this:
Code: Select all
final int InstanceId = InstanceManager.getInstance().createDynamicInstance(null); final Instance instance = InstanceManager.getInstance().getInstance(InstanceId); instance.setAllowSummon(false); instance.setPvPInstance(true); instance.setEmptyDestroyTime(60000L);
How to close all doors inside? Seems that if i do getDoor() it returns null:
Code: Select all
instance.getDoor(doorId).closeMe();
Any idea?
Thank you for making L2JServer happen!
"
If you believe you will fail or succeed, in both ways you are right. " - Henry Ford
Zealar
L2j Veteran
Posts: 1236 Joined: Sun Jul 15, 2007 10:29 am
Post
by Zealar » Sun Nov 16, 2014 10:23 am
Use data templates from DP and add door inside. You can look data/instances/coliseum.xml
HappyLDE
Posts: 123 Joined: Tue Sep 10, 2013 6:22 pm
Location: Belgium
Contact:
Post
by HappyLDE » Sun Nov 16, 2014 7:46 pm
Well that did it! Thank you Zealar, i now use those xmls by passing them to the createDynamicInstance("instancename.xml") insdead of null.
Edit: After adding the doors to the instance.xml i still had to close them like this though:
Code: Select all
for (L2DoorInstance door : instance.getDoors()) { if (door != null) { door.closeMe(); } }
Otherwise they wouldn't close even if i added default_state="close" to them:
Code: Select all
<door doorId="24220025" default_status="close" targetable="false" />
Thank you for making L2JServer happen!
"
If you believe you will fail or succeed, in both ways you are right. " - Henry Ford
HorridoJoho
L2j Senior Developer
Posts: 795 Joined: Sun Aug 14, 2005 11:27 am
Post
by HorridoJoho » Sun Apr 19, 2015 11:08 am
HappyLDE wrote:
Edit: After adding the doors to the instance.xml i still had to close them like this though:
Code: Select all
for (L2DoorInstance door : instance.getDoors()) { if (door != null) { door.closeMe(); } }
Otherwise they wouldn't close even if i added default_state="close" to them:
Code: Select all
<door doorId="24220025" default_status="close" targetable="false" />
Is this still bugged?
Sdw
L2j Veteran
Posts: 855 Joined: Mon May 03, 2010 8:38 am
Location: France
Post
by Sdw » Mon Apr 20, 2015 9:46 am
Never was tbh