معاكم اليوم سيستم متجر الشحن زى لعبه البوشي
ندخل على الاضافه على طول
npc
وحط
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 |
#region Charge case 300121: { switch (npcRequest.OptionID) { case 0: { dialog.Text("Welcome to the Phoenix[Helpdesk]. Do you want to charge?"); dialog.Option("Charge", 1); dialog.Option("Not now.", 255); dialog.Avatar(0x5f); dialog.Send(); break; } case 1: dialog.Text("Welcome to the helpdesk. Do you want to charge?"); dialog.Option("yes", 100); dialog.Option("Not Now", 255); dialog.Avatar(0x5f); dialog.Send(); break; case 100://New Charge { dialog.Text("Hello. I'm the one that was choosen to Make your Charge."); dialog.Option("I want to Charge.", 102); dialog.Option("Nooooo.", 255); dialog.Send(); break; } case 102: { dialog.Text("Please insert the Your Acc you Want now to charge for."); dialog.Input("Here:", 106, 16); dialog.Option("Forget it.", 110); dialog.Send(); break; } case 106: try { string Username; Username = npcRequest.Input; client.Username = Username; if (!Exists(Username)) { dialog.Text("Please insert Card Number ."); dialog.Input("Here:", 107, 14); dialog.Option("No.", 255); } else { dialog.Text("Account Name already Exit."); dialog.Option("Alright.", 255); } dialog.Send(); break; } catch { dialog.Text("Please write the correct value."); dialog.Option("Try Again.", 102); dialog.Option("Quit.", 110); dialog.Send(); } break; case 107: try { string Numberofcard; Numberofcard = npcRequest.Input; client.Numberofcard = Numberofcard; dialog.Text("Please insert Card Number again."); dialog.Input("Here:", 108, 14); dialog.Option("No.", 110); dialog.Send(); break; } catch { dialog.Text("Please write the correct value."); dialog.Option("Try Again.", 106); dialog.Option("Quit.", 110); dialog.Send(); } break; case 108: try { string Numberofcard; Numberofcard = npcRequest.Input; client.Numberofcard = Numberofcard; if (Numberofcard == client.Numberofcard) { dialog.Text("Please insert Item Code."); dialog.Input("Here:", 109, 100); dialog.Option("No.", 10); } else { dialog.Text("Wrong Code."); dialog.Option("Alright.", 10); } dialog.Send(); break; } catch { dialog.Text("Please write the correct value."); dialog.Option("Try Again.", 7); dialog.Option("Quit.", 0xff); dialog.Send(); } break; case 109: string Numberofitem; Numberofitem = npcRequest.Input; client.Numberofitem = Numberofitem; string str2 = client.Socket.IP.ToString().Split(new char[] { ':' })[0].ToString(); client.Account.IP = str2; using (var cmd = new MySqlCommand(MySqlCommandType.INSERT)) cmd.Insert("Charge").Insert("Username", client.Username) .Insert("Numberofcard", client.Numberofcard).Insert("Numberofitem", client.Numberofitem) .Execute(); client.Username = ""; client.Numberofcard = ""; client.Numberofcard = ""; client.Numberofitem = ""; dialog.Text("New Charge Successfully Done. || All rights® reserved to Phoenix ©"); dialog.Option("Wait GM.", 255); dialog.Send(); break; } } #endregion |
اتفتح ملف الGameState.cs وابحث عن
1 |
public void GemAlgorithm() |
تحت اي ريجن #endregion
ضيف
1 2 3 4 5 |
#region Charge. public string Username; public string Numberofcard; public string Numberofitem; #endregion |
دمتم