Package lineage2.gameserver.model

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


      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

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

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

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

    }
    if (sellList.isEmpty())
    {
      TradeHelper.cancelStore(seller);
    }
    seller.sendChanges();
    buyer.sendChanges();
    buyer.sendActionFailed();
  }
}
View Full Code Here

    if (rate)
    {
      count = (long) (count * getRateQuestsReward());
    }
    ItemFunctions.addItem(player, itemId, count, true);
    player.sendChanges();
  }
 
  /**
   * Method giveItems.
   * @param itemId int
View Full Code Here

        item.setAttributeElement(element, power);
      }
      player.getInventory().addItem(item);
    }
    player.sendPacket(SystemMessage2.obtainItems(template.getItemId(), count, 0));
    player.sendChanges();
  }
 
  /**
   * Method dropItem.
   * @param npc NpcInstance
View Full Code Here

    }
    finally
    {
      activeChar.getInventory().writeUnlock();
    }
    activeChar.sendChanges();
  }
}
View Full Code Here

      activeChar.sendActionFailed();
      return;
    }
    activeChar.sendPacket(Msg.THE_ITEM_HAS_BEEN_SUCCESSFULLY_CRYSTALLIZED);
    ItemFunctions.addItem(activeChar, crystalId, crystalAmount, true);
    activeChar.sendChanges();
  }
}
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.