//发送存元宝消息 public int SaveRMBToBank(string szRMB) { int Amount = int.Parse(szRMB); if (Amount == 0) { return(0); } CCharacterData pCharData = CObjectManager.Instance.getPlayerMySelf().GetCharacterData(); if (pCharData != null) { if ((pCharData.Get_RMB()) >= Amount) { byte SaveType = (byte)CGBankMoney.OPtype.SAVE_RMB; CGBankMoney msg = new CGBankMoney(); msg.SaveType = SaveType; msg.AmountRMB = Amount; NetManager.GetNetManager().SendPacket(msg); } else { CEventSystem.Instance.PushEvent(GAME_EVENT_ID.GE_INFO_INTERCOURSE, "存元宝的数目超过身上元宝的数目"); } } return(0); }