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.
Hello,
I am currently using Mobius 2.8 Seven Signs (Subscriber Version).
I have increased the inventory capacity from 80 slots to 500 slots.
The problem is that when the number of items exceeds 200, opening the inventory causes a delay of about 1–2 seconds.
If the inventory is empty or contains only a small number of items, there is no lag at all, but when the item count goes over 200 or 300, the delay increases accordingly.
Is there anyone who could fix this issue?
Discord : utchiha_market
Telegram : https://t.me/utchiha_market
Auto Buy Store : https://utchiha-market.mysellauth.com/
Not sure if we’re legit? Check Our server — real reviews, real buyers
https://discord.gg/4EPpYhe2HA | https://campsite.bio/utchihaamkt
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.