home *** CD-ROM | disk | FTP | other *** search
-
- Hi all you PCB sysops !
-
-
- My name is Lone Runner, I'm part of AEGiS CoRP... I'm usually a coder (PPE
- and EXE) but today I managed to make a door without any code -<;)~
-
- Well, what's the purpose of that anyway ?
-
- On my board, I have a door game that can be played by users against others.
- There are many games like mine... I'm sure that, like me, you have some
- users that play the same game with many different usernames...
-
- To do this, they must logoff and re-logon by dialing your board number again
- and again, as many times as they still have other identities to play with...
-
- In some country, this is a big loss of money because a tax is established for
- each connection. (ie : France -> 0.73FF by call)
-
- Now when users want to change identity on my board, they just type "RESET"
- and the logon process come back, so they can logon with a new name/pass...
-
- How did I do that ? Well, it is really easy :)
-
- First you must have a mailer or anything that answer the call WITHOUT PCB...
- This is needed because we have to know exactly the parameters passed to
- BOARD.BAT (maybe one day I will make some code to bypass this limitation...)
-
- ■ Edit your BOARD.BAT and put just after you ECHO OFF (before anything is
- done) :
-
- SET N1=%1
- SET N2=%2
- SET N3=%3
- SET N4=%4
- SET N5=%5
- SET N6=%6
- SET N7=%7
- SET N8=%8
- SET N9=%9
-
- ■ Put just after your :END label (after everything is done) :
-
- SET N1=
- SET N2=
- SET N3=
- SET N4=
- SET N5=
- SET N6=
- SET N7=
- SET N8=
- SET N9=
-
- ■ Then move into your pcboard directory and make a door file called RESET.
- (or whatever you want) that contains :
-
- @ECHO OFF
- DEL PCBOARD.SYS
- BOARD.BAT %N1% %N2% %N3% %N4% %N5% %N6% %N7% %N8% %N9%
-
- If you have a multinode system and some node does not have a mailer, you have
- to make a RESET file such as :
-
- @ECHO OFF
- IF "%PCBNODE%" == "2" GOTO DONE
- IF "%PCBNODE%" == "3" GOTO DONE
- IF "%PCBNODE%" == "4" GOTO DONE
- DEL PCBOARD.SYS
- BOARD.BAT %N1% %N2% %N3% %N4% %N5% %N6% %N7% %N8% %N9%
- :DONE
- BOARD.BAT
-
- ■ Run PCBSETUP and add a new door entry that will call your RESET. file...
-
- That's all :) now a user that type RESET gets the logon process, as if he
- were loging in for the first time...
-
-
- Let's explain...
-
- In your BOARD.BAT you save all parameters into Nx environment variables...
- When the RESET "door" is executed, it will delete PCBOARD.SYS. This file
- is used by PCBOARD to save informations on the current user (user name, time
- used online etc...). If you delete it, PCBOARD think that a new user is
- loging in... :) So we just have to call again BOARD.BAT with the same
- parameters than when it was called for the first time... we do that using
- the Nx environment variables :)
-
- That's all for today :) Not real programming but sumthing that can be
- usefull for some of us...
-
- See ya! _.Lone Runner
-