Examples of spawnMe()


Examples of lineage2.gameserver.model.instances.TrapInstance.spawnMe()

        {
          activeChar.destroyFirstTrap();
        }
        TrapInstance trap = new TrapInstance(IdFactory.getInstance().getNextId(), NpcHolder.getInstance().getTemplate(getNpcId()), activeChar, trapSkill);
        activeChar.addTrap(trap);
        trap.spawnMe();
        break;
      case SERVITOR:
      case MULTI_SERVITOR:
      case SIEGE_SUMMON:
        Location loc = null;
View Full Code Here

Examples of lineage2.gameserver.model.instances.TreeInstance.spawnMe()

        tree.setCurrentHp(tree.getMaxHp(), false);
        tree.setCurrentMp(tree.getMaxMp());
        tree.setHeading(activeChar.getHeading());
        tree.setReflection(activeChar.getReflection());
        tree.setFollowMode(false);
        tree.spawnMe(SummonLoc);
        ThreadPoolManager.getInstance().schedule(new GameObjectTasks.DeleteTask(tree), _lifeTime);
        break;
      case SYMBOL:
        if (activeChar.isMounted())
        {
View Full Code Here

Examples of lineage2.gameserver.model.instances.residences.SiegeFlagInstance.spawnMe()

        }
        flag.setCurrentHpMp(flag.getMaxHp(), flag.getMaxMp(), true);
        flag.setHeading(player.getHeading());
        int x = (int) (player.getX() + (100 * Math.cos(player.headingToRadians(player.getHeading() - 32768))));
        int y = (int) (player.getY() + (100 * Math.sin(player.headingToRadians(player.getHeading() - 32768))));
        flag.spawnMe(GeoEngine.moveCheck(player.getX(), player.getY(), player.getZ(), x, y, player.getGeoIndex()));
        siegeClan.setFlag(flag);
        break;
    }
  }
}
View Full Code Here

Examples of lineage2.gameserver.model.items.ItemInstance.spawnMe()

      while (rset.next())
      {
        int itemId = rset.getInt("item_id");
        Location loc = new Location(rset.getInt("x"), rset.getInt("y"), rset.getInt("z"));
        ItemInstance item = ItemFunctions.createItem(itemId);
        item.spawnMe(loc);
        r.getSpawnMerchantTickets().add(item);
      }
    }
    catch (Exception e)
    {
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2ArtefactInstance.spawnMe()

          L2ArtefactInstance art;

          art = new L2ArtefactInstance(IdFactory.getInstance().getNextId(), NpcTable.getInstance().getTemplate(_sp.getNpcId()));
          art.setCurrentHpMp(art.getMaxHp(), art.getMaxMp());
          art.setHeading(_sp.getLocation().getHeading());
          art.spawnMe(_sp.getLocation().getX(),_sp.getLocation().getY(),_sp.getLocation().getZ() + 50);

          _artifacts.add(art);
        }
    }
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2ControlTowerInstance.spawnMe()

            ct = new L2ControlTowerInstance(IdFactory.getInstance().getNextId(), template);


            ct.setCurrentHpMp(ct.getMaxHp(), ct.getMaxMp());
            ct.spawnMe(_sp.getLocation().getX(),_sp.getLocation().getY(),_sp.getLocation().getZ() + 20);

            _controlTowers.add(ct);
        }
    }
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2DoorInstance.spawnMe()

            {
                door.decayMe()// Kill current if not killed already
                door = DoorTable.parseList(_doorDefault.get(i));
                if (isDoorWeak)
                    door.setCurrentHp(door.getMaxHp() / 2);
          door.spawnMe(door.getX(), door.getY(),door.getZ());
          getDoors().set(i, door);
            }
            else if (door.getOpen() == 0)
                door.closeMe();
        }
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2DoorInstance.spawnMe()

                        + ";" + rs.getInt("hp")
                        + ";" + rs.getInt("pDef")
                        + ";" + rs.getInt("mDef"));

                L2DoorInstance door = DoorTable.parseList(_doorDefault.get(_doorDefault.size() - 1));
        door.spawnMe(door.getX(), door.getY(),door.getZ());
                _doors.add(door);
                DoorTable.getInstance().putDoor(door);
            }

            statement.close();
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2DoorInstance.spawnMe()

            if (door.getCurrentHp() <= 0)
            {
                door.decayMe()// Kill current if not killed already
                door = DoorTable.parseList(_doorDefault.get(i));
                if (isDoorWeak) door.setCurrentHp(door.getMaxHp() / 2);
          door.spawnMe(door.getX(), door.getY(),door.getZ());
          getDoors().set(i, door);
            }
            else if (door.getOpen() == 0)
                door.closeMe();
        }
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2DoorInstance.spawnMe()

        if (line.trim().length() == 0 || line.startsWith("#"))
          continue;

        L2DoorInstance door = parseList(line);
        _staticItems.put(door.getDoorId(), door);
        door.spawnMe(door.getX(), door.getY(),door.getZ());
        ClanHall clanhall = ClanHallManager.getInstance().getNearbyClanHall(door.getX(), door.getY(), 500);
        if (clanhall != null)
        {
            clanhall.getDoors().add(door);
            door.setClanHall(clanhall);
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.