Examples of removeAutoSoulShot()


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

    }
    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

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

    if(soulSpiritConsumption == 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

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

    }
    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

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

      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

Examples of lineage2.gameserver.model.Player.removeAutoSoulShot()

      activeChar.sendPacket(new SystemMessage(SystemMessage.THE_USE_OF_S1_WILL_NOW_BE_AUTOMATED).addString(item.getName()));
      IItemHandler handler = item.getTemplate().getHandler();
      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

Examples of lineage2.gameserver.model.Player.removeAutoSoulShot()

      player.abortAttack(true, true);
    }
    Set<Integer> activeSoulShots = player.getAutoSoulShot();
    for (int itemId : activeSoulShots)
    {
      player.removeAutoSoulShot(itemId);
      player.sendPacket(new ExAutoSoulShot(itemId, false));
    }
    ItemInstance weapon = player.getActiveWeaponInstance();
    if (weapon != null)
    {
View Full Code Here

Examples of lineage2.gameserver.model.Player.removeAutoSoulShot()

    int soulShotConsumption = weaponItem.getSoulShotCount();
    if (soulShotConsumption == 0)
    {
      if (isAutoSoulShot)
      {
        player.removeAutoSoulShot(SoulshotId);
        player.sendPacket(new ExAutoSoulShot(SoulshotId, false), new SystemMessage(SystemMessage.THE_AUTOMATIC_USE_OF_S1_WILL_NOW_BE_CANCELLED).addItemName(SoulshotId));
        return false;
      }
      player.sendPacket(Msg.CANNOT_USE_SOULSHOTS);
      return false;
View Full Code Here

Examples of lineage2.gameserver.model.Player.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 false;
      }
      player.sendPacket(Msg.NOT_ENOUGH_SPIRITSHOTS);
      return false;
View Full Code Here

Examples of lineage2.gameserver.model.Player.removeAutoSoulShot()

    final int blessedsoulSpiritConsumption = weaponItem.getSpiritShotCount();
    if (blessedsoulSpiritConsumption == 0)
    {
      if (isAutoSoulShot)
      {
        player.removeAutoSoulShot(SoulshotId);
        player.sendPacket(new ExAutoSoulShot(SoulshotId, false), new SystemMessage(SystemMessage.THE_AUTOMATIC_USE_OF_S1_WILL_NOW_BE_CANCELLED).addItemName(spiritshotId));
        return false;
      }
      player.sendPacket(Msg.CANNOT_USE_SPIRITSHOTS);
      return false;
View Full Code Here

Examples of lineage2.gameserver.model.Player.removeAutoSoulShot()

    }
    if (!player.getInventory().destroyItem(item, blessedsoulSpiritConsumption))
    {
      if (isAutoSoulShot)
      {
        player.removeAutoSoulShot(SoulshotId);
        player.sendPacket(new ExAutoSoulShot(SoulshotId, false), new SystemMessage(SystemMessage.THE_AUTOMATIC_USE_OF_S1_WILL_NOW_BE_CANCELLED).addItemName(spiritshotId));
        return false;
      }
      player.sendPacket(Msg.NOT_ENOUGH_SPIRITSHOTS);
      return false;
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.