Package l2p.gameserver.handler

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


    {
      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

        IItemHandler handler = ItemHandler.getInstance().getItemHandler(e);
        if(handler == null)
        {
          continue;
        }
        handler.useItem(this, item, false);
      }
    }
  }

  public boolean getChargedFishShot()
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.