Package com.l2jfrozen.gameserver.model.actor.instance

Examples of com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance.useMagic()


     
      //final L2Object target = activeChar.getTarget();
      //if(target!=null && target instanceof L2Character)
      //  activeChar.sendPacket(new ValidateLocation((L2Character)target));
     
      activeChar.useMagic(skill, _ctrlPressed, _shiftPressed);
    }
    else
    {
      activeChar.sendPacket(ActionFailed.STATIC_PACKET);
      _log.severe(" [ERROR] [WARNING]No skill found with id " + _magicId + " and level " + level + " !!");
View Full Code Here


      activeChar.setCurrentSkillWorldPosition(new Point3D(_x, _y, _z));

      // normally magicskilluse packet turns char client side but for these skills, it doesn't (even with correct target)
      activeChar.setHeading(Util.calculateHeadingFrom(activeChar.getX(), activeChar.getY(), _x , _y));
      activeChar.broadcastPacket(new ValidateLocation(activeChar));
      activeChar.useMagic(skill, _ctrlPressed, _shiftPressed);
    }
    else
    {
      sendPacket(ActionFailed.STATIC_PACKET);
    }
View Full Code Here

    targets[0] = activeChar.getTarget();

    int itemId = item.getItemId();
    if(itemId == 6643) // Golden Spice
    {
      activeChar.useMagic(SkillTable.getInstance().getInfo(2188, 1), false, false);
    }
    else if(itemId == 6644) // Crystal Spice
    {
      activeChar.useMagic(SkillTable.getInstance().getInfo(2189, 1), false, false);
    }
View Full Code Here

    {
      activeChar.useMagic(SkillTable.getInstance().getInfo(2188, 1), false, false);
    }
    else if(itemId == 6644) // Crystal Spice
    {
      activeChar.useMagic(SkillTable.getInstance().getInfo(2189, 1), false, false);
    }

    activeChar = null;
  }
View Full Code Here

        break;
      case 1: // pet summons
        activeChar.setTarget(activeChar);
        // Skill 2046 used only for animation
        L2Skill skill = SkillTable.getInstance().getInfo(2046, 1);
        activeChar.useMagic(skill, true, true);
        activeChar.sendPacket(new SystemMessage(SystemMessageId.SUMMON_A_PET));
        ThreadPoolManager.getInstance().scheduleGeneral(new PetSummonFinalizer(activeChar, npcTemplate, item), 4800);
       
        break;
      case 2: // wyvern
View Full Code Here

        activeChar.sendMessage("The chest Is empty.");
        activeChar.sendPacket(ActionFailed.STATIC_PACKET);

        return;
      }
      activeChar.useMagic(skill, false, false);
      chest = null;
    }

    activeChar = null;
    skill = null;
View Full Code Here

    targets[0] = activeChar.getTarget();

    int itemId = item.getItemId();
    if(itemId == 6391)
    {
      activeChar.useMagic(SkillTable.getInstance().getInfo(9999, 1), false, false);
    }

    activeChar = null;
  }
View Full Code Here

    int crystalId = item.getItemId();

    // Soul Crystal Casting section
    L2Skill skill = SkillTable.getInstance().getInfo(2096, 1);
    activeChar.useMagic(skill, false, true);
    // End Soul Crystal Casting section

    // Continue execution later
    CrystalFinalizer cf = new CrystalFinalizer(activeChar, target, crystalId);
    ThreadPoolManager.getInstance().scheduleEffect(cf, skill.getHitTime());
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.