Examples of ExAutoSoulShot


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

          SystemMessage sm = new SystemMessage(SystemMessageId.AUTO_USE_OF_S1_CANCELLED);
          sm.addString(item.getItemName());
          activeChar.sendPacket(sm);
        }
       
        ExAutoSoulShot atk = new ExAutoSoulShot(_itemId, _type);
        activeChar.sendPacket(atk);
      }
    }
  }
View Full Code Here

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

        // Remove shot automation
        Map<Integer, Integer> activeSoulShots = player.getAutoSoulShot();
        for (int itemId : activeSoulShots.values())
        {
          player.removeAutoSoulShot(itemId);
          ExAutoSoulShot atk = new ExAutoSoulShot(itemId, 0);
          player.sendPacket(atk);
        }

        // Discharge any active shots
        player.getActiveWeaponInstance().setChargedSoulshot(L2ItemInstance.CHARGED_NONE);
View Full Code Here

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

      if(!activeChar.destroyItemWithoutTrace("Consume", item.getObjectId(), weaponItem.getSpiritShotCount(), null, false))
      {
        if(activeChar.getAutoSoulShot().containsKey(itemId))
        {
          activeChar.removeAutoSoulShot(itemId);
          activeChar.sendPacket(new ExAutoSoulShot(itemId, 0));
          SystemMessage sm = new SystemMessage(SystemMessageId.AUTO_USE_OF_S1_CANCELLED);
          sm.addString(item.getItem().getName());
          activeChar.sendPacket(sm);
          sm = null;
View Full Code Here

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

        if(!activeChar.destroyItemWithoutTrace("Consume", item.getObjectId(), SSCount, null, false))
        {
          if(activeChar.getAutoSoulShot().containsKey(itemId))
          {
            activeChar.removeAutoSoulShot(itemId);
            activeChar.sendPacket(new ExAutoSoulShot(itemId, 0));

            SystemMessage sm = new SystemMessage(SystemMessageId.AUTO_USE_OF_S1_CANCELLED);
            sm.addString(item.getItem().getName());
            activeChar.sendPacket(sm);
            sm = null;
View Full Code Here

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

      if(!activeOwner.destroyItemWithoutTrace("Consume", item.getObjectId(), shotConsumption, null, false))
      {
        if(activeOwner.getAutoSoulShot().containsKey(itemId))
        {
          activeOwner.removeAutoSoulShot(itemId);
          activeOwner.sendPacket(new ExAutoSoulShot(itemId, 0));
          SystemMessage sm = new SystemMessage(SystemMessageId.AUTO_USE_OF_S1_CANCELLED);
          sm.addString(item.getItem().getName());
          activeOwner.sendPacket(sm);
          sm = null;
View Full Code Here

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

      if(!activeOwner.destroyItemWithoutTrace("Consume", item.getObjectId(), shotConsumption, null, false))
      {
        if(activeOwner.getAutoSoulShot().containsKey(itemId))
        {
          activeOwner.removeAutoSoulShot(itemId);
          activeOwner.sendPacket(new ExAutoSoulShot(itemId, 0));
          SystemMessage sm = new SystemMessage(SystemMessageId.AUTO_USE_OF_S1_CANCELLED);
          sm.addString(item.getItem().getName());
          activeOwner.sendPacket(sm);
          sm = null;
View Full Code Here

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

      {
        int _itemId = ss.getItemId();

        if((_itemId >= 2509 && _itemId <= 2514 || _itemId >= 3947 && _itemId <= 3952 || _itemId <= 1804 && _itemId >= 1808 || _itemId == 5789 || _itemId == 5790 || _itemId == 1835) && ss.getItem().getCrystalType() == unequipped.getItem().getCrystalType())
        {
          sendPacket(new ExAutoSoulShot(_itemId, 0));

          SystemMessage sm = new SystemMessage(SystemMessageId.AUTO_USE_OF_S1_CANCELLED);
          sm.addString(ss.getItemName());
          sendPacket(sm);
        }
View Full Code Here

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

      L2ItemInstance item = _owner.getInventory().getItemByObjectId(old.getId());

      if(item != null && item.getItemType() == L2EtcItemType.SHOT)
      {
        _owner.removeAutoSoulShot(item.getItemId());
        _owner.sendPacket(new ExAutoSoulShot(item.getItemId(), 0));
      }

      item = null;
    }

    _owner.sendPacket(new ShortCutInit(_owner));

    for(int shotId : _owner.getAutoSoulShot().values())
    {
      _owner.sendPacket(new ExAutoSoulShot(shotId, 1));
    }

    old = null;
  }
View Full Code Here

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

      if(!activeChar.destroyItemWithoutTrace("Consume", item.getObjectId(), weaponItem.getSpiritShotCount(), null, false))
      {
        if(activeChar.getAutoSoulShot().containsKey(itemId))
        {
          activeChar.removeAutoSoulShot(itemId);
          activeChar.sendPacket(new ExAutoSoulShot(itemId, 0));

          SystemMessage sm = new SystemMessage(SystemMessageId.AUTO_USE_OF_S1_CANCELLED);
          sm.addString(item.getItem().getName());
          activeChar.sendPacket(sm);
        }
View Full Code Here

Examples of l2p.gameserver.serverpackets.ExAutoSoulShot

    if(old.type == L2ShortCut.TYPE_SKILL)
    {
      player.sendPacket(new ShortCutInit(player));
      for(int shotId : player.getAutoSoulShot())
      {
        player.sendPacket(new ExAutoSoulShot(shotId, true));
      }
    }
  }
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.