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