Package l2p.gameserver.model.instances

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


        dropItem(actor, Water_Dragon_Scale, Rnd.get(1, 2));
        if(Rnd.chance(36))
        {
          dropItem(actor, Water_Dragon_Claw, Rnd.get(1, 3));
        }
        actor.deleteMe();
      }
    }
  }

  private void spawnMob(int id)
View Full Code Here


        if(spawn.charStoreId == charStoredId && spawn.npcId == npcId)
        {
          L2NpcInstance npc = spawn.getNPC();
          if(npc != null)
          {
            npc.deleteMe();
          }
          it.remove();
        }
      }
    }
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();
  }

  @Override
View Full Code Here

          L2NpcInstance npc = spawn.getNPC();
          if(curr_time - spawn.spawned_at > spawn.TimeToLive || npc == null)
          {
            if(npc != null)
            {
              npc.deleteMe();
            }
            Spawn_List.remove(spawn);
          }
        }
      }
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

    else if(event.equalsIgnoreCase("Wait1") || event.equalsIgnoreCase("Chest"))
    {
      L2NpcInstance isQuest = L2ObjectsStorage.getByNpcId(Chest);
      if(isQuest != null)
      {
        isQuest.deleteMe();
      }
      QuestTimer timer = st.getQuestTimer("Wait1");
      if(timer != null)
      {
        timer.cancel();
View Full Code Here

      st.playSound(SOUND_GIVEUP);
    }
    else if(event.equalsIgnoreCase("suki_timer"))
    {
      L2NpcInstance n = findNpc(SUKI, player);
      n.deleteMe();
      htmltext = null;
    }
    return htmltext;
  }
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.