Examples of ExAutoSoulShot


Examples of net.sf.l2j.gameserver.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 net.sf.l2j.gameserver.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 net.sf.l2j.gameserver.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);
                return;
View Full Code Here

Examples of net.sf.l2j.gameserver.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);
                return;
View Full Code Here

Examples of net.sf.l2j.gameserver.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);
            }
View Full Code Here

Examples of net.sf.l2j.gameserver.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));
          }
    }

        _owner.sendPacket(new ShortCutInit(_owner));

        for (int shotId : _owner.getAutoSoulShot().values())
            _owner.sendPacket(new ExAutoSoulShot(shotId, 1));
    }
View Full Code Here

Examples of net.sf.l2j.gameserver.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
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.