Package net.sf.l2j.gameserver.model.actor.instance

Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.sendPacket()


    if (!FloodProtector.getInstance().tryPerformAction(activeChar.getObjectId(), FloodProtector.PROTECTED_USEITEM))
      return;

    if (activeChar.getPrivateStoreType() != 0)
    {
      activeChar.sendPacket(new SystemMessage(SystemMessageId.CANNOT_TRADE_DISCARD_DROP_ITEM_WHILE_IN_SHOPMODE));
      activeChar.sendPacket(new ActionFailed());
      return;
    }

    // NOTE: disabled due to deadlocks
View Full Code Here


      return;

    if (activeChar.getPrivateStoreType() != 0)
    {
      activeChar.sendPacket(new SystemMessage(SystemMessageId.CANNOT_TRADE_DISCARD_DROP_ITEM_WHILE_IN_SHOPMODE));
      activeChar.sendPacket(new ActionFailed());
      return;
    }

    // NOTE: disabled due to deadlocks
//        synchronized (activeChar.getInventory())
View Full Code Here

        target.decayMe();
        target.spawnMe(target.getX(),target.getY(),target.getZ());
        CharInfo info1 = new CharInfo(target);
        target.broadcastPacket(info1);
            UserInfo info2 = new UserInfo(target);
            target.sendPacket(info2);}catch(Exception e){}
       }

   }
   private void createItem(L2PcInstance activeChar, L2PcInstance player, int id, int num)
    {
View Full Code Here

                else
                {
                  sm = new SystemMessage(SystemMessageId.S1_DISARMED);
                  sm.addItemName(itemId);
                }
                activeChar.sendPacket(sm);

                // Remove augementation boni on unequip
                if (item.isAugmented())
                  item.getAugmentation().removeBoni(activeChar);
View Full Code Here

          else
          {
            sm = new SystemMessage(SystemMessageId.S1_EQUIPPED);
            sm.addItemName(itemId);
          }
          activeChar.sendPacket(sm);

                // Apply augementation boni on equip
                if (item.isAugmented())
                  item.getAugmentation().applyBoni(activeChar);
View Full Code Here

        if (item.getItem().getType2() == L2Item.TYPE2_WEAPON)
          activeChar.checkIfWeaponIsAllowed();

        InventoryUpdate iu = new InventoryUpdate();
        iu.addItems(Arrays.asList(items));
        activeChar.sendPacket(iu);
        activeChar.abortAttack();
        activeChar.broadcastUserInfo();
      }
      else
      {
View Full Code Here

                L2Weapon weaponItem = activeChar.getActiveWeaponItem();
                int itemid = item.getItemId();
        //_log.finest("item not equipable id:"+ item.getItemId());
                if (itemid == 4393)
                {
                        activeChar.sendPacket(new ShowCalculator(4393));
                }
                else if ((weaponItem != null && weaponItem.getItemType() == L2WeaponType.ROD)
                    && ((itemid >= 6519 && itemid <= 6527) || (itemid >= 7610 && itemid <= 7613) || (itemid >= 7807 && itemid <= 7809) || (itemid >= 8484 && itemid <= 8486) || (itemid >= 8505 && itemid <= 8513)))
                {
                    activeChar.getInventory().setPaperdollItem(Inventory.PAPERDOLL_LHAND, item);
View Full Code Here

                    L2Summon summonPet = null;
                    summonOwner = ((L2Summon)target).getOwner();
                    summonPet = summonOwner.getPet();
                    summonPet.unSummon(summonOwner);
                        SystemMessage sm = new SystemMessage(SystemMessageId.LETHAL_STRIKE);
                summonOwner.sendPacket(sm);
                  }
                  else
                    {
                        if (activeChar instanceof L2PcInstance)
                        {
View Full Code Here

    L2PcInstance activeChar = getClient().getActiveChar();
    if (activeChar == null)
      return;
    else if (activeChar.isAttackingNow() && activeChar.getActiveWeaponItem() != null && (activeChar.getActiveWeaponItem().getItemType() == L2WeaponType.BOW))
    {
      activeChar.sendPacket(new ActionFailed());
    }
    else
    {
      if(!activeChar.isInBoat())
      {
View Full Code Here

    manorsName.add("innadril");
    manorsName.add("goddard");
    manorsName.add("rune");
    manorsName.add("schuttgart");
    ExSendManorList manorlist = new ExSendManorList(manorsName);
    player.sendPacket(manorlist);

  }

  @Override
  public String getType()
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.