MapServer.PlayerObject.MsgBox C# (CSharp) Method

MsgBox() public method

public MsgBox ( String text ) : void
text String
return void
        public void MsgBox(String text)
        {
            NetMsg.MsgNotice notice = new NetMsg.MsgNotice();
            notice.Create(null, GetGamePackKeyEx());
            byte[] buff = notice.GetMsgBoxBuff(text);
            this.SendData(buff);
        }

Usage Example

Example #1
0
 //提取元宝
 public void GetMoney(PlayerObject play)
 {
     String sAccount = play.GetBaseAttr().sAccount;
     if (!mDicPayRecInfo.ContainsKey(sAccount))
     {
         play.MsgBox("没有可提取的魔石!");
         return;
     }
     int gamegold = mDicPayRecInfo[sAccount].money;
     play.ChangeMoney(GameStruct.MONEYTYPE.GAMEGOLD, gamegold);
     play.MsgBox("提取魔石[" + gamegold.ToString() + "]点!");
     SetPayTag(sAccount);
     mDicPayRecInfo.Remove(sAccount);
 }
All Usage Examples Of MapServer.PlayerObject::MsgBox