Package lineage2.gameserver.model

Examples of lineage2.gameserver.model.GameObject.sendPacket()


  {
    Player player = st.getPlayer();
    int wave = Integer.parseInt(player.getVar("wave"));
    if(npc.getNpcId() == Death_wound)
    {
      player.sendPacket(new ExShowScreenMessage(NpcString.AGH_HUMANS_HA_IT_DOES_NOT_MATTER_YOUR_WORLD_WILL_END_ANYWAYS, 10000, ScreenMessageAlign.MIDDLE_CENTER, true));
      st.startQuestTimer("secondStandCompleted", 1000);
      return null;
    }

    if(checkWave(player, npc, wave, st))
View Full Code Here


    {
      return;
    }
    if (activeChar.isActionsDisabled())
    {
      activeChar.sendPacket(new ExVariationCancelResult(0));
      return;
    }
    if (activeChar.isInStoreMode())
    {
      activeChar.sendPacket(new ExVariationCancelResult(0));
View Full Code Here

      activeChar.sendPacket(new ExVariationCancelResult(0));
      return;
    }
    if (activeChar.isInStoreMode())
    {
      activeChar.sendPacket(new ExVariationCancelResult(0));
      return;
    }
    if (activeChar.isInTrade())
    {
      activeChar.sendPacket(new ExVariationCancelResult(0));
View Full Code Here

      activeChar.sendPacket(new ExVariationCancelResult(0));
      return;
    }
    if (activeChar.isInTrade())
    {
      activeChar.sendPacket(new ExVariationCancelResult(0));
      return;
    }
    ItemInstance targetItem = activeChar.getInventory().getItemByObjectId(_targetItemObjId);
    if ((targetItem == null) || !targetItem.isAugmented())
    {
View Full Code Here

      return;
    }
    ItemInstance targetItem = activeChar.getInventory().getItemByObjectId(_targetItemObjId);
    if ((targetItem == null) || !targetItem.isAugmented())
    {
      activeChar.sendPacket(new ExVariationCancelResult(0), Msg.AUGMENTATION_REMOVAL_CAN_ONLY_BE_DONE_ON_AN_AUGMENTED_ITEM);
      return;
    }
    int price = getRemovalPrice(targetItem.getTemplate());
    if (price < 0)
    {
View Full Code Here

      return;
    }
    int price = getRemovalPrice(targetItem.getTemplate());
    if (price < 0)
    {
      activeChar.sendPacket(new ExVariationCancelResult(0));
    }
    if (!activeChar.reduceAdena(price, true))
    {
      activeChar.sendPacket(new ExVariationCancelResult(0), Msg.YOU_DO_NOT_HAVE_ENOUGH_ADENA);
      return;
View Full Code Here

    {
      activeChar.sendPacket(new ExVariationCancelResult(0));
    }
    if (!activeChar.reduceAdena(price, true))
    {
      activeChar.sendPacket(new ExVariationCancelResult(0), Msg.YOU_DO_NOT_HAVE_ENOUGH_ADENA);
      return;
    }
    boolean equipped = targetItem.isEquipped();
    if (equipped)
    {
View Full Code Here

      activeChar.getInventory().equipItem(targetItem);
    }
    InventoryUpdate iu = new InventoryUpdate().addModifiedItem(targetItem);
    SystemMessage sm = new SystemMessage(SystemMessage.AUGMENTATION_HAS_BEEN_SUCCESSFULLY_REMOVED_FROM_YOUR_S1);
    sm.addItemName(targetItem.getItemId());
    activeChar.sendPacket(new ExVariationCancelResult(1), iu, sm);
    for (ShortCut sc : activeChar.getAllShortCuts())
    {
      if ((sc.getId() == targetItem.getObjectId()) && (sc.getType() == ShortCut.TYPE_ITEM))
      {
        activeChar.sendPacket(new ShortCutRegister(activeChar, sc));
View Full Code Here

    activeChar.sendPacket(new ExVariationCancelResult(1), iu, sm);
    for (ShortCut sc : activeChar.getAllShortCuts())
    {
      if ((sc.getId() == targetItem.getObjectId()) && (sc.getType() == ShortCut.TYPE_ITEM))
      {
        activeChar.sendPacket(new ShortCutRegister(activeChar, sc));
      }
    }
    activeChar.sendChanges();
  }
 
View Full Code Here

    Player activeChar = getClient().getActiveChar();
    if (activeChar == null)
    {
      return;
    }
    activeChar.sendPacket(new ExBR_ProductList());
  }
}
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.