public int getPartiesInside(int zoneId)// Calculating parties inside party area.
{
int i = 0;
for (L2ZoneType zone : L2ZoneManager.getInstance().getZones(locationX, locationY, locationZ))
{
if (zone.getId() == zoneId)
{
for (L2Character character : zone.getCharactersInside())
{
if ((character instanceof L2PcInstance) && (!((L2PcInstance) character).getClient().isDetached()) && (((L2PcInstance) character).getParty() != null) && ((L2PcInstance) character).getParty().isLeader((L2PcInstance) character))
{
i++;
}
}
}
}
return i;
}
public int getPlayerInside(int zoneId)// Calculating players inside party area.
{
int i = 0;
for (L2ZoneType zone : L2ZoneManager.getInstance().getZone(locationX, locationY, locationZ))
{
if (zone.getId() == zoneId)
{
for (L2Character character : zone.getCharactersInside())
{
if ((character instanceof L2PcInstance) && (!((L2PcInstance) character).getClient().isDetached()))
{
i++;
}
}
}
}
return i;
}
zone.getCharactersInside()) and getZones in for (L2ZoneType zone : L2ZoneManager.getInstance().getZones(locationX, locationY, locationZ))
We are entering another season, the year 2026, which marks 20 years since the beginning of preparations for the first Chronicle server - Gracia Final.
The plans are the same as 20 years ago: to prepare a new generation of the game with the help of our edited game client, New Era.
There will be special new locations and dungeons for solo players and clans, clan quests and a clan shop, as well as special items and jewelry with attributes.
Enjoy the game at Dark Dragon
https://www.darkdragon.club/wp-content/uploads/2025/12/Dark_Dragon_login_New_Era.mp4
Coming soon — New Year promotions across the entire SOCNET ecosystem
We are preparing special offers, bonuses, and surprises across all our projects.
Follow updates on our social media — you definitely don’t want to miss them.
News:
➡ Telegram channel: https://t.me/accsforyou_shop
➡ WhatsApp channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t
➡ Discord server: https://discord.gg/y9AStFFsrh
Coming soon — New Year promotions across the entire SOCNET ecosystem
We are preparing special offers, bonuses, and surprises across all our projects.
Follow updates on our social media — you definitely don’t want to miss them.
News:
➡ Telegram channel: https://t.me/accsforyou_shop
➡ WhatsApp channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t
➡ Discord server: https://discord.gg/y9AStFFsrh
We are looking for partners and account suppliers for cooperation
We are open to partnerships with reliable account suppliers for the following services:
➡ Tinder
➡ Badoo
➡ Bumble
➡ Hinge
➡ Happn
➡ Meetic
➡ VK Dating
➡ LINE
➡ Snapchat
➡ Reddit
➡ LinkedIn
➡ Instagram
➡ Facebook
➡ Threads
➡ Google ADS
➡ E-mails
➡ WhatsApp
➡ Twitter
We are considering long-term cooperation, stable volumes, and mutually beneficial terms.
If you have any offers — we will be glad to discuss the details.
Contact us using the details below.
➡ Telegram: https://t.me/socnet_support
➡ WhatsApp: https://wa.me/79051904467
➡ Discord: socnet_support
➡ ✉ Email: solomonbog@socnet.store
Question
MarGaZeaS
hello i have a small proble on frozen (4lines)
http://prntscr.com/loli61
public int getPartiesInside(int zoneId)// Calculating parties inside party area. { int i = 0; for (L2ZoneType zone : L2ZoneManager.getInstance().getZones(locationX, locationY, locationZ)) { if (zone.getId() == zoneId) { for (L2Character character : zone.getCharactersInside()) { if ((character instanceof L2PcInstance) && (!((L2PcInstance) character).getClient().isDetached()) && (((L2PcInstance) character).getParty() != null) && ((L2PcInstance) character).getParty().isLeader((L2PcInstance) character)) { i++; } } } } return i; } public int getPlayerInside(int zoneId)// Calculating players inside party area. { int i = 0; for (L2ZoneType zone : L2ZoneManager.getInstance().getZone(locationX, locationY, locationZ)) { if (zone.getId() == zoneId) { for (L2Character character : zone.getCharactersInside()) { if ((character instanceof L2PcInstance) && (!((L2PcInstance) character).getClient().isDetached())) { i++; } } } } return i; }zone.getCharactersInside()) and getZones in for (L2ZoneType zone : L2ZoneManager.getInstance().getZones(locationX, locationY, locationZ))
all code about npc
Edited by MarGaZeaS1 answer to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now