Examples of useItem()


Examples of com.l2jfrozen.gameserver.handler.IItemHandler.useItem()

      {
        _log.warning("no itemhandler registered for itemId:" + item.getItemId());
      }
      else
      {
        handler.useItem(pet, item);
      }
    }
  }

  /**
 
View Full Code Here

Examples of com.l2jfrozen.gameserver.handler.IItemHandler.useItem()

          if (Config.DEBUG)
            _log.warning("No item handler registered for item ID " + itemId + ".");
        }
        else
        {
          handler.useItem(activeChar, item);
        }
      }
    }
    // }
  }
View Full Code Here

Examples of com.l2jfrozen.gameserver.handler.IItemHandler.useItem()

          {
            _log.warning("No item handler registered for Herb - item ID " + herb.getItemId() + ".");
          }
          else
          {
            handler.useItem(this, herb);

            if(_herbstask >= 100)
            {
              _herbstask -= 100;
            }
View Full Code Here

Examples of com.l2jfrozen.gameserver.handler.IItemHandler.useItem()

    {
      IItemHandler handler = ItemHandler.getInstance().getItemHandler(target.getItemId());
      if (handler == null)
        _log.fine("No item handler registered for item ID " + target.getItemId() + ".");
      else
        handler.useItem(this, target);
      ItemTable.getInstance().destroyItem("Consume", target, this, null);
      handler = null;
    }
    // Cursed Weapons are not distributed
    else if (CursedWeaponsManager.getInstance().isCursed(target.getItemId()))
View Full Code Here

Examples of com.l2jfrozen.gameserver.handler.IItemHandler.useItem()

            {
              handler = ItemHandler.getInstance().getItemHandler(itemId);

              if(handler != null)
              {
                handler.useItem(this, item);
              }
            }
          }
          else
          {
View Full Code Here

Examples of com.l2jfrozen.gameserver.handler.IItemHandler.useItem()

            {
              handler = ItemHandler.getInstance().getItemHandler(itemId);

              if(handler != null)
              {
                handler.useItem(this, item);
              }
            }
          }
        }
View Full Code Here

Examples of com.l2jfrozen.gameserver.handler.IItemHandler.useItem()

            {
              handler = ItemHandler.getInstance().getItemHandler(itemId);

              if(handler != null)
              {
                handler.useItem(this, item);
              }
            }
          }
          else
          {
View Full Code Here

Examples of com.l2jfrozen.gameserver.handler.IItemHandler.useItem()

            {
              handler = ItemHandler.getInstance().getItemHandler(itemId);

              if(handler != null)
              {
                handler.useItem(this, item);
              }
            }
          }
        }
      }
View Full Code Here

Examples of l2p.gameserver.handler.IItemHandler.useItem()

        return;
      }
      IItemHandler handler = ItemHandler.getInstance().getItemHandler(itemId);
      if(handler != null)
      {
        handler.useItem(activeChar, item, isCtrlPressed);
      }
    }
  }
}
View Full Code Here

Examples of l2p.gameserver.handler.IItemHandler.useItem()

    {
      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
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.