Minor update for missing html commands.
This commit is contained in:
parent
a2a8b8f931
commit
5e836a200a
@ -156,10 +156,10 @@ public class AdminGeodata implements IAdminCommandHandler
|
||||
final List<Integer> results = new ArrayList<>();
|
||||
for (L2Object obj : L2World.getInstance().getVisibleObjects())
|
||||
{
|
||||
if (obj.isNpc() && !obj.isMonster())
|
||||
if (obj.isNpc() && !obj.isMonster() && !results.contains(obj.getId()))
|
||||
{
|
||||
final L2Npc npc = (L2Npc) obj;
|
||||
if (!results.contains(npc.getId()) && (npc.getLocation().getX() > topLeftX) && (npc.getLocation().getX() < bottomRightX) && (npc.getLocation().getY() > topLeftY) && (npc.getLocation().getY() < bottomRightY) && npc.isTalkable() && !npc.hasListener(EventType.ON_NPC_FIRST_TALK) && (npc.getHtmlPath(npc.getId(), 0) == "data/html/npcdefault.htm"))
|
||||
if ((npc.getLocation().getX() > topLeftX) && (npc.getLocation().getX() < bottomRightX) && (npc.getLocation().getY() > topLeftY) && (npc.getLocation().getY() < bottomRightY) && npc.isTalkable() && !npc.hasListener(EventType.ON_NPC_FIRST_TALK) && (npc.getHtmlPath(npc.getId(), 0) == "data/html/npcdefault.htm"))
|
||||
{
|
||||
results.add(npc.getId());
|
||||
}
|
||||
@ -179,10 +179,10 @@ public class AdminGeodata implements IAdminCommandHandler
|
||||
final List<Integer> results = new ArrayList<>();
|
||||
for (L2Object obj : L2World.getInstance().getVisibleObjects())
|
||||
{
|
||||
if (obj.isNpc() && !obj.isMonster())
|
||||
if (obj.isNpc() && !obj.isMonster() && !results.contains(obj.getId()))
|
||||
{
|
||||
final L2Npc npc = (L2Npc) obj;
|
||||
if (!results.contains(npc.getId()) && npc.isTalkable() && !npc.hasListener(EventType.ON_NPC_FIRST_TALK) && (npc.getHtmlPath(npc.getId(), 0) == "data/html/npcdefault.htm"))
|
||||
if (npc.isTalkable() && !npc.hasListener(EventType.ON_NPC_FIRST_TALK) && (npc.getHtmlPath(npc.getId(), 0) == "data/html/npcdefault.htm"))
|
||||
{
|
||||
results.add(npc.getId());
|
||||
}
|
||||
|
@ -156,10 +156,10 @@ public class AdminGeodata implements IAdminCommandHandler
|
||||
final List<Integer> results = new ArrayList<>();
|
||||
for (L2Object obj : L2World.getInstance().getVisibleObjects())
|
||||
{
|
||||
if (obj.isNpc() && !obj.isMonster())
|
||||
if (obj.isNpc() && !obj.isMonster() && !results.contains(obj.getId()))
|
||||
{
|
||||
final L2Npc npc = (L2Npc) obj;
|
||||
if (!results.contains(npc.getId()) && (npc.getLocation().getX() > topLeftX) && (npc.getLocation().getX() < bottomRightX) && (npc.getLocation().getY() > topLeftY) && (npc.getLocation().getY() < bottomRightY) && npc.isTalkable() && !npc.hasListener(EventType.ON_NPC_FIRST_TALK) && (npc.getHtmlPath(npc.getId(), 0) == "data/html/npcdefault.htm"))
|
||||
if ((npc.getLocation().getX() > topLeftX) && (npc.getLocation().getX() < bottomRightX) && (npc.getLocation().getY() > topLeftY) && (npc.getLocation().getY() < bottomRightY) && npc.isTalkable() && !npc.hasListener(EventType.ON_NPC_FIRST_TALK) && (npc.getHtmlPath(npc.getId(), 0) == "data/html/npcdefault.htm"))
|
||||
{
|
||||
results.add(npc.getId());
|
||||
}
|
||||
@ -179,10 +179,10 @@ public class AdminGeodata implements IAdminCommandHandler
|
||||
final List<Integer> results = new ArrayList<>();
|
||||
for (L2Object obj : L2World.getInstance().getVisibleObjects())
|
||||
{
|
||||
if (obj.isNpc() && !obj.isMonster())
|
||||
if (obj.isNpc() && !obj.isMonster() && !results.contains(obj.getId()))
|
||||
{
|
||||
final L2Npc npc = (L2Npc) obj;
|
||||
if (!results.contains(npc.getId()) && npc.isTalkable() && !npc.hasListener(EventType.ON_NPC_FIRST_TALK) && (npc.getHtmlPath(npc.getId(), 0) == "data/html/npcdefault.htm"))
|
||||
if (npc.isTalkable() && !npc.hasListener(EventType.ON_NPC_FIRST_TALK) && (npc.getHtmlPath(npc.getId(), 0) == "data/html/npcdefault.htm"))
|
||||
{
|
||||
results.add(npc.getId());
|
||||
}
|
||||
|
@ -156,10 +156,10 @@ public class AdminGeodata implements IAdminCommandHandler
|
||||
final List<Integer> results = new ArrayList<>();
|
||||
for (L2Object obj : L2World.getInstance().getVisibleObjects())
|
||||
{
|
||||
if (obj.isNpc() && !obj.isMonster())
|
||||
if (obj.isNpc() && !obj.isMonster() && !results.contains(obj.getId()))
|
||||
{
|
||||
final L2Npc npc = (L2Npc) obj;
|
||||
if (!results.contains(npc.getId()) && (npc.getLocation().getX() > topLeftX) && (npc.getLocation().getX() < bottomRightX) && (npc.getLocation().getY() > topLeftY) && (npc.getLocation().getY() < bottomRightY) && npc.isTalkable() && !npc.hasListener(EventType.ON_NPC_FIRST_TALK) && (npc.getHtmlPath(npc.getId(), 0) == "data/html/npcdefault.htm"))
|
||||
if ((npc.getLocation().getX() > topLeftX) && (npc.getLocation().getX() < bottomRightX) && (npc.getLocation().getY() > topLeftY) && (npc.getLocation().getY() < bottomRightY) && npc.isTalkable() && !npc.hasListener(EventType.ON_NPC_FIRST_TALK) && (npc.getHtmlPath(npc.getId(), 0) == "data/html/npcdefault.htm"))
|
||||
{
|
||||
results.add(npc.getId());
|
||||
}
|
||||
@ -179,10 +179,10 @@ public class AdminGeodata implements IAdminCommandHandler
|
||||
final List<Integer> results = new ArrayList<>();
|
||||
for (L2Object obj : L2World.getInstance().getVisibleObjects())
|
||||
{
|
||||
if (obj.isNpc() && !obj.isMonster())
|
||||
if (obj.isNpc() && !obj.isMonster() && !results.contains(obj.getId()))
|
||||
{
|
||||
final L2Npc npc = (L2Npc) obj;
|
||||
if (!results.contains(npc.getId()) && npc.isTalkable() && !npc.hasListener(EventType.ON_NPC_FIRST_TALK) && (npc.getHtmlPath(npc.getId(), 0) == "data/html/npcdefault.htm"))
|
||||
if (npc.isTalkable() && !npc.hasListener(EventType.ON_NPC_FIRST_TALK) && (npc.getHtmlPath(npc.getId(), 0) == "data/html/npcdefault.htm"))
|
||||
{
|
||||
results.add(npc.getId());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user