Examples of useSkill()


Examples of com.l2jfrozen.gameserver.handler.ISkillHandler.useSkill()

        _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);
        }
        else
        {
          skill.useSkill(_owner, targets);
        }
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.L2Skill.useSkill()

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

Examples of net.sf.l2j.gameserver.handler.ISkillHandler.useSkill()

                             _log.severe("Couldn't find skill handler for HEAL.");
                             continue;
                           }
                           L2Object tgts[] = new L2Object[]{target};
                           try {
                             Healhandler.useSkill(activeChar, skill, tgts);
                           } catch (IOException e) {
                           _log.log(Level.WARNING, "", e);
                           }
                              }
                          }//end for
View Full Code Here

Examples of net.sf.l2j.gameserver.handler.ISkillHandler.useSkill()

                L2Character[] targets = new L2Character[1];
                targets[0] = target;

                // Launch the magic skill and calculate its effects
                if (handler != null)
                    handler.useSkill(caster, skill, targets);
                else
                    skill.useSkill(caster, targets);

                if ((caster instanceof L2PcInstance) && (target instanceof L2NpcInstance))
                {
View Full Code Here

Examples of net.sf.l2j.gameserver.handler.ISkillHandler.useSkill()

                            z = (_owner.getZ() - _target.getZ());
                            if ((x * x) + (y * y) + (z * z) <= (range * range))
                            {
                                if (handler != null)
                                {
                                    handler.useSkill(_owner, skill, targets);
                                }
                                else
                                {
                                    skill.useSkill(_owner, targets);
                                }
View Full Code Here

Examples of net.sf.l2j.gameserver.handler.ISkillHandler.useSkill()

                        {
                            L2Character[] targets = {target};
                            ISkillHandler handler = SkillHandler.getInstance().getSkillHandler(skill.getSkillType());
                            if (handler != null)
                            {
                                handler.useSkill(_owner, skill, targets);
                            }
                            else
                            {
                                skill.useSkill(_owner, targets);
                            }
View Full Code Here

Examples of net.sf.l2j.gameserver.handler.ISkillHandler.useSkill()

    //check for other effects
      try {
          ISkillHandler handler = SkillHandler.getInstance().getSkillHandler(SkillType.BUFF);

            if (handler != null)
                handler.useSkill(activeChar, skill, targets);
      }
        catch (Exception e) {}

        L2Character target = null;
    L2ItemInstance weaponInst = activeChar.getActiveWeaponInstance();
View Full Code Here

Examples of net.sf.l2j.gameserver.handler.ISkillHandler.useSkill()

    {
      ISkillHandler handler = SkillHandler.getInstance().getSkillHandler(
          SkillType.BUFF);

      if (handler != null)
        handler.useSkill(activeChar, skill, targets);
    } catch (Exception e)
    {
    }

    L2Character target = null;
View Full Code Here

Examples of net.sf.l2j.gameserver.handler.ISkillHandler.useSkill()

        {
          handler = SkillHandler.getInstance().getSkillHandler(skill.getSkillType());
         
          if (handler != null)
          {
            handler.useSkill(this, skill, targets);
          }
          else
          {
            skill.useSkill(this, targets);
          }
View Full Code Here

Examples of net.sf.l2j.gameserver.handler.ISkillHandler.useSkill()

      handler = SkillHandler.getInstance().getSkillHandler(skill.getSkillType());
     
      // Launch the magic skill and calculate its effects
      if (handler != null)
      {
        handler.useSkill(this, skill, targets);
      }
      else
      {
        skill.useSkill(this, targets);
      }
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.