public static final L2TownZone getTown(int townId)
{
for (L2TownZone temp : ZoneManager.getInstance().getAllZones(L2TownZone.class))
{
if (temp.getTownId() == townId)
{
return temp;
}
}
return null;
}
/**
* Returns the town at that position (if any)
* @param x
* @param y
* @param z
* @return
*/
public static final L2TownZone getTown(int x, int y, int z)
{
for (L2ZoneType temp : ZoneManager.getInstance().getZones(x, y, z))
{
if (temp instanceof L2TownZone)
{
return (L2TownZone) temp;
}
}
return null;
}
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.
I saw Mobius was working on a Lindvior back in 2014 and the project was said to be stable enough for a live server but all of the links are dead and it's missing from their current repository. This was my favorite time in L2 and I'd really love to relive it before the game was ruined with Ertheia. Even willing to pay if I have to for some private files but I can't seem to find any leads.
Hi. I have an issue with the interface — I want to remove the autoshot option from the interface and leave only the standard functionality.
Make the red work like the green so it's easier to understand.
he options could be removed via .dat, but I want to keep the window — just with the normal manual activation function
Question
l2jkain
Hi, I'm adapting the Town Manager event for aCis.
When I change this TownManager.getTown(Config.TW_TOWN_ID).setIsTWZone(true);
for
ZoneManager.getInstance().getZoneById(i, TownZone.class).setIsTWZone(true);
generates the error
what did I do wrong ?
TownManager of jserver :
public static final L2TownZone getTown(int townId)
{
for (L2TownZone temp : ZoneManager.getInstance().getAllZones(L2TownZone.class))
{
if (temp.getTownId() == townId)
{
return temp;
}
}
return null;
}
/**
* Returns the town at that position (if any)
* @param x
* @param y
* @param z
* @return
*/
public static final L2TownZone getTown(int x, int y, int z)
{
for (L2ZoneType temp : ZoneManager.getInstance().getZones(x, y, z))
{
if (temp instanceof L2TownZone)
{
return (L2TownZone) temp;
}
}
return null;
}
6 answers to this question
Recommended Posts
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.