Package l2p.gameserver.model.instances

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


          timer.cancel();
        }
        L2NpcInstance isQuest = L2ObjectsStorage.getByNpcId(VultusSonOfVoltarQuestMonster);
        if(isQuest != null)
        {
          isQuest.deleteMe();
        }
        if(st.getQuestItemsCount(GloveOfVoltar) > 0 && st.getQuestItemsCount(VultusHead) == 0)
        {
          st.giveItems(VultusHead, 1);
        }
View Full Code Here


          timer.cancel();
        }
        L2NpcInstance isQuest = L2ObjectsStorage.getByNpcId(RevenantOfTantosChief);
        if(isQuest != null)
        {
          isQuest.deleteMe();
        }
        st.giveItems(ScepterOfTantos, 1);
        st.set("cond", "10");
        st.setState(STARTED);
        st.playSound(SOUND_MIDDLE);
View Full Code Here

      case admin_delete:
        L2Object obj = activeChar.getTarget();
        if(obj != null && obj.isNpc())
        {
          L2NpcInstance target = (L2NpcInstance) obj;
          target.deleteMe();
          L2Spawn spawn = target.getSpawn();
          if(spawn != null)
          {
            spawn.stopRespawn();
          }
View Full Code Here

      {
        activeChar.sendMessage("Incorrect monster template.");
        return;
      }
      int respawnTime = spawn.getRespawnDelay();
      target.deleteMe();
      spawn.stopRespawn();
      try
      {
        // L2MonsterInstance mob = new L2MonsterInstance(monsterTemplate,
        // template1);
View Full Code Here

  protected boolean thinkActive()
  {
    L2NpcInstance actor = getActor();
    if(actor != null && System.currentTimeMillis() >= TIME_TO_DIE)
    {
      actor.deleteMe();
      return false;
    }
    return super.thinkActive();
  }
}
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

    else if(event.equalsIgnoreCase("Wait1"))
    {
      L2NpcInstance isQuest = L2ObjectsStorage.getByNpcId(Aruraune);
      if(isQuest != null)
      {
        isQuest.deleteMe();
      }
      if(st.getInt("cond") == 2)
      {
        st.set("cond", "1");
      }
View Full Code Here

    else if(event.equalsIgnoreCase("Wait2"))
    {
      L2NpcInstance isQuest = L2ObjectsStorage.getByNpcId(OlMahumInspector);
      if(isQuest != null)
      {
        isQuest.deleteMe();
      }
      isQuest = L2ObjectsStorage.getByNpcId(OlMahumPilgrimNPC);
      if(isQuest != null)
      {
        isQuest.deleteMe();
View Full Code Here

        isQuest.deleteMe();
      }
      isQuest = L2ObjectsStorage.getByNpcId(OlMahumPilgrimNPC);
      if(isQuest != null)
      {
        isQuest.deleteMe();
      }
      if(st.getInt("cond") == 6)
      {
        st.set("cond", "5");
      }
View Full Code Here

    else if(event.equalsIgnoreCase("Wait3"))
    {
      L2NpcInstance isQuest = L2ObjectsStorage.getByNpcId(OlMahumBetrayer);
      if(isQuest != null)
      {
        isQuest.deleteMe();
      }
      return null;
    }
    else if(event.equalsIgnoreCase("Wait4"))
    {
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.