Advertisement
doridori

Untitled

Jun 21st, 2012
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. - script AccountLocker -1,{
  2.  
  3. OnPCLoginEvent:
  4. if (#setpw == 1) goto P_insert;
  5. if (#dontp == 1) end;
  6. mes "[Account Locker]";
  7. mes "Do you want to set an Account locker?";
  8. next;
  9. menu "Set an Account Locker",P_check,"No",-;
  10. mes "[Account Locker]";
  11. mes "Are you sure you don't want to set an Account locker?";
  12. mes "I will only ask this once !!";
  13. next;
  14. menu "Ok I want to set an account locker.",P_check,"Still No",-;
  15. mes "[Account Locker]";
  16. mes "Okay !!";
  17. set #dontp,1;
  18. close;
  19.  
  20. P_Check:
  21. sc_start sc_berserk, 1000000000, 1;
  22. mes "[Account Locker]";
  23. mes "Input your password locker whatever you want. Can be letters or numbers. CASE SENSITIVE.";
  24. next;
  25. input #lockpw$;
  26. next;
  27. mes "[Account Locker]";
  28. mes "Password Verification.";
  29. mes "Please input the password you had entered.";
  30. input #lockvpw$;
  31. if (#lockvpw$ != #lockpw$) {
  32. next;
  33. mes "[Account Locker]";
  34. mes "The verification password you had entered is incorrect.";
  35. next;
  36. goto P_Check;
  37. } else {
  38. next;
  39. mes "[Account Locker]";
  40. mes "Thank you. Please remember the password you had setted. I will ask for it again everytime you login.";
  41. set #setpw,1;
  42. sc_end sc_berserk;
  43. close;
  44. }
  45.  
  46.  
  47. P_insert:
  48. sc_start sc_berserk, 1000000000, 1;
  49. mes "[Account Locker]";
  50. mes "Please enter your locker password";
  51. next;
  52. input #insertlp$;
  53. if (#insertlp$ == #lockpw$) goto P_pass;
  54. mes "[Account Locker]";
  55. mes "Invalid password. Try again.";
  56. next;
  57. input #insertlp$;
  58. if (#insertlp$ == #lockpw$) goto P_pass;
  59. mes "[Account Locker]";
  60. mes "Invalid password. Try again.";
  61. next;
  62. mes "[Account Locker]";
  63. mes "Invalid password. Try again.";
  64. if (#insertlp$ == #lockpw$) goto P_pass;
  65. atcommand "@kick "+strcharinfo(0);
  66. end;
  67.  
  68. P_pass:
  69. sc_end sc_berserk;
  70. close;
  71. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement