home *** CD-ROM | disk | FTP | other *** search
/ Groovy Bytes: Behind the Moon / groovybytes.iso / GROOVY / PPE / AEGIS / AGSRELOG.ZIP / RESET.TXT < prev   
Encoding:
Text File  |  1995-02-28  |  2.9 KB  |  93 lines

  1.  
  2.   Hi all you PCB sysops !
  3.   
  4.  
  5. My name is Lone Runner, I'm part of AEGiS CoRP... I'm usually a coder (PPE
  6. and EXE) but today I managed to make a door without any code -<;)~
  7.  
  8. Well, what's the purpose of that anyway ?
  9.  
  10. On my board, I have a door game that can be played by users against others.
  11. There are many games like mine... I'm sure that, like me, you have some 
  12. users that play the same game with many different usernames...
  13.  
  14. To do this, they must logoff and re-logon by dialing your board number again
  15. and again, as many times as they still have other identities to play with...
  16.  
  17. In some country, this is a big loss of money because a tax is established for
  18. each connection. (ie : France -> 0.73FF by call)
  19.  
  20. Now when users want to change identity on my board, they just type "RESET" 
  21. and the logon process come back, so they can logon with a new name/pass...
  22.  
  23. How did I do that ? Well, it is really easy :)
  24.  
  25. First you must have a mailer or anything that answer the call WITHOUT PCB...
  26. This is needed because we have to know exactly the parameters passed to
  27. BOARD.BAT (maybe one day I will make some code to bypass this limitation...)
  28.  
  29. ■ Edit your BOARD.BAT and put just after you ECHO OFF (before anything is 
  30.   done) :
  31.  
  32.   SET N1=%1
  33.   SET N2=%2
  34.   SET N3=%3
  35.   SET N4=%4
  36.   SET N5=%5
  37.   SET N6=%6
  38.   SET N7=%7
  39.   SET N8=%8
  40.   SET N9=%9
  41.  
  42. ■ Put just after your :END label (after everything is done) :
  43.  
  44.   SET N1=
  45.   SET N2=
  46.   SET N3=
  47.   SET N4=
  48.   SET N5=
  49.   SET N6=
  50.   SET N7=
  51.   SET N8=
  52.   SET N9=
  53.  
  54. ■ Then move into your pcboard directory and make a door file called RESET. 
  55.   (or whatever you want) that contains :
  56.  
  57.   @ECHO OFF
  58.   DEL PCBOARD.SYS
  59.   BOARD.BAT %N1% %N2% %N3% %N4% %N5% %N6% %N7% %N8% %N9% 
  60.  
  61. If you have a multinode system and some node does not have a mailer, you have
  62. to make a RESET file such as :
  63.  
  64.   @ECHO OFF
  65.   IF "%PCBNODE%" == "2" GOTO DONE
  66.   IF "%PCBNODE%" == "3" GOTO DONE
  67.   IF "%PCBNODE%" == "4" GOTO DONE
  68.   DEL PCBOARD.SYS
  69.   BOARD.BAT %N1% %N2% %N3% %N4% %N5% %N6% %N7% %N8% %N9% 
  70.   :DONE
  71.   BOARD.BAT
  72.  
  73. ■ Run PCBSETUP and add a new door entry that will call your RESET. file... 
  74.  
  75. That's all :) now a user that type RESET gets the logon process, as if he
  76. were loging in for the first time...
  77.  
  78.  
  79. Let's explain... 
  80.  
  81. In your BOARD.BAT you save all parameters into Nx environment variables...
  82. When the RESET "door" is executed, it will delete PCBOARD.SYS. This file
  83. is used by PCBOARD to save informations on the current user (user name, time
  84. used online etc...). If you delete it, PCBOARD think that a new user is 
  85. loging in... :) So we just have to call again BOARD.BAT with the same
  86. parameters than when it was called for the first time... we do that using
  87. the Nx environment variables :)
  88.  
  89. That's all for today :) Not real programming but sumthing that can be 
  90. usefull for some of us... 
  91.  
  92.                                                 See ya! _.Lone Runner
  93.