Package com.l2jfrozen.gameserver.model.actor.instance

Examples of com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance.sendPacket()


    if((activeChar.getClanPrivileges() & L2Clan.CP_CL_REGISTER_CREST) == L2Clan.CP_CL_REGISTER_CREST)
    {
      if(clan.getLevel() < 3)
      {
        activeChar.sendPacket(new SystemMessage(SystemMessageId.CLAN_LVL_3_NEEDED_TO_SET_CREST));
        return;
      }

      CrestCache crestCache = CrestCache.getInstance();
View Full Code Here


   
    int count = _count;
   
    if (activeChar.getPrivateStoreType() != 0)
    {
      activeChar.sendPacket(new SystemMessage(SystemMessageId.CANNOT_TRADE_DISCARD_DROP_ITEM_WHILE_IN_SHOPMODE));
      return;
    }
   
    L2ItemInstance itemToRemove = activeChar.getInventory().getItemByObjectId(_objectId);
   
View Full Code Here

    // if we cant find requested item, its actualy a cheat!
    if (itemToRemove == null)
      return;
    if (itemToRemove.fireEvent("DESTROY", (Object[]) null) != null)
    {
      activeChar.sendPacket(new SystemMessage(SystemMessageId.CANNOT_DISCARD_THIS_ITEM));
      return;
    }
   
    // Cannot discard item that the skill is consumming
    if (activeChar.isCastingNow())
View Full Code Here

    // Cannot discard item that the skill is consumming
    if (activeChar.isCastingNow())
    {
      if (activeChar.getCurrentSkill() != null && activeChar.getCurrentSkill().getSkill().getItemConsumeId() == itemToRemove.getItemId())
      {
        activeChar.sendPacket(new SystemMessage(SystemMessageId.CANNOT_DISCARD_THIS_ITEM));
        return;
      }
    }
   
    int itemId = itemToRemove.getItemId();
View Full Code Here

   
    int itemId = itemToRemove.getItemId();
   
    if (itemToRemove.isWear() || !itemToRemove.isDestroyable() || CursedWeaponsManager.getInstance().isCursed(itemId))
    {
      activeChar.sendPacket(new SystemMessage(SystemMessageId.CANNOT_DISCARD_THIS_ITEM));
      return;
    }
   
    if (!itemToRemove.isStackable() && count > 1)
    {
View Full Code Here

      {
        activeChar.checkSSMatch(null, element);
        iu.addModifiedItem(element);
      }
     
      activeChar.sendPacket(iu);
      activeChar.broadcastUserInfo();
    }
   
    if (L2PetDataTable.isPetItem(itemId))
    {
View Full Code Here

      {
        iu.addModifiedItem(removedItem);
      }
     
      // client.getConnection().sendPacket(iu);
      activeChar.sendPacket(iu);
    }
    else
    {
      sendPacket(new ItemList(activeChar, true));
    }
View Full Code Here

      sendPacket(new ItemList(activeChar, true));
    }
   
    StatusUpdate su = new StatusUpdate(activeChar.getObjectId());
    su.addAttribute(StatusUpdate.CUR_LOAD, activeChar.getCurrentLoad());
    activeChar.sendPacket(su);
   
    // L2World world = L2World.getInstance();
    // world.removeObject(removedItem);
  }
 
View Full Code Here

   
    // Get the level of the used skill
    int level = activeChar.getSkillLevel(_magicId);
    if (level <= 0)
    {
      activeChar.sendPacket(ActionFailed.STATIC_PACKET);
      return;
    }

    if(activeChar.isOutOfControl())
    {
View Full Code Here

      return;
    }

    if(activeChar.isOutOfControl())
    {
      activeChar.sendPacket(ActionFailed.STATIC_PACKET);
      return;
    }

    // Get the L2Skill template corresponding to the skillID received from the client
    L2Skill skill = SkillTable.getInstance().getInfo(_magicId, level);
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.