Package l2p.gameserver.model.instances

Examples of l2p.gameserver.model.instances.L2NpcInstance


  }

  public void teleTo(String[] args)
  {
    L2Player player = (L2Player) getSelf();
    L2NpcInstance npc = getNpc();
    if(player == null || npc == null)
    {
      return;
    }
    if(args.length != 1)
View Full Code Here


  }

  private void agathion(int braceletes[], int type)
  {
    L2Player player = (L2Player) getSelf();
    L2NpcInstance npc = getNpc();
    if(player == null || npc == null)
    {
      return;
    }
    for(int[] ingridient : INGRIDIENTS)
View Full Code Here

  }

  @Override
  protected void onEvtDead(L2Character killer)
  {
    L2NpcInstance actor = getActor();
    if(actor == null)
    {
      return;
    }
    L2MonsterInstance boss = ((L2MinionInstance) actor).getLeader();
    if(boss != null && !boss.isDead())
    {
      Location loc = actor.getLoc();
      L2MinionInstance newMinion = new L2MinionInstance(IdFactory.getInstance().getNextId(), NpcTable.getTemplate(Eidolon_ID), boss);
      newMinion.setSpawnedLoc(loc);
      newMinion.onSpawn();
      newMinion.spawnMe(loc);
      newMinion.getAI().setGlobalAggro(0);
View Full Code Here

  }

  @Override
  protected void onEvtAttacked(L2Character attacker, int damage)
  {
    L2NpcInstance actor = getActor();
    int z = actor.getZ();
    if(z > z2 || z < z1)
    {
      actor.teleToLocation(116313, 15896, 6999);
      actor.setCurrentHp(actor.getMaxHp(), false);
    }
    super.onEvtAttacked(attacker, damage);
  }
View Full Code Here

  }

  @Override
  protected void onEvtAttacked(L2Character attacker, int damage)
  {
    L2NpcInstance actor = getActor();
    if(actor == null)
    {
      return;
    }
    if(_firstTimeAttacked)
View Full Code Here

  }

  @Override
  protected void onEvtSpawn()
  {
    L2NpcInstance actor = getActor();
    if(actor == null)
    {
      return;
    }
    actor.setFlying(true);
    actor.hasChatWindow = false;
  }
View Full Code Here

  }

  @Override
  protected boolean thinkActive()
  {
    L2NpcInstance actor = getActor();
    if(actor == null || actor.isDead())
    {
      return true;
    }
    if(_def_think)
    {
View Full Code Here

      if(_selfDestructionTask != null)
      {
        _selfDestructionTask.cancel(false);
        _selfDestructionTask = null;
      }
      _teleportCube = new L2NpcInstance(IdFactory.getInstance().getNextId(), NpcTable.getTemplate(_teleportCubeId));
      _teleportCube.setCurrentHpMp(_teleportCube.getMaxHp(), _teleportCube.getMaxMp(), true);
      _teleportCube.setSpawnedLoc(_teleportCubeLocation);
      _teleportCube.spawnMe(_teleportCube.getSpawnedLoc());
    }
View Full Code Here

  }

  @Override
  protected boolean thinkActive()
  {
    L2NpcInstance actor = getActor();
    if(actor == null || actor.isDead())
    {
      return true;
    }
    if(_def_think)
    {
View Full Code Here

  }

  @Override
  protected void onEvtDead(L2Character killer)
  {
    L2NpcInstance actor = getActor();
    if(actor != null && killer != null)
    {
      L2Player player = killer.getPlayer();
      if(player != null && player.getEffectList().containEffectFromSkills(KISS_OF_EVA))
      {
        actor.dropItem(player, Rnd.chance(50) ? Red_Coral : Crystal_Fragment, 1);
      }
    }
    super.onEvtDead(killer);
  }
View Full Code Here

TOP

Related Classes of l2p.gameserver.model.instances.L2NpcInstance

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.