home *** CD-ROM | disk | FTP | other *** search
- Spooky #1 @11751
- Sat Jul 29 19:17:26 1995
- Bryan Hodges (aka Spooky) #1 @11751
- Fri July 7 17:10:33 1995
-
- ┌────────────────────────────────────────────────────────────────────────────┐
- │ Mod Name : THYME1.MOD Mod Author: Bryan Hodges 1@11751 WWIVnet│
- │ Difficulty : ░░░░░░░░░░ │
- │ WWIV Version : 4.24 │
- │ Mod Date : 7-7-95 │
- │ Files Affected: MMENU.C │
- │ │
- │ Description : Asks user if he or she would like to vote when they enter │
- │ the chains menu, if there are new questions. │
- └────────────────────────────────────────────────────────────────────────────┘
-
- [Legal Junk]
-
- This modified code may contain some parts of WWIV source code, which is
- copyright 1988-1995 by Wayne Bell and licensed only to registered users of
- WWIV. Use of WWIV source without registration constitutes a license
- violation, could lead to legal prosecution and is generally regarded as evil
- Shareware distributors and CD-ROM publishers may not distribute this
- modified code without express written permission of the Author or WWIV
- Software Services.
-
- [Extended Description]
-
- This mod was inspired by ZF-1.MOD, written by Neue Regel and does contain
- some code from that mod. This mod will ask users if they wish to vote when
- they enter the chains menu. I had alot of problems with users just going and
- playing doors without doing anything else, and problems with nobody voting,
- so I decided to do something about it.
-
- [Disclaimer]
-
- This mod is very simple, so any mess-ups are comepletly the fault of whoever
- is installing this mod. If you do run into any problems with it however, let
- me know, and I will do my best to help you.
-
- [Step 1]
-
- BACK UP YOUR CODE!!!
-
- [Step 2]
-
- Open the file MMENU.C
-
- Search for the function mainmenu(void) (it should be the first one) in the
- variable section, add i1, (the comma is important) to the integers (for you
- non-C people, put it after int)
-
- [Step 3]
-
- in MMENU.C find where the BBS calls on the do_chains function, this is most
- easily done by using search, and searching for case '.':
-
- what follows is the actual mod itself! <G>
- put this after the existprint(get_string(1030)); line in the case'.':
- section
-
- it's easiest if you just copy it over, but if you really want to write it out
- go ahead!
-
- ┌────────────────────────────────────────────────────────────────────────────┐
-
- /*BEGINNING OF THYME1.MOD*/
- i1=0;
- for (i=0; i<20; i++) {
- if (questused[i]) {
- if (thisuser.votes[i]==0) {
- i1=1;
- }
- }
- }
- if (i1 && live_user) {
- nl();
- npr("
- 6You have not voted yet, would you like to now? ");
- if (yn())
- {
- outchr(12);
- write_inst(INST_LOC_VOTE,0,INST_FLAGS_NONE);
- helpl=18;
- vote();
- }
- nl();
- }
- /*END OF THYME1.MOD*/
-
- └────────────────────────────────────────────────────────────────────────────┘
-
- Well that's it, compile, and enjoy!
-
-
-
- Call Thyme! (719) 536-9675!
-
- WWIVNet node 11751
- Many Files/Games/Messages
- Internet E-mail/UseNet coming soon!
- Running at 14.4 (soon 28.8!)
- FREE!
-
- "The future is ours"
-