Package lineage2.gameserver.model.instances

Examples of lineage2.gameserver.model.instances.NpcInstance.deleteMe()


  @Override
  protected boolean thinkActive()
  {
    NpcInstance actor = getActor();

    actor.deleteMe();
    return false;

    //return super.thinkActive();
  }
}
View Full Code Here


  protected boolean thinkActive()
  {
    final NpcInstance actor = getActor();
    if ((actor != null) && (System.currentTimeMillis() >= TIME_TO_DIE))
    {
      actor.deleteMe();
      return false;
    }
    return super.thinkActive();
  }
}
View Full Code Here

      wait_timeout = 0;
      wait = false;
      current_point++;
      if (current_point >= points.length)
      {
        actor.deleteMe();
        return false;
      }
      addTaskMove(points[current_point], true);
      doTask();
      return true;
View Full Code Here

          p.sendPacket(new ExShowScreenMessage(NpcString.THE_TUMOR_INSIDE_S1_HAS_BEEN_DESTROYED_NTHE_NEARBY_UNDEAD_THAT_WERE_ATTACKING_SEED_OF_LIFE_START_LOSING_THEIR_ENERGY_AND_RUN_AWAY, 8000, ExShowScreenMessage.ScreenMessageAlign.MIDDLE_CENTER, false, 1, -1, false, "#" + NpcString.HALL_OF_EROSION.getId()));
        ThreadPoolManager.getInstance().schedule(new RunnableImpl(){
          @Override
          public void runImpl() throws Exception
          {
            deadTumor.deleteMe();
            addSpawnWithoutRespawn(AliveTumor, deadTumor.getLoc(), 0);
            handleTumorHp(0.25);
            invokeDeathListener();
            for(Player p : getPlayers())
              p.sendPacket(new ExShowScreenMessage(NpcString.THE_TUMOR_INSIDE_S1_HAS_COMPLETELY_REVIVED_, 8000, ExShowScreenMessage.ScreenMessageAlign.MIDDLE_CENTER, false, 1, -1, false, "#" + NpcString.HALL_OF_EROSION.getId()));
View Full Code Here

  protected boolean thinkActive()
  {
    final NpcInstance actor = getActor();
    if (System.currentTimeMillis() >= TIME_TO_DIE)
    {
      actor.deleteMe();
      return false;
    }
    return super.thinkActive();
  }
}
View Full Code Here

        }
        break;
      case 4:
        if (_delete)
        {
          actor.deleteMe();
          return;
        }
        _currentWalkerPoint += 1;
        if (_currentWalkerPoint >= _walkerRoute.size() - 1)
        {
View Full Code Here

      return null;
    }
    else if (event.equalsIgnoreCase("DAIMON_Fail") && (isQuest != null))
    {
      Functions.npcSay(isQuest, "Darkness could not have ray?");
      isQuest.deleteMe();
      return null;
    }
    return event;
  }
 
View Full Code Here

      _wait = true;
      _wait_timeout = System.currentTimeMillis() + DESPAWN_TIME;
    }
    if ((_wait_timeout != 0) && _wait && (_wait_timeout < System.currentTimeMillis()))
    {
      actor.deleteMe();
    }
    return super.thinkActive();
  }
 
  /**
 
View Full Code Here

    @Override
    public void runImpl()
    {
      final NpcInstance actor = getActor();
      spawnChest(actor);
      actor.deleteMe();
    }
  }
}
View Full Code Here

      _wait = true;
      _wait_timeout = System.currentTimeMillis() + DESPAWN_TIME;
    }
    if ((_wait_timeout != 0) && _wait && (_wait_timeout < System.currentTimeMillis()))
    {
      actor.deleteMe();
      return true;
    }
    return super.thinkActive();
  }
 
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.