Package l2p.gameserver.handler

Examples of l2p.gameserver.handler.IItemHandler


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


    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

        if(item == null)
        {
          _activeSoulShots.remove(e);
          continue;
        }
        IItemHandler handler = ItemHandler.getInstance().getItemHandler(e);
        if(handler == null)
        {
          continue;
        }
        handler.useItem(this, item, false);
      }
    }
  }
View Full Code Here

TOP

Related Classes of l2p.gameserver.handler.IItemHandler

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.