TvT Instance Doors

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
User avatar
u3games
Posts: 1156
Joined: Sun Feb 27, 2011 7:00 pm
Location: España
Contact:

TvT Instance Doors

Post by u3games »

» Find Revision
L2J Revision Number: 6247
L2JDP Revision Number: 9990
# Enable/Disable TvTEvent System
TvTEventEnabled = True

# TvT in instance
TvTEventInInstance = True

# Name of the instance file for TvT
TvTEventInstanceFile = coliseum.xml
In coliseum.xml:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?><instance name="coliseum" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/instance.xsd">    <doorlist>        <door doorId="24190001" default_status="close" targetable="false"/>        <door doorId="24190002" default_status="close" targetable="false"/>        <door doorId="24190003" default_status="close" targetable="false"/>        <door doorId="24190004" default_status="close" targetable="false"/>    </doorlist></instance>
But no work, during the event the doors are open.
Image
d!g0
Posts: 81
Joined: Wed Sep 02, 2009 7:17 pm
Location: Brazil

Re: TvT Instance Doors

Post by d!g0 »

Its because the tvt don't use the instance doors defined in the coliseum.xml. It uses the configuration setted in the L2JMods.properties.

If you want to use the doors setted in the xml file, change the code to this:

TvTEvent.java

Change the method private static void openDoors(List<Integer> doors) to:

Code: Select all

  private static void openDoors()    {        for (L2DoorInstance doorInstance : InstanceManager.getInstance().getInstance(_TvTEventInstance).getDoors())        {            if (doorInstance != null)            {                doorInstance.openMe();            }        }    }  
Do the same thing for the closeDoors method.

P.S. I did not test, but I sure it will work.
P.S2. If you want I can make a patch with the diff
User avatar
u3games
Posts: 1156
Joined: Sun Feb 27, 2011 7:00 pm
Location: España
Contact:

Re: TvT Instance Doors

Post by u3games »

d!g0 wrote:Its because the tvt don't use the instance doors defined in the coliseum.xml. It uses the configuration setted in the L2JMods.properties.

If you want to use the doors setted in the xml file, change the code to this:

TvTEvent.java

Change the method private static void openDoors(List<Integer> doors) to:

Code: Select all

  private static void openDoors()    {        for (L2DoorInstance doorInstance : InstanceManager.getInstance().getInstance(_TvTEventInstance).getDoors())        {            if (doorInstance != null)            {                doorInstance.openMe();            }        }    }  
Do the same thing for the closeDoors method.

P.S. I did not test, but I sure it will work.
P.S2. If you want I can make a patch with the diff
Mmm.. ok thx d!g0
Image
Post Reply