عرض مشاركة واحدة
قديم 2020-04-29, 02:12 AM
المشاركة #2  
ElSaher
  • غير متواجد
افتراضي رد: مطلوب انبي سي يعمل اكونتات ويغير باصورداتة من جوا اللعبه

كود:
#region ChangePassword 
case 10561//Repack-Co SoOon 

switch (
npcRequest.OptionID

case 
0

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. Conquer Ghost World V1 V1"); 
dialog.Option("I want to change the password."2); 
dialog.Option("Forget it."255); 
dialog.Send(); 
break; 

#region Change password 
case 2

if (
client.Account.Password != ""

dialog.Text("Please insert the old password you have now."); 
dialog.Input("Here:"614); 
dialog.Option("Forget it."255); 

else 

dialog.Text("You don't have a password set."); 
dialog.Option("Alright."255); 

dialog.Send(); 
break; 

case 
6

if (
client.Account.Password != ""

if (
npcRequest.Input.Length <= 14

if (
client.Account.Password == npcRequest.Input

dialog.Text("Please insert the New password again."); 
dialog.Input("Here:"714); 
dialog.Option("Forget it."255); 

else 

dialog.Text("Wrong password. Try again?"); 
dialog.Input("Here:"614); 
dialog.Option("Alright."255); 


else 

dialog.Text("Invalid password, please try again."); 
dialog.Input("Here:"614); 
dialog.Option("Alright."255); 


else 

dialog.Text("You don't have a password set."); 
dialog.Option("Alright."255); 

dialog.Send(); 
break; 

case 
7

if (
client.Account.Password != ""

if (
npcRequest.Input.Length <= 14

client.TempPassword npcRequest.Input
dialog.Text("Please insert the New password again."); 
dialog.Input("Here:"814); 
dialog.Option("Forget it."255); 

else 

dialog.Text("Invalid password, please try again."); 
dialog.Input("Here:"714); 
dialog.Option("Alright."255); 


else 

dialog.Text("You don't have a password set."); 
dialog.Option("Alright."255); 

dialog.Send(); 
break; 

case 
8

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:"814); 
dialog.Option("Alright."255); 


else 

dialog.Text("Invalid password, please try again."); 
dialog.Input("Here:"814); 
dialog.Option("Alright."255); 


else 

dialog.Text("You don't have a password set."); 
dialog.Option("Alright."255); 

dialog.Send(); 
break; 

#endregion Change password 

break; 


تغير الباص تمم كدا