home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / WWIVMODS / MODSUNKN.ZIP / AUTOVAL.MOD < prev    next >
Text File  |  1992-12-01  |  3KB  |  79 lines

  1. Parker Prospect #1 @9964
  2. Fri Mar 09 13:04:50 1990
  3. For those who do  not sit by their computers all the  time, and do not make
  4. much use  of the auto-validation  keys (Alt F1-F10),  this mod is  for you.
  5. Whenever I  validate a user, I  hit Ctrl-A (WWIV macro),  and that types in
  6. the new  SL, DSL, and zeroes  all the restrictions. Well,  one day I needed
  7. that macro  for some redundant  work, so  I  decided so go  ahead and write
  8. this mod, and make my Ctrl-A macro  a scrap macro (work macro). Here is the
  9. mod made to uedit.  Make sure you update your menus to reflect the changes.
  10.                                                         - PP Feb 8, 1990
  11.  
  12. MODIFICATION NOTE: If you wish to set  certain ARs and DARs, Lord Elric has
  13. a neat little  pseudo-mod that will work  wonders for you (I  believe it is
  14. Elric #4). I  have commented out the place  where you would set the  AR and
  15. DAR, but you may un-comment it and use it as needed.
  16.  
  17. ************************************
  18. ************** Legend **************
  19. ************************************
  20. * %% Delete Line                   *
  21. * -- Search for Line, DON'T CHANGE *
  22. * ++ Add Line                      *
  23. * -+ Modify Line                   *
  24. ************************************
  25.  
  26. ------------------------------------------------------------------------
  27. First Step... Change the following code in void uedit in SYSOPF.C.
  28.  
  29. --        print_short(un,&u);
  30. --      nl();
  31. --      prt(2,"Uedit : ");
  32. --      if ((realsl==255) || (wfc))
  33. -+      ch=onek("Q[]{}/,.?UDRNLCPOGMSTEYZAI~:@$%*!"); /* add ! at end */
  34. --      else
  35. --        ch=onek("Q[]{}/,.?UDRNLCPOGMSTEYZAI@$%");
  36. --      switch(ch) {
  37. --        case 'Q':
  38. --          done=1;
  39.  
  40. ------------------------------------------------------------------------
  41. Second Step... Add the following code in void uedit in SYSOPF.C.
  42.  
  43. --        case '?':
  44. --          printmenu(6);
  45. --          getkey();
  46. --          break;
  47. ++        case '!':
  48. ++          u.sl = 60; /* change this to your normal user SL */
  49. ++          u.dsl = 60; /* change this to your normal user DSL */
  50. ++          u.restrict = 0; /* this zaps all restrictions */
  51.  
  52. /********************* SEE "MODIFICATION NOTE" FOR DETAILS ************
  53. ++          u.ar = (AR_C | AR_P);
  54. ++          u.dar = (AR_A | AR_B);
  55. ***********************************************************************/
  56.  
  57. ++          write_user(un,&u);
  58. ++          break;
  59. --        case 'D':
  60. --          if (((u.inact & inact_deleted)==0) && (thisuser.sl>u.sl)) {
  61. --            prt(5,"Delete? ");
  62. --            if (yn()) {
  63. --              deluser(un);
  64. --              read_user(un,&u);
  65. --            }
  66. --          }
  67. --          break;
  68.  
  69. ------------------------------------------------------------------------
  70. Final Step
  71.  
  72. Compile the BBS... and look for more mods by Parker Prospect!
  73.  
  74. ------------------------------------------------------------------------
  75. Disclaimer
  76.  
  77. I, Jeff Garzik, claim no liability for this mod, or for any damage that
  78. may have resulted from the use of this mod.  I also attach no
  79. warranty, expressed OR implied, to this product.