Package l2p.gameserver.serverpackets

Examples of l2p.gameserver.serverpackets.ItemList


      return;
    }
    L2ItemInstance control = player.getInventory().getItemByObjectId(player.getPet().getControlItemObjId());
    control.setItemId(fwd ? WHITE_FENRIR_NECKLACE : WHITE_WOLF_NECKLACE);
    control.updateDatabase(true, true);
    player.sendPacket(new ItemList(player, false));
    player.getPet().unSummon();
    show(Files.read("data/scripts/services/petevolve/yes_wolf.htm", player), player, npc);
  }
View Full Code Here


      return;
    }
    L2ItemInstance control = player.getInventory().getItemByObjectId(player.getPet().getControlItemObjId());
    control.setItemId(fwd ? RED_WS_ITEM : WIND_STRIDER_ITEM);
    control.updateDatabase(true, true);
    player.sendPacket(new ItemList(player, false));
    player.getPet().unSummon();
    show(Files.read("data/scripts/services/petevolve/end_msg_strider.htm", player), player, npc);
  }
View Full Code Here

      return;
    }
    L2ItemInstance control = player.getInventory().getItemByObjectId(player.getPet().getControlItemObjId());
    control.setItemId(fwd ? RED_SS_ITEM : STAR_STRIDER_ITEM);
    control.updateDatabase(true, true);
    player.sendPacket(new ItemList(player, false));
    player.getPet().unSummon();
    show(Files.read("data/scripts/services/petevolve/end_msg_strider.htm", player), player, npc);
  }
View Full Code Here

      return;
    }
    L2ItemInstance control = player.getInventory().getItemByObjectId(player.getPet().getControlItemObjId());
    control.setItemId(fwd ? RED_TW_ITEM : TWILING_STRIDER_ITEM);
    control.updateDatabase(true, true);
    player.sendPacket(new ItemList(player, false));
    player.getPet().unSummon();
    show(Files.read("data/scripts/services/petevolve/end_msg_strider.htm", player), player, npc);
  }
View Full Code Here

        {
          return "30747_13a.htm";
        }
        dragonflute.setItemId(Dragon_Bugle_of_Wind + dragonflute.getItemId() - Dragonflute_of_Wind);
        dragonflute.updateDatabase(true, true);
        st.getPlayer().sendPacket(new ItemList(st.getPlayer(), false));
        st.playSound(SOUND_FINISH);
        st.exitCurrentQuest(true);
        return "30747_13.htm";
      }
    }
View Full Code Here

        owner.getInventory().destroyItem(this, getCount(), true);
        if(isTemporalItem())
        {
          owner.sendPacket(new SystemMessage(SystemMessage.THE_LIMITED_TIME_ITEM_HAS_BEEN_DELETED).addItemName(_itemTemplate.getItemId()));
        }
        owner.sendPacket(new ItemList(owner, false)); // перестраховка
        owner.broadcastUserInfo(true);
        return true;
      }
    }
    return false;
View Full Code Here

    L2Player activeChar = getClient().getActiveChar();
    if(activeChar == null || !activeChar.getPlayerAccess().UseInventory || activeChar.isInventoryDisabled())
    {
      return;
    }
    sendPacket(new ItemList(activeChar, true));
  }
View Full Code Here

         * TODO SignsSky в Kamael заменен пакетом SSQInfo
         * if(SevenSigns.getInstance().isSealValidationPeriod())
         *  activeChar.sendPacket(new SignsSky());
         */
    activeChar.getMacroses().sendUpdate();
    sendPacket(new HennaInfo(activeChar), new ItemList(activeChar, false), new ShortCutInit(activeChar), new SkillList(activeChar), Msg.WELCOME);
    Announcements.getInstance().showAnnouncements(activeChar);
    //add char to online characters
    activeChar.setOnlineStatus(true);
    // Вызов всех хэндлеров, определенных в скриптах
    if(first)
View Full Code Here

      L2ItemInstance weapon = st.getPlayer().getActiveWeaponInstance();
      if(npcId == 27003 && st.getQuestItemsCount(WAND_SPIRITBOUND1) == 0)
      {
        st.getPlayer().getInventory().destroyItem(weapon, 1, false);
        st.giveItems(WAND_SPIRITBOUND1, 1);
        st.getPlayer().sendPacket(CACHE_SYSMSG_GALLINS_OAK_WAND, new ItemList(st.getPlayer(), false));
        long Collect = st.getQuestItemsCount(WAND_SPIRITBOUND1) + st.getQuestItemsCount(WAND_SPIRITBOUND2) + st.getQuestItemsCount(WAND_SPIRITBOUND3);
        if(Collect == 3)
        {
          st.set("cond", "3");
          st.playSound(SOUND_MIDDLE);
        }
        else
        {
          st.playSound(SOUND_ITEMGET);
        }
      }
      else if(npcId == 27004 && st.getQuestItemsCount(WAND_SPIRITBOUND2) == 0)
      {
        st.getPlayer().getInventory().destroyItem(weapon, 1, false);
        st.giveItems(WAND_SPIRITBOUND2, 1);
        st.getPlayer().sendPacket(CACHE_SYSMSG_GALLINS_OAK_WAND, new ItemList(st.getPlayer(), false));
        long Collect = st.getQuestItemsCount(WAND_SPIRITBOUND1) + st.getQuestItemsCount(WAND_SPIRITBOUND2) + st.getQuestItemsCount(WAND_SPIRITBOUND3);
        if(Collect == 3)
        {
          st.set("cond", "3");
          st.playSound(SOUND_MIDDLE);
        }
        else
        {
          st.playSound(SOUND_ITEMGET);
        }
      }
      else if(npcId == 27005 && st.getQuestItemsCount(WAND_SPIRITBOUND3) == 0)
      {
        st.getPlayer().getInventory().destroyItem(weapon, 1, false);
        st.giveItems(WAND_SPIRITBOUND3, 1);
        st.getPlayer().sendPacket(CACHE_SYSMSG_GALLINS_OAK_WAND, new ItemList(st.getPlayer(), false));
        long Collect = st.getQuestItemsCount(WAND_SPIRITBOUND1) + st.getQuestItemsCount(WAND_SPIRITBOUND2) + st.getQuestItemsCount(WAND_SPIRITBOUND3);
        if(Collect == 3)
        {
          st.set("cond", "3");
          st.playSound(SOUND_MIDDLE);
View Full Code Here

        activeChar.refreshExpertisePenalty();
        if(item.getItem().getType2() == L2Item.TYPE2_ACCESSORY || item.getItem().isTalisman())
        {
          activeChar.sendUserInfo(true);
          // TODO убрать, починив предварительно отображение бижы
          activeChar.sendPacket(new ItemList(activeChar, false));
        }
        else
        {
          activeChar.broadcastUserInfo(true);
        }
View Full Code Here

TOP

Related Classes of l2p.gameserver.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.