home *** CD-ROM | disk | FTP | other *** search
/ The Arcade BBS / arcadebbs.zip / arcadebbs / bbstools / MODS / THYME1.ZIP / THYME1.MOD < prev   
Encoding:
Text File  |  1995-08-02  |  3.4 KB  |  106 lines

  1. Spooky #1 @11751
  2. Sat Jul 29 19:17:26 1995
  3. Bryan Hodges (aka Spooky) #1 @11751
  4. Fri July 7 17:10:33 1995
  5.  
  6. ┌────────────────────────────────────────────────────────────────────────────┐
  7. │ Mod Name      : THYME1.MOD        Mod Author: Bryan Hodges  1@11751 WWIVnet│
  8. │ Difficulty    : ░░░░░░░░░░                                                 │
  9. │ WWIV Version  : 4.24                                                       │
  10. │ Mod Date      : 7-7-95                                                     │
  11. │ Files Affected: MMENU.C                                                    │
  12. │                                                                            │
  13. │ Description   : Asks user if he or she would like to vote when they enter  │
  14. │                 the chains menu, if there are new questions.               │
  15. └────────────────────────────────────────────────────────────────────────────┘
  16.  
  17. [Legal Junk]
  18.  
  19. This modified code may contain some parts of WWIV source code, which is
  20. copyright 1988-1995 by Wayne Bell and licensed only to registered users of
  21. WWIV.  Use of WWIV source without registration constitutes a license
  22. violation, could lead to legal prosecution and is generally regarded as evil
  23. Shareware  distributors  and CD-ROM publishers may not distribute this
  24. modified code without express written permission of the Author or WWIV
  25. Software Services.
  26.  
  27. [Extended Description]
  28.  
  29. This mod was inspired by ZF-1.MOD, written by Neue Regel and does contain
  30. some code from that mod.  This mod will ask users if they wish to vote when
  31. they enter the chains menu.  I had alot of problems with users just going and
  32. playing doors without doing anything else, and problems with nobody voting,
  33. so I decided to do something about it.
  34.  
  35. [Disclaimer]
  36.  
  37. This mod is very simple, so any mess-ups are comepletly the fault of whoever
  38. is installing this mod.  If you do run into any problems with it however, let
  39. me know, and I will do my best to help you.
  40.  
  41. [Step 1]
  42.  
  43. BACK UP YOUR CODE!!!
  44.  
  45. [Step 2]
  46.  
  47. Open the file MMENU.C
  48.  
  49. Search for the function mainmenu(void)  (it should be the first one) in the
  50. variable section, add i1, (the comma is important) to the integers (for you
  51. non-C people, put it after int)
  52.  
  53. [Step 3]
  54.  
  55. in MMENU.C find where the BBS calls on the do_chains function, this is most
  56. easily done by using search, and searching for case '.':
  57.  
  58. what follows is the actual mod itself!  <G>
  59. put this after the    existprint(get_string(1030));     line in the case'.':
  60. section
  61.  
  62. it's easiest if you just copy it over, but if you really want to write it out
  63. go ahead!
  64.  
  65. ┌────────────────────────────────────────────────────────────────────────────┐
  66.  
  67.   /*BEGINNING OF THYME1.MOD*/
  68.      i1=0;
  69.      for (i=0; i<20; i++) {
  70.            if (questused[i]) {
  71.           if (thisuser.votes[i]==0) {
  72.              i1=1;
  73.           }
  74.            }
  75.      }
  76.      if (i1 && live_user) {
  77.      nl();
  78.      npr("
  79. 6You have not voted yet, would you like to now? ");
  80.      if (yn())
  81.      {
  82.        outchr(12);
  83.        write_inst(INST_LOC_VOTE,0,INST_FLAGS_NONE);
  84.        helpl=18;
  85.        vote();
  86.      }
  87.      nl();
  88.   }
  89.   /*END OF THYME1.MOD*/
  90.  
  91. └────────────────────────────────────────────────────────────────────────────┘
  92.  
  93. Well that's it, compile, and enjoy!
  94.  
  95.  
  96.  
  97. Call Thyme!  (719) 536-9675!
  98.  
  99. WWIVNet node 11751
  100. Many Files/Games/Messages
  101. Internet E-mail/UseNet coming soon!
  102. Running at 14.4 (soon 28.8!)
  103. FREE!
  104.  
  105. "The future is ours"
  106.