#region Code Master case 124578: { switch (npcRequest.OptionID) { case 0: { dialog.Text("Hay Bro IAm Code Master do you want to invite your friend to play for CPS."); dialog.Option("yes, i want.", 1); dialog.Option("No man .", 255); break; } case 1: { dialog.Text("Choose the value you bet on winning"); dialog.Option("5 k", 2); /* dialog.Option("10 k", 3); dialog.Option("25 k", 4); * دول انا معملتهمش عشان مكتش خلصت الاولي ال هيا * 5k dialog.Option("50 k", 5); dialog.Option("100 k", 6); */ dialog.Option("Ok man .", 255); break; } #region 5k case 2: { if (client.Entity.ConquerPoints >= 5000)//السبس { dialog.Text("please enter your friend name"); dialog.Input("your friend name is :", 3, 16); } else dialog.Text("you don't have 5K Cps"); dialog.Option("Ok man.", 255); break; } case 3: { if (client.Entity.ConquerPoints >= 5000)//السبس { string player5 = client.Entity.Name; string player11 = npcRequest.Input; if (npcRequest.Input == player5 || npcRequest.Input != "") { dialog.Text("you can not play with yourself."); dialog.Option("Ok man.", 255); break; } else { { client.MessageBoxX("Your friend [ " + player5 + " ] Send you to fight for 5k Cps, Would you Like to join?", p => { p.Entity.Teleport(1002, 300, 292); client.Entity.ConquerPoints -= 5000;/* السبس */}, null, 20); } } } else dialog.Text("you don't have 5K Cps"); dialog.Option("Ok man.", 255); break; #endregion } } break; } #endregion