Examples of spawnOne()


Examples of com.l2jfrozen.gameserver.model.spawn.L2Spawn.spawnOne()

      L2Spawn spawn = new L2Spawn(template1);
      spawn.setId(IdFactory.getInstance().getNextId());
      spawn.setLocx(activeChar.getX());
      spawn.setLocy(activeChar.getY());
      spawn.setLocz(activeChar.getZ());
      _gourd = (L2GourdInstance) spawn.spawnOne();
      L2World.getInstance().storeObject(_gourd);
      _gourd.setOwner(activeChar.getName());
      activeChar.destroyItem("Consume", item.getObjectId(), 1, null, false);
      SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);
      sm.addString("Created " + template1.name + " at x: " + spawn.getLocx() + " y: " + spawn.getLocy() + " z: " + spawn.getLocz());
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.spawn.L2Spawn.spawnOne()

         
          spawn.setId(IdFactory.getInstance().getNextId());
          spawn.setLocx(activeChar.getX());
          spawn.setLocy(activeChar.getY());
          spawn.setLocz(activeChar.getZ());
          L2World.getInstance().storeObject(spawn.spawnOne());
          activeChar.destroyItem("Summon", item.getObjectId(), 1, null, false);
          activeChar.sendMessage("Created " + npcTemplate.name + " at x: " + spawn.getLocx() + " y: " + spawn.getLocy() + " z: " + spawn.getLocz());
          spawn = null;
        }
        catch (Exception e)
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.spawn.L2Spawn.spawnOne()

      L2Spawn spawn = new L2Spawn(template1);
      spawn.setId(IdFactory.getInstance().getNextId());
      spawn.setLocx(target.getX());
      spawn.setLocy(target.getY());
      spawn.setLocz(target.getZ());
      L2NpcInstance result = spawn.spawnOne();

      activeChar.destroyItem("Consume", item.getObjectId(), 1, null, false);

      SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);
      activeChar.sendPacket(sm);
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.spawn.L2Spawn.spawnOne()

      spawn.setLocx(x);
      spawn.setLocy(y);
      spawn.setLocz(z);

      L2NpcInstance tree = spawn.spawnOne();
      L2World.getInstance().storeObject(tree);
      objectQueue.add(tree);

      spawn = null;
      tree = null;
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.spawn.L2Spawn.spawnOne()

      L2Spawn spawn = new L2Spawn(template);
      spawn.setLocx(44525);
      spawn.setLocy(108867);
      spawn.setLocz(-2020);
      spawn.stopRespawn();
      result = spawn.spawnOne();
      template = null;
    }
    catch(Exception e)
    {
      e.printStackTrace();
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.spawn.L2Spawn.spawnOne()

        spawn.setHeading(heading);
        spawn.setLocx(x);
        spawn.setLocy(y);
        spawn.setLocz(z + 20);
        spawn.stopRespawn();
        result = spawn.spawnOne();
        spawn = null;

        if(despawnDelay > 0)
        {
          ThreadPoolManager.getInstance().scheduleGeneral(new DeSpawnScheduleTimerTask(result), despawnDelay);
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.spawn.L2Spawn.spawnOne()

      L2Spawn spawn = new L2Spawn(template);
      spawn.setLocx(179040);
      spawn.setLocy(-13717);
      spawn.setLocz(-2263);
      spawn.stopRespawn();
      result = spawn.spawnOne();
      template = null;
    }
    catch(Exception e)
    {
      e.printStackTrace();
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.spawn.L2Spawn.spawnOne()

      spawn = new L2Spawn(template);
      spawn.setLocx(178298);
      spawn.setLocy(-17624);
      spawn.setLocz(-2194);
      spawn.stopRespawn();
      result = spawn.spawnOne();
      _gustav = ThreadPoolManager.getInstance().scheduleGeneral(new DeSpawnTimer(result), 3600000); //60 * 60 * 1000

      template = NpcTable.getInstance().getTemplate(BOSS1_ID);
      spawn = new L2Spawn(template);
      spawn.setLocx(178306);
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.spawn.L2Spawn.spawnOne()

      spawn = new L2Spawn(template);
      spawn.setLocx(178306);
      spawn.setLocy(-17535);
      spawn.setLocz(-2195);
      spawn.stopRespawn();
      _minion1 = spawn.spawnOne();
      _dietrich = ThreadPoolManager.getInstance().scheduleGeneral(new DeSpawnTimer(_minion1), 3600000); //60 * 60 * 1000

      template = NpcTable.getInstance().getTemplate(BOSS2_ID);
      spawn = new L2Spawn(template);
      spawn.setLocx(178304);
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.spawn.L2Spawn.spawnOne()

      spawn = new L2Spawn(template);
      spawn.setLocx(178304);
      spawn.setLocy(-17712);
      spawn.setLocz(-2194);
      spawn.stopRespawn();
      _minion2 = spawn.spawnOne();
      _mikhail = ThreadPoolManager.getInstance().scheduleGeneral(new DeSpawnTimer(_minion2), 3600000); //60 * 60 * 1000

      spawnMonsters();
    }
    catch(Exception e)
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.