Examples of onSpawn()


Examples of l2p.gameserver.model.instances.L2NpcInstance.onSpawn()

  public static L2NpcInstance spawn(Location loc, int npcId)
  {
    L2NpcTemplate template = NpcTable.getTemplate(loc.id);
    L2NpcInstance npc = template.getNewInstance();
    npc.setSpawnedLoc(loc);
    npc.onSpawn();
    npc.setHeading(loc.h);
    npc.setXYZInvisible(loc);
    npc.setReflection(currentReflection);
    npc.spawnMe();
    return npc;
View Full Code Here

Examples of l2p.gameserver.model.instances.L2NpcInstance.onSpawn()

        try
        {
          L2NpcInstance npc = NpcTable.getTemplate(bro).getNewInstance();
          npc.setSpawnedLoc(((L2MonsterInstance) actor).getMinionPosition());
          npc.setReflection(actor.getReflection());
          npc.onSpawn();
          npc.spawnMe(npc.getSpawnedLoc());
          npc.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, attacker, Rnd.get(1, 1000));
        }
        catch(Exception e)
        {
View Full Code Here

Examples of l2p.gameserver.model.instances.L2NpcInstance.onSpawn()

      if(template != null)
      {
        L2NpcInstance npc = NpcTable.getTemplate(npcId).getNewInstance();
        npc.setReflection(refId);
        npc.setSpawnedLoc(randomOffset > 50 ? loc.rnd(50, randomOffset, false) : loc);
        npc.onSpawn();
        npc.spawnMe(npc.getSpawnedLoc());
        return npc;
      }
    }
    catch(Exception e1)
View Full Code Here

Examples of l2p.gameserver.model.instances.L2NpcInstance.onSpawn()

  {
    try
    {
      L2NpcInstance npc = NpcTable.getTemplate(npcId).getNewInstance();
      npc.setSpawnedLoc(loc.correctGeoZ());
      npc.onSpawn();
      npc.spawnMe(npc.getSpawnedLoc());
      return npc;
    }
    catch(Exception e)
    {
View Full Code Here

Examples of l2p.gameserver.model.instances.L2PathfinderInstance.onSpawn()

          {
            p.getPlayer().sendPacket(new SystemMessage(SystemMessage.THIS_DUNGEON_WILL_EXPIRE_IN_S1_MINUTES).addNumber((COLLAPSE_TIME - TIME_LIMIT) / 60000));
            L2PathfinderInstance npc = new L2PathfinderInstance(IdFactory.getInstance().getNextId(), NpcTable.getTemplate(32485));
            npc.setSpawnedLoc(KamalokaNightmare.this.getTeleportLoc());
            npc.setReflection(KamalokaNightmare.this.getId());
            npc.onSpawn();
            npc.spawnMe(npc.getSpawnedLoc());
          }
          else
          {
            collapse();
View Full Code Here

Examples of l2p.gameserver.model.instances.L2PenaltyMonsterInstance.onSpawn()

        }
        L2PenaltyMonsterInstance npc = new L2PenaltyMonsterInstance(IdFactory.getInstance().getNextId(), temp);
        npc.setSpawnedLoc(def);
        npc.setReflection(fisher.getReflection());
        npc.setHeading(fisher.getHeading() - 32768);
        npc.onSpawn();
        npc.spawnMe(npc.getSpawnedLoc());
        npc.SetPlayerToKill(fisher);
      }
      catch(Exception e)
      {
View Full Code Here

Examples of l2p.gameserver.model.instances.L2ReflectionBossInstance.onSpawn()

      return;
    }
    L2ReflectionBossInstance tiat = new L2ReflectionBossInstance(IdFactory.getInstance().getNextId(), NpcTable.getTemplate(TIAT_NPC_ID));
    tiat.setSpawnedLoc(TIAT_LOC);
    tiat.setReflection(actor.getReflection());
    tiat.onSpawn();
    tiat.spawnMe(tiat.getSpawnedLoc());
    actor.getReflection().addSpawn(tiat.getSpawn());
  }

  @Override
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2NpcInstance.onSpawn()

      else
        mob.setHeading(getHeading());

      mob.setSpawn(this);
      mob.spawnMe(newlocx, newlocy, newlocz);
      mob.onSpawn();

      if (Config.DEBUG)
        _log.finest("spawned Mob ID: "+_template.npcId+" ,at: "
            +mob.getX()+" x, "+mob.getY()+" y, "+mob.getZ()+" z");
View Full Code Here

Examples of npc.model.L2SepulcherMonsterInstance.onSpawn()

    }
    for(Location loc : monsterList)
    {
      L2NpcTemplate template = NpcTable.getTemplate(loc.id);
      L2SepulcherMonsterInstance mob = new L2SepulcherMonsterInstance(IdFactory.getInstance().getNextId(), template);
      mob.onSpawn();
      mob.setSpawnedLoc(loc);
      mob.spawnMe(loc);
      mob.mysteriousBoxId = npcId;
      _allMobs.add(mob);
    }
View Full Code Here

Examples of npc.model.L2SepulcherMonsterInstance.onSpawn()

    {
      return;
    }
    L2NpcTemplate template = NpcTable.getTemplate(_victim.get(npc.getNpcId()));
    L2SepulcherMonsterInstance npc2 = new L2SepulcherMonsterInstance(IdFactory.getInstance().getNextId(), template);
    npc2.onSpawn();
    npc2.setSpawnedLoc(npc.getLoc());
    npc2.spawnMe(npc.getLoc());
    _allMobs.add(npc2);
  }
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.