Package com.l2jfrozen.gameserver.network.serverpackets

Examples of com.l2jfrozen.gameserver.network.serverpackets.ItemList


    {
      L2HennaInstance[] henna = HennaTreeTable.getInstance().getAvailableHenna(player.getClassId());
      HennaEquipList hel = new HennaEquipList(player, henna);
      player.sendPacket(hel);
     
      player.sendPacket(new ItemList(player, false));
    }
    else if(command.equals("RemoveList"))
    {
      showRemoveChat(player);
    }
    else if(command.startsWith("Remove "))
    {
      if (!player.getClient().getFloodProtectors().getTransaction().tryPerformAction("HennaRemove"))
        return;

      int slot = Integer.parseInt(command.substring(7));
      player.removeHenna(slot);
     
      player.sendPacket(new ItemList(player, false));

    }
    else
    {
      super.onBypassFeedback(player, command);
View Full Code Here


    {
      player.sendPacket(playerIU);
    }
    else
    {
      player.sendPacket(new ItemList(player, false));
    }

    // Update current load status on player
    StatusUpdate su = new StatusUpdate(player.getObjectId());
    su.addAttribute(StatusUpdate.CUR_LOAD, player.getCurrentLoad());
View Full Code Here

        activeChar.sendPacket(new UserInfo(activeChar));
      }
      else
      {
        // because of complicated jewels problem i'm forced to resend the item list :(
        activeChar.sendPacket(new ItemList(activeChar, true));
        activeChar.sendPacket(new UserInfo(activeChar));
      }
    }
    else
    {
      L2Weapon weaponItem = activeChar.getActiveWeaponItem();
      int itemid = item.getItemId();
      // _log.log(Level.WARNING, "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);
        activeChar.broadcastUserInfo();
        // Send a Server->Client packet ItemList to this L2PcINstance to update left hand equipement
        ItemList il = new ItemList(activeChar, false);
        sendPacket(il);
        return;
      }
      else
      {
View Full Code Here

      player.getInventory().destroyItemByItemId("", CTF._FLAG_IN_HAND_ITEM_ID, 1, player, null);
      InventoryUpdate iu = new InventoryUpdate();
      for(L2ItemInstance element : unequiped)
        iu.addModifiedItem(element);
      player.sendPacket(iu);
      player.sendPacket(new ItemList(player, true)); // Get your weapon back now ...
      player.abortAttack();
      player.broadcastUserInfo();
    }
    else
    {
      player.getInventory().destroyItemByItemId("", CTF._FLAG_IN_HAND_ITEM_ID, 1, player, null);
      player.sendPacket(new ItemList(player, true)); // Get your weapon back now ...
      player.abortAttack();
      player.broadcastUserInfo();
    }
  }
View Full Code Here

        smsg.addItemName(item.getItemId());
        getPlayer().sendPacket(smsg);
        smsg = null;
      }
    }
    getPlayer().sendPacket(new ItemList(getPlayer(), false));

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

      _player.sendPacket(iu);
      iu = null;
    }
    else
    {
      _player.sendPacket(new ItemList(_player, false));
    }

    // Refresh player stats
    _player.broadcastUserInfo();
//    _player.setCombatFlagEquipped(true);
View Full Code Here

    sm.addItemName(itemToCreateId);
    sm.addNumber(amount);
    activeChar.sendPacket(sm);
    sm = null;

    ItemList playerUI = new ItemList(activeChar, false);
    activeChar.sendPacket(playerUI);

    playerUI = null;
    activeChar = null;
  }
View Full Code Here

    sm.addItemName(itemToCreateId);
    sm.addNumber(amount);
    activeChar.sendPacket(sm);
    sm = null;

    ItemList playerUI = new ItemList(activeChar, false);
    activeChar.sendPacket(playerUI);

    playerUI = null;
    activeChar = null;
  }
View Full Code Here

      if (activeChar.getInventory().getInventoryItemCount(57, 0) >= Config.BANKING_SYSTEM_ADENA)
      {
        activeChar.getInventory().reduceAdena("Goldbar", Config.BANKING_SYSTEM_ADENA, activeChar, null);
        activeChar.getInventory().addItem("Goldbar", 3470, Config.BANKING_SYSTEM_GOLDBARS, activeChar, null);
        activeChar.getInventory().updateDatabase();
        activeChar.sendPacket(new ItemList(activeChar, true));
        activeChar.sendMessage("Thank you, now you have " + Config.BANKING_SYSTEM_GOLDBARS + " Goldbar(s), and " + Config.BANKING_SYSTEM_ADENA + " less adena.");
      }
      else
      {
        activeChar.sendMessage("You do not have enough Adena to convert to Goldbar(s), you need " + Config.BANKING_SYSTEM_ADENA + " Adena.");
      }
    }
    else if (command.equalsIgnoreCase("withdraw"))
    {
      // If player hasn't enough space for adena
      long a = activeChar.getInventory().getInventoryItemCount(57, 0);
      long b = Config.BANKING_SYSTEM_ADENA;
      if (a + b > Integer.MAX_VALUE)
      {
        activeChar.sendMessage("You do not have enough space for all the adena in inventory!");
        return false;
      }
     
      if (activeChar.getInventory().getInventoryItemCount(3470, 0) >= Config.BANKING_SYSTEM_GOLDBARS)
      {
        activeChar.getInventory().destroyItemByItemId("Adena", 3470, Config.BANKING_SYSTEM_GOLDBARS, activeChar, null);
        activeChar.getInventory().addAdena("Adena", Config.BANKING_SYSTEM_ADENA, activeChar, null);
        activeChar.getInventory().updateDatabase();
        activeChar.sendPacket(new ItemList(activeChar, true));
        activeChar.sendMessage("Thank you, now you have " + Config.BANKING_SYSTEM_ADENA + " Adena, and " + Config.BANKING_SYSTEM_GOLDBARS + " less Goldbar(s).");
      }
      else
      {
        activeChar.sendMessage("You do not have any Goldbars to turn into " + Config.BANKING_SYSTEM_ADENA + " Adena.");
View Full Code Here

      activeChar.destroyItemByItemId("Noble", 9212, 1, activeChar, true);
      activeChar.destroyItemByItemId("Noble", 9213, 1, activeChar, true);
      activeChar.getInventory().addItem("NoblesseTiara", 7694, 1, activeChar, null);
      activeChar.getInventory().updateDatabase();
      updateDatabase(activeChar, true);
      activeChar.sendPacket(new ItemList(activeChar, true));
      activeChar.sendMessage("Congratulations! You are now a noblesse.");
      activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 16));
    }
    return true;
  }
View Full Code Here

TOP

Related Classes of com.l2jfrozen.gameserver.network.serverpackets.ItemList

Copyright © 2018 www.massapicom. 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.