home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / WWIVMODS / MODSUNKN.ZIP / PCBOARD.MOD < prev    next >
Text File  |  1990-06-25  |  3KB  |  136 lines

  1. Suicidal Maniac #1 @6865
  2. Fri Jun 22 20:22:27 1990
  3. By the author of
  4.  
  5. External Protocol's for WWIV v3.21d
  6. Post/Call
  7. 4600 Color Message Base,
  8.  
  9. I bring you PCBoard Games in WWIV!
  10.  
  11. Ok, here's the situation.  The following mods will allow a genaric
  12. PCBOARD.SYS to be created to allow execution of most GAMES written
  13. for PCBOARD to run with WWIV.  The following will not however work
  14. for Pro-Door, Z-door, or any other file transfer utility.  It can
  15. be done, and has been on my end, but I feel that this is what most
  16. people want to begin with.  There are many ways to run the game
  17. through the board, and I have encountered a few problems with SOME
  18. PCBoard games using Wayne's artificial DOS shell.  They wont load
  19. sometimes, just lock up your system.  I went around this by adding
  20. a few mods to VOID DO_CHAINS() to spawn them separately with a full
  21. shell that totally by-passes modem routines.  Hmmm, I've successfuly
  22. tested and run Xoru, Bay Street Bulls, Doorway, Quizard's Mountain, and
  23. a few others.  If you like it, and need some more info on making some
  24. mods to what I've done, feel free to give my BBS a call, I don't have
  25. source available to me, I wrote this for a friend, but my money's on the
  26. way, and things should work out soon!
  27.  
  28.  The Gateway
  29. (813)962-2937
  30. 300/1200/2400
  31.  24hrs-7days
  32.  
  33. in FCNS.H add the following right AFTER: char* creat_chain_file(char *fn)
  34.  
  35. char *pcboard_sys(char *fn)
  36.  
  37.  
  38.  
  39.  
  40. in BBSUTL1.C add the following to: void run_chain(int cn)
  41. as the second CASE.
  42.  
  43.         case '2':
  44.           pcboard_sys("PCBOARD.SYS");
  45.           break;
  46.  
  47.  
  48.  
  49. in EXTRN.C add the following to the variable list:
  50.  
  51. extern char curspeed;
  52.  
  53.  
  54.  
  55. in EXTRN.C place this right BEFORE:  void alf(int f, char *s)
  56.  
  57. void alfer(int f, char *s)
  58. {
  59.   char s1[100];
  60.  
  61.   strcpy(s1,s);
  62.   strcat(s1,"");
  63.   write(f,(void *)s1,strlen(s1));
  64. }
  65.  
  66.  
  67.  
  68. In EXTRN.C place this right AFTER: char *create_chain_file(char *fn)
  69.  
  70. char *pcboard_sys(char *fn)
  71. {
  72.   int i,i1,f;
  73.   char s[81],s1[81],gd[81],dd[81];
  74.   char name[27],rn[15],pw[12];
  75.   static char fpn[81];
  76.  
  77.   cd_to(syscfg.gfilesdir);
  78.   get_dir(gd,1);
  79.   cd_to(cdir);
  80.   cd_to(syscfg.datadir);
  81.   get_dir(dd,1);
  82.   cd_to(cdir);
  83.  
  84.   unlink(fn);
  85.   f=open(fn,O_RDWR | O_CREAT | O_BINARY, S_IREAD | S_IWRITE);
  86.  
  87.   alfer(f,"0 ");
  88.   alfer(f,"0 ");
  89.   alfer(f,"0 ");
  90.   alfer(f,"0 ");
  91.   alfer(f,"  ");
  92.   if (incom)
  93.       write(f,(void *)curspeed,4);
  94.   else
  95.       alfer(f,"LOCA");
  96.   strncpy(name,&thisuser.name[0],27);
  97.   write(f,(void *)name,27);
  98.   strncpy(rn,&thisuser.realname[0],15);
  99.   write(f,(void *)rn,27);
  100.   if (okansi())
  101.     alfer(f,"-1");
  102.   else
  103.     alfer(f,"0 ");
  104.   write(f,(void *)thisuser.pw,12);
  105.   itoa(usernum,s,10);
  106.   alfer(f,s);
  107.   alfer(f,"    ");
  108.   alfer(f," 1200");
  109.   alfer(f,"    ");
  110.   alfer(f,"     ");
  111.   alfer(f,"1 ");
  112.   alfer(f,"000000000000000000");
  113.   alfer(f,"  ");
  114.   alfer(f,"        ");
  115.   alfer(f,"  ");
  116.   alfer(f,"    ");
  117.   alfer(f," 0");
  118.   alfer(f,"0");
  119.   close(f);
  120.   get_dir(fpn,1);
  121.   strcat(fpn,fn);
  122.   return(fpn);
  123. }
  124.  
  125. And to finish it off, to get it to create PCBOARD.SYS, when you enter
  126. the chain file into your editor, put it in like this.
  127.  
  128. FILENAME: XORU.EXE %2
  129.  
  130. Also, you must NOT have the BBS intercept DOS Calls, set that to OFF.
  131.  
  132. Just like %1, but it creates PCBOARD.SYS instead of CHAIN.TXT.
  133.  
  134. æä¿!
  135. Cyiad,
  136.