Package net.sf.l2j.gameserver.templates

Examples of net.sf.l2j.gameserver.templates.L2NpcTemplate


        String title = _activeChar.getTitle();
        if (_activeChar.getAppearance().getInvisible() && _activeChar.isGM()) title = "Invisible";
        if (_activeChar.getPoly().isMorphed())
        {
          L2NpcTemplate polyObj = NpcTable.getInstance().getTemplate(_activeChar.getPoly().getPolyId());
          if(polyObj != null)
            title += " - " + polyObj.name;
        }
        writeS(title);
View Full Code Here


        _log.fine("player has a pet already. ignore summon skill");
      return;
    }

    L2SummonInstance summon;
    L2NpcTemplate summonTemplate = NpcTable.getInstance().getTemplate(_npcId);
    if (summonTemplate.type.equalsIgnoreCase("L2SiegeSummon"))
      summon = new L2SiegeSummonInstance(IdFactory.getInstance().getNextId(), summonTemplate, activeChar, this);
    else
      summon = new L2SummonInstance(IdFactory.getInstance().getNextId(), summonTemplate, activeChar, this);
View Full Code Here

     * @see net.sf.l2j.gameserver.script.EngineInterface#addQuestDrop(int, int, int, int, int, String, String[])
     */
    @Override
  public void addQuestDrop(int npcID, int itemID, int min, int max, int chance, String questID, String[] states)
    {
        L2NpcTemplate npc = npcTable.getTemplate(npcID);
        if (npc == null)
        {
            throw new NullPointerException();
        }
        L2DropData drop = new L2DropData();
View Full Code Here

     *
     * @see net.sf.l2j.gameserver.script.EngineInterface#addQuestDrop(int, int, int, int, int, String, String[])
     */
    public void addDrop(int npcID, int itemID, int min, int max, boolean sweep, int chance) throws NullPointerException
    {
        L2NpcTemplate npc = npcTable.getTemplate(npcID);
        if (npc == null)
        {
            if (Config.DEBUG) System.out.print("Npc doesnt Exist");
            throw new NullPointerException();
        }
View Full Code Here

     * @param npcID
     * @return Returns the _questDrops.
     */
    public List<L2DropData> getQuestDrops(int npcID)
    {
        L2NpcTemplate npc = npcTable.getTemplate(npcID);
        if (npc == null)
        {
            return null;
        }
        List<L2DropData> questDrops = new FastList<L2DropData>();
        for (L2DropCategory cat:npc.getDropData())
        for (L2DropData drop : cat.getAllDrops() )
        {
            if (drop.getQuestID() != null)
            {
                questDrops.add(drop);
View Full Code Here

TOP

Related Classes of net.sf.l2j.gameserver.templates.L2NpcTemplate

Copyright © 2018 www.massapicom. 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.