Package com.l2jfrozen.gameserver.model

Examples of com.l2jfrozen.gameserver.model.L2Object


    if(count < 1)
      return;

    weaponInst.setChargedFishshot(true);
    activeChar.destroyItemWithoutTrace("Consume", item.getObjectId(), 1, null, false);
    L2Object oldTarget = activeChar.getTarget();
    activeChar.setTarget(activeChar);

    weaponInst = null;

    //activeChar.sendPacket(new SystemMessage(SystemMessage.ENABLED_SPIRITSHOT));
View Full Code Here


      });
      _logAudit.log(record);
    }
    */

    L2Object targetChar = activeChar.getTarget();
    StringTokenizer st = new StringTokenizer(command, " ");
    String actualCommand = st.nextToken(); // Get actual command

    String val = "";
    if(st.countTokens() >= 1)
View Full Code Here

        _task.cancel(true);
        _task = null;
      }
      try
      {
        L2Object obj = null;

        while(obj == null)
        {
          obj = SpawnTable.getInstance().getTemplate(_iterator).getLastSpawn();
          _iterator++;

          if(obj != null && obj instanceof L2Attackable)
            if(rand.nextInt(100) > 10)
            {
              obj = null;
            }
        }

        if(rand.nextInt(100) > 50)
        {
          spawnOneTree(getTreeId(), obj.getX() + rand.nextInt(200) - 100, obj.getY() + rand.nextInt(200) - 100, obj.getZ());
        }
      }
      catch(Throwable t)
      {
        if(Config.ENABLE_ALL_EXCEPTIONS)
View Full Code Here

      return;

    activeChar.disableAllSkills();

    //fix soe
    L2Object oldtarget = activeChar.getTarget();
    activeChar.setTarget(activeChar);

    L2Skill skill = SkillTable.getInstance().getInfo(escapeSkill, 1);
    MagicSkillUser msu = new MagicSkillUser(activeChar, escapeSkill, 1, skill.getHitTime(), 0);
    activeChar.broadcastPacket(msu);
View Full Code Here

  {
    if(!(playable instanceof L2PcInstance))
      return;

    L2PcInstance activeChar = (L2PcInstance) playable;
    L2Object target = activeChar.getTarget();
    if(!(target instanceof L2MonsterInstance))
    {
      // Send a System Message to the caster
      SystemMessage sm = new SystemMessage(SystemMessageId.INCORRECT_TARGET);
      activeChar.sendPacket(sm);
View Full Code Here

      Map<Integer, Integer> rankList = RaidBossPointsManager.getRankList();
      for (L2Clan c : ClanTable.getInstance().getClans())
      {
        for (Map.Entry<Integer, Integer> entry : rankList.entrySet())
        {
          L2Object obj = L2World.getInstance().findObject(entry.getKey());
          if (obj instanceof L2PcInstance)
            playerName = ((L2PcInstance) obj).getName();
          if (entry.getValue() <= 100 && c.isMember(playerName))
          {
            int reputation = 0;
View Full Code Here

    if(targetList.size() == 0)
      return true;

    // Choosing randomly a new target
    int nextTargetIdx = Rnd.nextInt(targetList.size());
    L2Object target = targetList.get(nextTargetIdx);

    // Attacking the target
    //getEffected().setTarget(target);
    getEffected().setTarget(target);
    getEffected().getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, target);
View Full Code Here

    if(activeChar == null)
      return false;

    if(command.startsWith("admin_setnoble"))
    {
      L2Object target = activeChar.getTarget();

      if(target instanceof L2PcInstance)
      {
        L2PcInstance targetPlayer = (L2PcInstance) target;
View Full Code Here

  private void handleTarget(String command, L2PcInstance activeChar)
  {
    try
    {
      String targetName = command.substring(13);
      L2Object obj = L2World.getInstance().getPlayer(targetName);

      if(obj != null && obj instanceof L2PcInstance)
      {
        obj.onAction(activeChar);
      }
      else
      {
        SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);
        sm.addString("Player " + targetName + " not found");
View Full Code Here

    handleRes(activeChar, null);
  }

  private void handleRes(L2PcInstance activeChar, String player)
  {
    L2Object obj = activeChar.getTarget();

    if(player != null)
    {
      L2PcInstance plyr = L2World.getInstance().getPlayer(player);
View Full Code Here

TOP

Related Classes of com.l2jfrozen.gameserver.model.L2Object

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.