Package l2p.gameserver.serverpackets

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


      // remove bsps/sps/ss automation
      ConcurrentSkipListSet<Integer> activeSoulShots = player.getAutoSoulShot();
      for(int itemId : activeSoulShots)
      {
        player.removeAutoSoulShot(itemId);
        player.sendPacket(new ExAutoSoulShot(itemId, false));
      }
      // Разряжаем заряженные соул и спирит шоты
      L2ItemInstance weapon = player.getActiveWeaponInstance();
      if(weapon != null)
      {
View Full Code Here

          packets.add(Msg.ExMPCCOpen);
        }
      }
      for(int shotId : activeChar.getAutoSoulShot())
      {
        packets.add(new ExAutoSoulShot(shotId, true));
      }
      for(L2Effect e : activeChar.getEffectList().getAllFirstEffects())
      {
        if(e.getSkill().isToggle())
        {
View Full Code Here

    player.sendPacket(new InventoryUpdate().addRemovedItem(item));
    item.setItemId(itemtoexchange);
    player.sendPacket(new ShortCutInit(player));
    for(int shotId : player.getAutoSoulShot())
    {
      player.sendPacket(new ExAutoSoulShot(shotId, true));
    }
    player.sendPacket(new InventoryUpdate().addNewItem(item));
    player.sendPacket(new SystemMessage(SystemMessage.YOU_HAVE_EQUIPPED_YOUR_S1).addItemName(itemtoexchange));
    ThreadPoolManager.getInstance().scheduleAi(new Runnable()
    {
View Full Code Here

    if(item.getCount() < 1)
    {
      if(isAutoSoulShot)
      {
        player.removeAutoSoulShot(FishshotId);
        player.sendPacket(new ExAutoSoulShot(FishshotId, false), new SystemMessage(SystemMessage.THE_AUTOMATIC_USE_OF_S1_WILL_NOW_BE_CANCELLED).addString(item.getName()));
        return;
      }
      player.sendPacket(Msg.NOT_ENOUGH_SPIRITSHOTS);
      return;
    }
View Full Code Here

    {
      // Can't use soulshots
      if(isAutoSoulShot)
      {
        player.removeAutoSoulShot(SoulshotId);
        player.sendPacket(new ExAutoSoulShot(SoulshotId, false), new SystemMessage(SystemMessage.THE_AUTOMATIC_USE_OF_S1_WILL_NOW_BE_CANCELLED).addString(itemTemplate.getName()));
        return;
      }
      player.sendPacket(Msg.CANNOT_USE_SOULSHOTS);
      return;
    }
View Full Code Here

    {
      // Can't use Spiritshots
      if(isAutoSoulShot)
      {
        player.removeAutoSoulShot(SoulshotId);
        player.sendPacket(new ExAutoSoulShot(SoulshotId, false), new SystemMessage(SystemMessage.THE_AUTOMATIC_USE_OF_S1_WILL_NOW_BE_CANCELLED).addString(itemTemplate.getName()));
        return;
      }
      player.sendPacket(Msg.CANNOT_USE_SPIRITSHOTS);
      return;
    }
    if(grade == 0 && spiritshotId != 3947 // NG
      || grade == 1 && spiritshotId != 3948 && spiritshotId != 22072 // D
      || grade == 2 && spiritshotId != 3949 && spiritshotId != 22073 // C
      || grade == 3 && spiritshotId != 3950 && spiritshotId != 22074 // B
      || grade == 4 && spiritshotId != 3951 && spiritshotId != 22075 // A
      || grade == 5 && spiritshotId != 3952 && spiritshotId != 22076 // S
      )
    {
      if(isAutoSoulShot)
      {
        return;
      }
      player.sendPacket(Msg.SPIRITSHOT_DOES_NOT_MATCH_WEAPON_GRADE);
      return;
    }
    if(count < blessedsoulSpiritConsumption)
    {
      if(isAutoSoulShot)
      {
        player.removeAutoSoulShot(SoulshotId);
        player.sendPacket(new ExAutoSoulShot(SoulshotId, false), new SystemMessage(SystemMessage.THE_AUTOMATIC_USE_OF_S1_WILL_NOW_BE_CANCELLED).addString(itemTemplate.getName()));
        return;
      }
      player.sendPacket(Msg.NOT_ENOUGH_SPIRITSHOTS);
      return;
    }
View Full Code Here

    {
      // Can't use Spiritshots
      if(isAutoSoulShot)
      {
        player.removeAutoSoulShot(SoulshotId);
        player.sendPacket(new ExAutoSoulShot(SoulshotId, false), new SystemMessage(SystemMessage.THE_AUTOMATIC_USE_OF_S1_WILL_NOW_BE_CANCELLED).addString(itemTemplate.getName()));
        return;
      }
      player.sendPacket(Msg.CANNOT_USE_SPIRITSHOTS);
      return;
    }
    if(grade == 0 && SpiritshotId != 5790 && SpiritshotId != 2509 // NG
      || grade == 1 && SpiritshotId != 2510 && SpiritshotId != 22077 // D
      || grade == 2 && SpiritshotId != 2511 && SpiritshotId != 22078 // C
      || grade == 3 && SpiritshotId != 2512 && SpiritshotId != 22079 // B
      || grade == 4 && SpiritshotId != 2513 && SpiritshotId != 22080 // A
      || grade == 5 && SpiritshotId != 2514 && SpiritshotId != 22081 // S
      )
    {
      // wrong grade for weapon
      if(isAutoSoulShot)
      {
        return;
      }
      player.sendPacket(Msg.SPIRITSHOT_DOES_NOT_MATCH_WEAPON_GRADE);
      return;
    }
    if(count < soulSpiritConsumption)
    {
      if(isAutoSoulShot)
      {
        player.removeAutoSoulShot(SoulshotId);
        player.sendPacket(new ExAutoSoulShot(SoulshotId, false), new SystemMessage(SystemMessage.THE_AUTOMATIC_USE_OF_S1_WILL_NOW_BE_CANCELLED).addString(itemTemplate.getName()));
        return;
      }
      player.sendPacket(Msg.NOT_ENOUGH_SPIRITSHOTS);
      return;
    }
View Full Code Here

      return;
    }
    if(_type)
    {
      activeChar.addAutoSoulShot(_itemId);
      activeChar.sendPacket(new ExAutoSoulShot(_itemId, true));
      activeChar.sendPacket(new SystemMessage(SystemMessage.THE_USE_OF_S1_WILL_NOW_BE_AUTOMATED).addString(item.getName()));
      IItemHandler handler = ItemHandler.getInstance().getItemHandler(_itemId);
      handler.useItem(activeChar, item, false);
      return;
    }
    activeChar.removeAutoSoulShot(_itemId);
    activeChar.sendPacket(new ExAutoSoulShot(_itemId, false));
    activeChar.sendPacket(new SystemMessage(SystemMessage.THE_AUTOMATIC_USE_OF_S1_WILL_NOW_BE_CANCELLED).addString(item.getName()));
  }
View Full Code Here

TOP

Related Classes of l2p.gameserver.serverpackets.ExAutoSoulShot

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.