Package com.l2jfrozen.gameserver.network.serverpackets

Examples of com.l2jfrozen.gameserver.network.serverpackets.MagicSkillUser


      L2Skill skill = SkillTable.getInstance().getInfo(skillId, skillLevel);
      if(player.getFirstEffect(skill) == null)
      {
        skill.getEffects(_caster, player,false,false,false);
        broadcastPacket(new MagicSkillUser(_caster, player, skill.getId(), skillLevel, skill.getHitTime(), 0));
        SystemMessage sm = new SystemMessage(SystemMessageId.YOU_FEEL_S1_EFFECT);
        sm.addSkillName(skillId);
        player.sendPacket(sm);
        skill = null;
        return true;
View Full Code Here


    else if (st.countTokens() == 1)
      buffid = Integer.valueOf(st.nextToken());

    if (actualCommand.equalsIgnoreCase("getbuff")) {
      if (buffid != 0) {
        MagicSkillUser mgc = new MagicSkillUser(this, player, buffid, bufflevel, 5, 0);
        SkillTable.getInstance().getInfo(buffid, bufflevel).getEffects(this, player);
        showMessageWindow(player);
        player.broadcastPacket(mgc);
      }
    }
View Full Code Here

       
        if (UseCubicCure)
        {
          // Smart Cubic debuff cancel is needed, no other skill is used in this
          // activation period
          MagicSkillUser msu = new MagicSkillUser(owner, owner, SKILL_CUBIC_CURE, 1, 0, 0);
          owner.broadcastPacket(msu);
        }
        else if (Rnd.get(100) < _chance)
        {
          skill = _skills.get(Rnd.get(_skills.size()));
          if (skill != null)
          {
           
            if (skill.getId() == SKILL_CUBIC_HEAL)
            {
              // friendly skill, so we look a target in owner's party
              cubicTargetForHeal();
            }
            else
            {
              // offensive skill, we look for an enemy target
              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();
              ISkillHandler handler = SkillHandler.getInstance().getSkillHandler(skill.getSkillType());
              L2Character[] targets = { target };
             
View Full Code Here

              else
              {
                skill.useSkill(_owner, targets);
              }
             
              MagicSkillUser msu = new MagicSkillUser(_owner, target, skill.getId(), skill.getLevel(), 0, 0);
              _owner.broadcastPacket(msu);
            }
          }
        }
      }
View Full Code Here

      spawn.getLastSpawn().isEventMob = true;
      spawn.getLastSpawn().isAggressive();
      spawn.getLastSpawn().decayMe();
      spawn.getLastSpawn().spawnMe(spawn.getLastSpawn().getX(), spawn.getLastSpawn().getY(), spawn.getLastSpawn().getZ());

      spawn.getLastSpawn().broadcastPacket(new MagicSkillUser(spawn.getLastSpawn(), spawn.getLastSpawn(), 1034, 1, 1, 1));

      npcs.add(String.valueOf(spawn.getLastSpawn().getObjectId()));

      spawn = null;
View Full Code Here

        ISkillHandler handler = SkillHandler.getInstance().getSkillHandler(skill.getSkillType());
        L2Object[] targets = skill.getTargetList(_owner, false, target);

        _owner.broadcastPacket(new MagicSkillLaunched(_owner, skill.getDisplayId(), skill.getLevel(), targets));
        _owner.broadcastPacket(new MagicSkillUser(_owner, (L2Character) targets[0], skill.getDisplayId(), skill.getLevel(), 0, 0));

        // Launch the magic skill and calculate its effects
        if(handler != null)
        {
          handler.useSkill(_owner, skill, targets);
View Full Code Here

      //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;
View Full Code Here

    else
    {
      player = (L2Character) target;
    }

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

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

      _bossSpawn.getLastSpawn()._isEventMobRaid = true;
      _bossSpawn.getLastSpawn().isAggressive();
      _bossSpawn.getLastSpawn().decayMe();
      _bossSpawn.getLastSpawn().spawnMe(_bossSpawn.getLastSpawn().getX(), _bossSpawn.getLastSpawn().getY(), _bossSpawn.getLastSpawn().getZ());

      _bossSpawn.getLastSpawn().broadcastPacket(new MagicSkillUser(_bossSpawn.getLastSpawn(), _bossSpawn.getLastSpawn(), 1034, 1, 1, 1));
    }
    catch (Exception e)
    {
      LOGGER.warn("Raid Engine[spawnEventNpc(" + activeChar.getName() + ")]: exception: " + e.getMessage());
    }
View Full Code Here

      _bossSpawn.getLastSpawn()._isEventMobRaid = true;
      _bossSpawn.getLastSpawn().isAggressive();
      _bossSpawn.getLastSpawn().decayMe();
      _bossSpawn.getLastSpawn().spawnMe(_bossSpawn.getLastSpawn().getX(), _bossSpawn.getLastSpawn().getY(), _bossSpawn.getLastSpawn().getZ());

      _bossSpawn.getLastSpawn().broadcastPacket(new MagicSkillUser(_bossSpawn.getLastSpawn(), _bossSpawn.getLastSpawn(), 1034, 1, 1, 1));
    }
    catch (Exception e)
    {
      LOGGER.warn("Raid Engine[spawnEventNpc(exception: " + e.getMessage());
    }
View Full Code Here

TOP

Related Classes of com.l2jfrozen.gameserver.network.serverpackets.MagicSkillUser

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.