Package com.l2jfrozen.gameserver.model

Examples of com.l2jfrozen.gameserver.model.L2Summon$AIAccessor


  }

  @Override
  protected void onIntentionActive()
  {
    L2Summon summon = (L2Summon) _actor;

    if(summon.getFollowStatus())
    {
      setIntention(AI_INTENTION_FOLLOW, summon.getOwner());
    }
    else
    {
      super.onIntentionActive();
    }
View Full Code Here


    return;
  }

  private void thinkCast()
  {
    L2Summon summon = (L2Summon) _actor;

    final L2Character target = getCastTarget();
    if(checkTargetLost(target))
    {
      setCastTarget(null);
      return;
    }

    final L2Skill skill = get_skill();
    if(maybeMoveToPawn(target, _actor.getMagicalAttackRange(skill)))
      return;

    clientStopMoving(null);
    summon.setFollowStatus(false);
    summon = null;
    setIntention(AI_INTENTION_IDLE);
    _accessor.doCast(skill);
    return;
  }
View Full Code Here

   */
   @Override
    protected void onEvtFinishCasting() {
        super.onEvtFinishCasting();

        final L2Summon summon = (L2Summon) _actor;

        summon.setFollowStatus(true);
  }
View Full Code Here

              if (Config.DM_ON_START_UNSUMMON_PET)
              {
                // Remove Summon's buffs
                if (player.getPet() != null)
                {
                  L2Summon summon = player.getPet();
                  summon.stopAllEffects();
                 
                  if (summon instanceof L2PetInstance)
                    summon.unSummon(player);
                }
              }
             
              if (Config.DM_ON_START_REMOVE_ALL_EFFECTS)
              {
View Full Code Here

    writeD(_flyRunSpd);
    writeD(_flyWalkSpd);
    writeF(_moveMultiplier);
    writeF(_activeChar.getAttackSpeedMultiplier());

    L2Summon pet = _activeChar.getPet();
    if(_activeChar.getMountType() != 0 && pet != null)
    {
      writeF(pet.getTemplate().collisionRadius);
      writeF(pet.getTemplate().collisionHeight);
    }
    else
    {
      writeF(_activeChar.getBaseTemplate().collisionRadius);
      writeF(_activeChar.getBaseTemplate().collisionHeight);
View Full Code Here

              if(Config.TVT_ON_START_UNSUMMON_PET)
              {
                // Remove Summon's buffs
                if(player.getPet() != null)
                {
                  L2Summon summon = player.getPet();
                 
                  summon.stopAllEffects();
                 
                  if(summon instanceof L2PetInstance)
                    summon.unSummon(player);
                }
              }

              if(Config.TVT_ON_START_REMOVE_ALL_EFFECTS)
              {
View Full Code Here

            if (Config.RAID_ON_START_UNSUMMON_PET)
            {
              //Remove Summon's buffs
              if (player.getPet() != null)
              {
                L2Summon summon = player.getPet();
                for (L2Effect e : summon.getAllEffects())
                  if (e != null)
                    e.exit();

                if (summon instanceof L2PetInstance)
                  summon.unSummon(player);
              }
            }

            if (Config.RAID_ON_START_REMOVE_ALL_EFFECTS)
            {
View Full Code Here

            if (Config.RAID_ON_START_UNSUMMON_PET)
            {
              //Remove Summon's buffs
              if (player.getPet() != null)
              {
                L2Summon summon = player.getPet();
                for (L2Effect e : summon.getAllEffects())
                  if (e != null)
                    e.exit();

                if (summon instanceof L2PetInstance)
                  summon.unSummon(player);
              }
            }

            if (Config.RAID_ON_START_REMOVE_ALL_EFFECTS)
            {
View Full Code Here

TOP

Related Classes of com.l2jfrozen.gameserver.model.L2Summon$AIAccessor

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.