Esempio n. 1
0
    private void UpdateWallet()
    {
        switch (Type)
        {
        case CurrencyType.Meso:
            Session.Send(MesosPacket.UpdateMesos(Amount));
            break;

        case CurrencyType.Meret:
        case CurrencyType.GameMeret:
        case CurrencyType.EventMeret:
            Session.Send(MeretsPacket.UpdateMerets(Session.Player.Account));
            break;

        case CurrencyType.ValorToken:
        case CurrencyType.Treva:
        case CurrencyType.Rue:
        case CurrencyType.HaviFruit:
        case CurrencyType.MesoToken:
            Session.Send(WalletPacket.UpdateWallet(Type, Amount));
            break;

        case CurrencyType.BankMesos:
            Session.Send(StorageInventoryPacket.UpdateMesos(Amount));
            break;
        }
    }
Esempio n. 2
0
 public void LoadBank(GameSession session)
 {
     session.Send(StorageInventoryPacket.Update());
     session.Send(StorageInventoryPacket.Expand(ExtraSize));
     session.Send(StorageInventoryPacket.ExpandAnim());
     session.Send(StorageInventoryPacket.UpdateMesos(Mesos.Amount));
     LoadItems(session);
 }