Examples of sendChanges()


Examples of l2p.gameserver.model.L2Player.sendChanges()

      RequestCrystallizeItem.crystallize(activeChar, itemToRemove);
      return;
    }
    L2ItemInstance removedItem = activeChar.getInventory().destroyItem(_objectId, count, true);
    Log.LogItem(activeChar, Log.DeleteItem, removedItem);
    activeChar.sendChanges();
    activeChar.sendPacket(SystemMessage.removeItems(removedItem.getItemId(), count));
  }
}
View Full Code Here

Examples of l2p.gameserver.model.L2Player.sendChanges()

    }
    activeChar.reduceAdena(UNENCHANT_PRICE, true);
    itemToUnnchant.setAttributeElement(L2Item.ATTRIBUTE_NONE, 0, true);
    activeChar.getInventory().refreshListeners();
    activeChar.sendPacket(new InventoryUpdate().addModifiedItem(itemToUnnchant));
    activeChar.sendChanges();
    activeChar.sendPacket(new ExShowBaseAttributeCancelWindow(activeChar, UNENCHANT_PRICE));
    Log.add(activeChar.getName() + "|Successfully unenchanted attribute|" + itemToUnnchant.getItemId(), "enchants");
    Log.LogItem(activeChar, Log.EnchantItem, itemToUnnchant);
  }
}
View Full Code Here

Examples of l2p.gameserver.model.L2Player.sendChanges()

      {
        _log.warning("Error getItem from warhouse player: " + activeChar.getName());
      }
      activeChar.getInventory().addItem(TransferItem);
    }
    activeChar.sendChanges();
  }
}
View Full Code Here

Examples of l2p.gameserver.model.L2Player.sendChanges()

    {
      activeChar.sendPacket(Msg.YOU_HAVE_FAILED_TO_ADD_ELEMENTAL_POWER);
      Log.add(activeChar.getName() + "|Failed to enchant attribute|" + itemToEnchant.getItemId() + "|+" + itemToEnchant.getAttributeElementValue() + "|" + (stone.isAttributeCrystal() ? Config.ENCHANT_ATTRIBUTE_CRYSTAL_CHANCE : Config.ENCHANT_ATTRIBUTE_STONE_CHANCE), "enchants");
    }
    activeChar.setEnchantScroll(null);
    activeChar.sendChanges();
  }
}
View Full Code Here

Examples of lineage2.gameserver.model.Player.sendChanges()

    finally
    {
      freight.writeUnlock();
      inventory.writeUnlock();
    }
    player.sendChanges();
    player.sendPacket(SystemMsg.THE_TRANSACTION_IS_COMPLETE);
  }
}
View Full Code Here

Examples of lineage2.gameserver.model.Player.sendChanges()

      if ((sc.getId() == targetItem.getObjectId()) && (sc.getType() == ShortCut.TYPE_ITEM))
      {
        activeChar.sendPacket(new ShortCutRegister(activeChar, sc));
      }
    }
    activeChar.sendChanges();
  }
 
  /**
   * Method getRemovalPrice.
   * @param item ItemTemplate
View Full Code Here

Examples of lineage2.gameserver.model.Player.sendChanges()

    finally
    {
      inventory.writeUnlock();
    }
   
    activeChar.sendChanges();
   
    if (!list1.isShowAll())
    {
      MultiSellHolder.getInstance().SeparateAndSend(list1, activeChar, castle == null ? 0 : castle.getTaxRate());
    }
View Full Code Here

Examples of lineage2.gameserver.model.Player.sendChanges()

    }
    if (needSendInfo)
    {
      player.sendSkillList();
    }
    player.sendChanges();
  }
 
  /**
   * Method onUnequip.
   * @param slot int
View Full Code Here

Examples of lineage2.gameserver.model.Player.sendChanges()

    }
    if (needSendInfo)
    {
      player.sendSkillList();
    }
    player.sendChanges();
  }
}
View Full Code Here

Examples of lineage2.gameserver.model.Player.sendChanges()

    }
    if (sellList.isEmpty())
    {
      TradeHelper.cancelStore(seller);
    }
    seller.sendChanges();
    buyer.sendChanges();
    buyer.sendActionFailed();
  }
}
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.