Examples of tryFeedItem()


Examples of l2p.gameserver.model.instances.L2PetInstance.tryFeedItem()

    if(pet.tryEquipItem(item, true))
    {
      return;
    }
    // manual pet feeding
    if(pet.tryFeedItem(item))
    {
      return;
    }
    L2Skill[] skills = item.getItem().getAttachedSkills();
    if(skills != null && skills.length > 0)
View Full Code Here

Examples of lineage2.gameserver.model.instances.PetInstance.tryFeedItem()

    if (activeChar.isAlikeDead() || pet.isDead() || pet.isOutOfControl())
    {
      activeChar.sendPacket(new SystemMessage(SystemMessage.S1_CANNOT_BE_USED_DUE_TO_UNSUITABLE_TERMS).addItemName(item.getItemId()));
      return;
    }
    if (pet.tryFeedItem(item))
    {
      return;
    }
    if (ArrayUtils.contains(Config.ALT_ALLOWED_PET_POTIONS, item.getItemId()))
    {
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.