Examples of TeleportLocation


Examples of lineage2.gameserver.model.TeleportLocation

              org.dom4j.Element targetElement = targetIterator.next();
              int itemId = Integer.parseInt(targetElement.attributeValue("item_id", "57"));
              long price = Integer.parseInt(targetElement.attributeValue("price"));
              int npcStringId = Integer.parseInt(targetElement.attributeValue("name"));
              int castleId = Integer.parseInt(targetElement.attributeValue("castle_id", "0"));
              TeleportLocation loc = new TeleportLocation(itemId, price, npcStringId, castleId);
              loc.set(Location.parseLoc(targetElement.attributeValue("loc")));
              list.add(loc);
            }
            template.addTeleportList(id, list.toArray(new TeleportLocation[list.size()]));
          }
        }
View Full Code Here

Examples of lineage2.gameserver.model.TeleportLocation

          if ("target".equalsIgnoreCase(teleportElement.getName()))
          {
            int npcStringId = Integer.parseInt(teleportElement.attributeValue("name"));
            long price = Long.parseLong(teleportElement.attributeValue("price"));
            int itemId = teleportElement.attributeValue("item") == null ? ItemTemplate.ITEM_ID_ADENA : Integer.parseInt(teleportElement.attributeValue("item"));
            TeleportLocation loc = new TeleportLocation(itemId, price, npcStringId, 0);
            loc.set(Location.parseLoc(teleportElement.attributeValue("loc")));
            targets.add(loc);
          }
        }
        function.addTeleports(level, targets.toArray(new TeleportLocation[targets.size()]));
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.