بسم الله والصلاة والسلام علي رسول الله اما بعد
ده حاجه حلوا انا لقيته حبيت اشاركه معاكم ان بى سي تقدر وانت جوه اللعبه تغير كلمة السر وتسجل حساب جديد بدل ما تروح صفحة اللعبه وتبا حاجه مملل
شغلنا سورس ونفي كات ذي كل مره
اتفتح السورس واتفتح كلاس
1 |
Npcs.cs |
اضيف الانبي سي دي
واضيفه معي الاضافات
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 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 |
#region HELP DESK #region helpdesk case 10620: switch (npcRequest.OptionID) { case 0: dialog.Text("Welcome to the MrSnyZer[Helpdesk]. Is there anything you require below?"); dialog.Option("Register", 1); dialog.Option("Vote", 2); dialog.Option("Donte", 4); dialog.Option("Facebook Page", 5); dialog.Option("ChangePassword", 6); dialog.Avatar(0x5f); dialog.Send(); break; case 1: dialog.Text("Welcome to the helpdesk. Is there anything you require below?"); dialog.Option("Client Register", 100); dialog.Option("Web Register", 11); dialog.Avatar(0x5f); dialog.Send(); break; case 6: dialog.Text("Welcome to the helpdesk. Is there anything you require below?"); dialog.Option("Client Chg Pass", 200); dialog.Option("Web Chg Pass", 66); dialog.Avatar(0x5f); dialog.Send(); break; #region ChangePassword case 200: { dialog.Text("Hello. I'm the one that was choosen to set/change your account password .you can change you password for 14 letters nubmer or characters."); dialog.Option("I want to change the password.", 202); // dialog.Option("I want to remove the password.", 3); dialog.Option("Forget it.", 255); dialog.Send(); break; } #region Change password case 202: { if (client.Account.Password != "") { dialog.Text("Please insert the old password you have now."); dialog.Input("Here:", 206, 14); dialog.Option("Forget it.", 255); } else { dialog.Text("You don't have a password set."); dialog.Option("Alright.", 255); } dialog.Send(); break; } case 206: { if (client.Account.Password != "") { if (npcRequest.Input.Length <= 14) { if (client.Account.Password == npcRequest.Input) { dialog.Text("Please insert the password again."); dialog.Input("Here:", 207, 14); dialog.Option("Forget it.", 255); } else { dialog.Text("Wrong password. Try again?"); dialog.Input("Here:", 206, 14); dialog.Option("Alright.", 255); } } else { dialog.Text("Invalid password, please try again."); dialog.Input("Here:", 206, 14); dialog.Option("Alright.", 255); } } else { dialog.Text("You don't have a password set."); dialog.Option("Alright.", 255); } dialog.Send(); break; } case 207: { if (client.Account.Password != "") { if (npcRequest.Input.Length <= 14) { client.TempPassword = npcRequest.Input; dialog.Text("Please insert the password again."); dialog.Input("Here:", 208, 14); dialog.Option("Forget it.", 255); } else { dialog.Text("Invalid password, please try again."); dialog.Input("Here:", 207, 14); dialog.Option("Alright.", 255); } } else { dialog.Text("You don't have a password set."); dialog.Option("Alright.", 255); } dialog.Send(); break; } case 208: { if (client.Account.Password != "") { if (npcRequest.Input.Length <= 14) { if (client.TempPassword == npcRequest.Input) { client.TempPassword = ""; client.Account.Password = npcRequest.Input; client.Account.Save(); dialog.Text("Password changed!"); dialog.Option("Thank you.", 255); } else { dialog.Text("Wrong password."); dialog.Input("Here:", 208, 14); dialog.Option("Alright.", 255); } } else { dialog.Text("Invalid password, please try again."); dialog.Input("Here:", 208, 14); dialog.Option("Alright.", 255); } } else { dialog.Text("You don't have a password set."); dialog.Option("Alright.", 255); } dialog.Send(); break; } #endregion Change password #endregion ChangePassword case 11: client.Send(new Message("" + helpdesk.Register + "", client.Entity.Name, System.Drawing.Color.Yellow, 0x839)); break; #region New Register case 100://New Register { dialog.Text("Hello. I'm the one that was choosen to Make your new account."); dialog.Option("I want to Register.", 102); dialog.Option("Nooooo.", 255); dialog.Send(); break; } #region New Register case 102: { dialog.Text("Please insert the New Acc you Want now."); dialog.Input("Here:", 106, 16); dialog.Option("Forget it.", 110); dialog.Send(); break; } case 106: try { string accountname; accountname = npcRequest.Input; client.accountname = accountname; if (!Exists(accountname)) { dialog.Text("Please insert the password ."); 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 accountpass1; accountpass1 = npcRequest.Input; client.accountpass1 = accountpass1; dialog.Text("Please insert the password 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 accountpass2; accountpass2 = npcRequest.Input; client.accountpass2 = accountpass2; if (accountpass2 == client.accountpass1) { dialog.Text("Please insert the Email || /yahoo.Com will be added automatically."); dialog.Input("Here:", 109, 100); dialog.Option("No.", 10); } else { dialog.Text("Wrong Pass."); 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 accountEmail; accountEmail = npcRequest.Input + "/yahoo.com"; client.accountEmail = accountEmail; string str2 = client.Socket.IP.ToString().Split(new char[] { ':' })[0].ToString(); client.Account.IP = str2; using (var cmd = new MySqlCommand(MySqlCommandType.INSERT)) cmd.Insert("accounts").Insert("Username", client.accountname) .Insert("Password", client.accountpass1).Insert("State", (int)0).Insert("IP", client.Account.IP) .Execute(); // Conquer.Database.Account.Insert(client.accountname, client.accountpass1, client.Account.IP, client.Account.IP, (ulong)0, (byte)0, 0, client.accountEmail); client.accountname = ""; client.accountpass1 = ""; client.accountpass2 = ""; client.accountEmail = ""; dialog.Text("New Account Successfully Done. || All rights® reserved to Gameover ©"); dialog.Option("Ty 4 ur time.", 255); dialog.Send(); break; case 110: client.accountname = ""; client.accountpass1 = ""; client.accountpass2 = ""; client.accountEmail = ""; dialog.Text("Failed !!. Good Luck Next Time."); dialog.Option("Ty 4 ur time.", 255); dialog.Send(); break; #endregion New Register #endregion ChangePassword case 2: client.Send(new Message("" + helpdesk.Vote + "", client.Entity.Name, System.Drawing.Color.Yellow, 0x839)); break; case 3: client.Send(new Message("" + helpdesk.ChatBox + "", client.Entity.Name, System.Drawing.Color.Yellow, 0x839)); break; case 4: client.Send(new Message("" + helpdesk.Purchase + "", client.Entity.Name, System.Drawing.Color.Yellow, 0x839)); break; case 5: client.Send(new Message("" + helpdesk.Facebook + "", client.Entity.Name, System.Drawing.Color.Yellow, 0x839)); break; case 66: client.Send(new Message("" + helpdesk.ChangePass + "", client.Entity.Name, System.Drawing.Color.Yellow, 0x839)); break; } break; #endregion |
لو طلعلكم اي ايروا اخبروني وانا باذن الله احلوهولكم لان الايروا علي حسب سورسك ولو طلع متنساش تقول في التعليق سورسك اسمه ايه وقول الايروا الي بيطلع فيه
بعدين نروح للنفي كات
في ملف npc
1 |
10620 HelpDesk 2 29686 1002 290 312 |
للعلم ان كلمة 10620
ده قبل كلمة HelpDesk
تمام بعدين تسيف السورس والنفي كات
وتدخل اللعبه ده وتضرب الشفره ده
1 |
@tele 1002 290 312 |
انت بس انسخ الشفره واالصقه اتتعدل معاك واتوديك لمكان الانبي سي وكده الف مبروك عليك
3 تعليقات “Npc هلب ديسك حلو وجميل جدا تسجل اميل او تغير كلمة السر من محمد ياسر”
شكرا يا صحبي والله انا عايز اعمله بس مش عارف كل ما احط الكود يجيبلي ايرورات كتير اوي ياريت تساعدني
عايزين واحد زايه ل 5095
الله يا نور يا حج محمد مش جديد عليك بمواضيعك الحصرية