Package com.l2jfrozen.gameserver.model

Examples of com.l2jfrozen.gameserver.model.L2Character$NotifyAITask


    }

    @Override
    public void calc(Env env)
    {
      L2Character p = env.player;
      if(p instanceof L2Summon)
        env.value = 8; // TODO: needs retail value
      else if (p instanceof L2PcInstance && p.getActiveWeaponInstance() != null)
        env.value *= BaseStats.WIT.calcBonus(p);
    }
View Full Code Here


    super.clientNotifyDead();
  }

  private void thinkAttack()
  {
    final L2Character target = getAttackTarget();
    if (target == null)
      return;
   
    if (checkTargetLostOrDead(target))
    {
View Full Code Here

  }

  private void thinkCast()
  {

    final L2Character target = getCastTarget();
    final L2Skill skill = get_skill();
    //if (Config.DEBUG) _log.warning("L2PlayerAI: thinkCast -> Start");

    if(checkTargetLost(target))
    {
View Full Code Here

  /**
   * this sets the friendly target for a cubic.
   */
  public void cubicTargetForHeal()
  {
    L2Character target = null;
    double percentleft = 100.0;
    L2Party party = _owner.getParty();
   
    // if owner is in a duel but not in a party duel, then it is the same as he does not have a
    // party
View Full Code Here

              getCubicTarget();
              if (_target == owner || !isInCubicRange(owner, _target))
                _target = null;
            }
           
            final L2Character target = _target;
           
            if ((target != null) && (!target.isDead()))
            {
              if (Config.DEBUG)
              {
                _log.info("L2CubicInstance: Action.run();");
                _log.info("Cubic Id: "
                    + _id
                    + " Target: "
                    + target.getName()
                    + " distance: "
                    + Math.sqrt(target.getDistanceSq(owner.getX(), owner.getY(), owner.getZ())));
              }
             
              owner.broadcastPacket(new MagicSkillUser(owner, target, skill.getId(), skill.getLevel(), 0, 0));
             
              SkillType type = skill.getSkillType();
View Full Code Here

        }
       
        if (skill != null)
        {
          cubicTargetForHeal();
          L2Character target = _target;
          if (target != null && !target.isDead())
          {
            if (target.getMaxHp() - target.getCurrentHp() > skill.getPower())
            {
              L2Character[] targets = { target };
              ISkillHandler handler = SkillHandler.getInstance().getSkillHandler(skill.getSkillType());
              if (handler != null)
              {
View Full Code Here

      obj.getPoly().setPolyInfo(type, id);

      //animation
      if(obj instanceof L2Character)
      {
        L2Character Char = (L2Character) obj;
        MagicSkillUser msk = new MagicSkillUser(Char, 1008, 1, 4000, 0);
        Char.broadcastPacket(msk);
        SetupGauge sg = new SetupGauge(0, 4000);
        Char.sendPacket(sg);
        Char = null;
        sg = null;
        msk = null;
      }
View Full Code Here

        activeChar.sendMessage(line);
      }
    }
    if(command.equals("admin_mcrit"))
    {
      L2Character target = (L2Character) activeChar.getTarget();
     
      activeChar.sendMessage("Activechar Mcrit "+activeChar.getMCriticalHit(null, null));
      activeChar.sendMessage("Activechar baseMCritRate "+activeChar.getTemplate().baseMCritRate);
     
      if(target != null)
      {
        activeChar.sendMessage("Target Mcrit "+target.getMCriticalHit(null, null));
          activeChar.sendMessage("Target baseMCritRate "+target.getTemplate().baseMCritRate);
        }
    }
    if(command.equals("admin_addbufftest"))
    {
      L2Character target = (L2Character) activeChar.getTarget();
      activeChar.sendMessage("cast");
     
      L2Skill skill = SkillTable.getInstance().getInfo(1085,3);

      if (target != null)
View Full Code Here

   * @param activeChar
   * @param id
   */
  private void adminTestSkill(L2PcInstance activeChar, int id)
  {
    L2Character player;
    L2Object target = activeChar.getTarget();

    if(target == null || !(target instanceof L2Character))
    {
      player = activeChar;
    }
    else
    {
      player = (L2Character) target;
    }

    player.broadcastPacket(new MagicSkillUser(activeChar, player, id, 1, 1, 1));

    target = null;
    player = null;
  }
View Full Code Here

    }
    else if(command.startsWith("admin_mobgroup_attack"))
    {
      if(activeChar.getTarget() instanceof L2Character)
      {
        L2Character target = (L2Character) activeChar.getTarget();
        attack(command, activeChar, target);
        target = null;
      }
    }
    else if(command.startsWith("admin_mobgroup_rnd"))
View Full Code Here

TOP

Related Classes of com.l2jfrozen.gameserver.model.L2Character$NotifyAITask

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.