Example #1
0
            public static void OnPurchaseWithGoldResponse()
            {
                var  pkt     = ConnectAPI.GetPurchaseWithGoldResponse();
                long balance = NetCache.Get().GetNetObject <NetCache.NetCacheArcaneDustBalance>().Balance;
                long used    = pkt.GoldUsed;

                HSMPClient.Get().SendDebugMessage("OnPurchaseWithGoldResponse: " + balance + " - " + used);
                HSMPClient.Get().Send(new MsgCurrencyBalance(MsgCurrencyBalance.CurrencyType.GOLD, balance - used));
            }