Package l2p.gameserver.model

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


      {
        taxRate = castle.getTaxRate();
      }
    }
    activeChar.sendPacket(/*new ExRefundList(activeChar), */new ExBuySellList(TradeController.getInstance().getBuyList(_listId), activeChar, taxRate).done());
    activeChar.updateStats();
  }
}
View Full Code Here


      {
        return;
      }
      L2ItemInstance ri = player.getInventory().destroyItem(item, 1, true);
      player.addSkill(skill, true);
      player.updateStats();
      player.sendChanges();
      player.sendPacket(SystemMessage.removeItems(ri.getItemId(), 1), new SkillList(player));
      // Анимация изучения книги над головой чара (на самом деле, для каждой книги своя анимация, но они одинаковые)
      player.broadcastPacket(new MagicSkillUse(player, player, 2790, 1, 1, 0));
    }
View Full Code Here

    {
      castle.addToTreasury(tax, true, false);
      Log.add(castle.getName() + "|" + tax + "|BuyItem", "treasury");
    }
    sendPacket(new ExBuySellList(list, activeChar, taxRate).done());
    activeChar.updateStats();
  }

  private static final TradeItem getItemByItemId(int itemId, NpcTradeList list)
  {
    for(TradeItem ti : list.getItems())
View Full Code Here

      {
        taxRate = castle.getTaxRate();
      }
    }
    activeChar.sendPacket(new ExBuySellList(TradeController.getInstance().getBuyList(_listId), activeChar, taxRate).done());
    activeChar.updateStats();
  }
}
View Full Code Here

        continue;
      }
      warehouse.addItem(inventory.dropItem(found, _items.get(itemObjectId), false), null);
    }
    activeChar.reduceAdena(fee, true);
    activeChar.updateStats();
    // Delete destination L2Player used for freight
    activeChar.sendPacket(Msg.THE_TRANSACTION_IS_COMPLETE);
  }
}
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.