Advertisement
Guest User

Untitled

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