Package l2p.gameserver.serverpackets

Examples of l2p.gameserver.serverpackets.ItemList


      return;
    }
    L2ItemInstance createditem = ItemTable.getInstance().createItem(item);
    player.getInventory().addItem(createditem);
    Log.LogItem(player, Log.GetItem, createditem);
    player.sendPacket(new ItemList(player, true), SystemMessage.obtainItems(item, 1, 0));
  }
View Full Code Here


    }
    if(transferred)
    {
      sendItemList();
      broadcastPetInfo();
      owner.sendPacket(new ItemList(owner, false));
    }
  }
View Full Code Here

    {
      player.getInventory().destroyItem(pay, Config.SERVICES_EXCHANGE_BABY_PET_PRICE, true);
      L2ItemInstance control = player.getInventory().getItemByObjectId(player.getPet().getControlItemObjId());
      control.setItemId(L2Pet.IMPROVED_BABY_COUGAR.getControlItemId());
      control.updateDatabase(true, true);
      player.sendPacket(new ItemList(player, false));
      player.getPet().unSummon();
      show("Пет изменен.", player);
    }
    else if(Config.SERVICES_EXCHANGE_BABY_PET_ITEM == 57)
    {
View Full Code Here

    {
      player.getInventory().destroyItem(pay, Config.SERVICES_EXCHANGE_BABY_PET_PRICE, true);
      L2ItemInstance control = player.getInventory().getItemByObjectId(player.getPet().getControlItemObjId());
      control.setItemId(L2Pet.IMPROVED_BABY_BUFFALO.getControlItemId());
      control.updateDatabase(true, true);
      player.sendPacket(new ItemList(player, false));
      player.getPet().unSummon();
      show("Пет изменен.", player);
    }
    else if(Config.SERVICES_EXCHANGE_BABY_PET_ITEM == 57)
    {
View Full Code Here

    {
      player.getInventory().destroyItem(pay, Config.SERVICES_EXCHANGE_BABY_PET_PRICE, true);
      L2ItemInstance control = player.getInventory().getItemByObjectId(player.getPet().getControlItemObjId());
      control.setItemId(L2Pet.IMPROVED_BABY_KOOKABURRA.getControlItemId());
      control.updateDatabase(true, true);
      player.sendPacket(new ItemList(player, false));
      player.getPet().unSummon();
      show("Пет изменен.", player);
    }
    else if(Config.SERVICES_EXCHANGE_BABY_PET_ITEM == 57)
    {
View Full Code Here

      return;
    }
    L2ItemInstance control = player.getInventory().getItemByObjectId(player.getPet().getControlItemObjId());
    control.setItemId(GREAT_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

              itemInstance = ItemTable.getInstance().createItem(id);
              activeChar.getInventory().addItem(itemInstance);
              Log.LogItem(activeChar, Log.Adm_AddItem, itemInstance);
            }
          }
          activeChar.sendPacket(new ItemList(activeChar, true), SystemMessage.obtainItems(id, count, 0));
          break;
      }
      return true;
    }
    return false;
View Full Code Here

        activeChar.getInventory().addItem(createditem);
        Log.LogItem(activeChar, Log.Adm_AddItem, createditem);
      }
    }
    if (activeChar != player) player.sendMessage("Персонажу, " + activeChar.getName() + " было успешно добавленно " + num + " " + createditem.getName()+".")
    activeChar.sendPacket(new ItemList(activeChar, true), SystemMessage.obtainItems(id, num, 0));
  }
View Full Code Here

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

      return;
    }
    L2ItemInstance control = player.getInventory().getItemByObjectId(player.getPet().getControlItemObjId());
    control.setItemId(fwd ? WHITE_FENRIR_NECKLACE : FENRIR_NECKLACE);
    control.updateDatabase(true, true);
    player.sendPacket(new ItemList(player, false));
    player.getPet().unSummon();
    show(Files.read("data/scripts/services/petevolve/end_msg2_fenrir.htm", player), player, npc);
  }
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.