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

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


          L2ItemInstance crystals = activeChar.getInventory().addItem("Enchant", crystalId, count, activeChar, destroyItem);

          sm = new SystemMessage(SystemMessageId.EARNED_S2_S1_S);
          sm.addItemName(crystals.getItemId());
          sm.addNumber(count);
          activeChar.sendPacket(sm);

          if(!Config.FORCE_INVENTORY_UPDATE)
          {
            InventoryUpdate iu = new InventoryUpdate();
            if(destroyItem.getCount() == 0)
View Full Code Here


            {
              iu.addModifiedItem(destroyItem);
            }
            iu.addItem(crystals);

            activeChar.sendPacket(iu);
          }
          else
          {
            activeChar.sendPacket(new ItemList(activeChar, true));
          }
View Full Code Here

            activeChar.sendPacket(iu);
          }
          else
          {
            activeChar.sendPacket(new ItemList(activeChar, true));
          }

          StatusUpdate su = new StatusUpdate(activeChar.getObjectId());
          su.addAttribute(StatusUpdate.CUR_LOAD, activeChar.getCurrentLoad());
          activeChar.sendPacket(su);
View Full Code Here

            activeChar.sendPacket(new ItemList(activeChar, true));
          }

          StatusUpdate su = new StatusUpdate(activeChar.getObjectId());
          su.addAttribute(StatusUpdate.CUR_LOAD, activeChar.getCurrentLoad());
          activeChar.sendPacket(su);

          activeChar.broadcastUserInfo();

          L2World world = L2World.getInstance();
          world.removeObject(destroyItem);
View Full Code Here

    }
    sm = null;

    StatusUpdate su = new StatusUpdate(activeChar.getObjectId());
    su.addAttribute(StatusUpdate.CUR_LOAD, activeChar.getCurrentLoad());
    activeChar.sendPacket(su);
    su = null;

    activeChar.sendPacket(new EnchantResult(item.getEnchantLevel())); //FIXME i'm really not sure about this...
    activeChar.sendPacket(new ItemList(activeChar, false)); //TODO update only the enchanted item
    activeChar.broadcastUserInfo();
View Full Code Here

    StatusUpdate su = new StatusUpdate(activeChar.getObjectId());
    su.addAttribute(StatusUpdate.CUR_LOAD, activeChar.getCurrentLoad());
    activeChar.sendPacket(su);
    su = null;

    activeChar.sendPacket(new EnchantResult(item.getEnchantLevel())); //FIXME i'm really not sure about this...
    activeChar.sendPacket(new ItemList(activeChar, false)); //TODO update only the enchanted item
    activeChar.broadcastUserInfo();
  }

  @Override
View Full Code Here

    su.addAttribute(StatusUpdate.CUR_LOAD, activeChar.getCurrentLoad());
    activeChar.sendPacket(su);
    su = null;

    activeChar.sendPacket(new EnchantResult(item.getEnchantLevel())); //FIXME i'm really not sure about this...
    activeChar.sendPacket(new ItemList(activeChar, false)); //TODO update only the enchanted item
    activeChar.broadcastUserInfo();
  }

  @Override
  public String getType()
View Full Code Here

      return;
   
    if (player.isInFunEvent() && !player.isGM())
    {
      player.sendMessage("You cannot Logout while in registered in an Event.");
      player.sendPacket(ActionFailed.STATIC_PACKET);
      return;
    }
   
    if (LastManStanding.isActive())
    {
View Full Code Here

    if (LastManStanding.isActive())
    {
      if (LastManStanding.started && player.isInLMS())
      {
        player.sendMessage("You cannot Logout while in registered in LMS.");
        player.sendPacket(ActionFailed.STATIC_PACKET);
        return;
      }

      if(LastManStanding.players.contains(player))
      {
View Full Code Here

    }
   
    if (player.isInArenaEvent())
    {
      player.sendMessage("You cannot logout while in Arena Event");
      player.sendPacket(ActionFailed.STATIC_PACKET);
      return;
    }
   
    if (player.isAway())
    {
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.