Examples of removeAutoSoulShot()


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

          }
         
        }
        else if(_type == 0)
        {
          activeChar.removeAutoSoulShot(_itemId);
          //ExAutoSoulShot atk = new ExAutoSoulShot(_itemId, _type);
          //activeChar.sendPacket(atk);

          //cancel the auto soulshot use
          SystemMessage sm = new SystemMessage(SystemMessageId.AUTO_USE_OF_S1_CANCELLED);
View Full Code Here

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

    {
      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.model.actor.instance.L2PcInstance.removeAutoSoulShot()

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

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

    {
      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.model.actor.instance.L2PcInstance.removeAutoSoulShot()

    {
      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.model.actor.instance.L2PcInstance.removeAutoSoulShot()

    {
      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.model.L2Player.removeAutoSoulShot()

      }
      // 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

Examples of l2p.gameserver.model.L2Player.removeAutoSoulShot()

    }
    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

Examples of l2p.gameserver.model.L2Player.removeAutoSoulShot()

    if(soulShotConsumption == 0)
    {
      // 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

Examples of l2p.gameserver.model.L2Player.removeAutoSoulShot()

    if(blessedsoulSpiritConsumption == 0)
    {
      // 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;
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.