                         *** Lotto for Falken BBS ***

by Dean Lamberti
of The Cutting Edge BBS
    2400 (410)715-0586
    9600 (410)730-6381

Ok first off, no warranties expressed or implied period!
        if it blows up on you I can't be responsible so
        test it out first. It works fine on my system with 
        no problems and I am not that experienced in "C" programming,
        that I would be able to help you out if it does something 
        funny.

With that out of the way...

Lotto for Falken BBS is just that, a lotto door. Put it in your logon doors
or off of a menu, makes no difference. 
When the program runs it gives you some info on what game number you're 
running, the users credits and the Super Jackpot amount. Then it compares
the users ticket with the Daily numbers drawn by the Daily.exe program that
is run in your daily events.
 
Files in this ZIP:
Daily.exe - generates new numbers during you daily event and writes them to
        a file called NUM.TXT.
        Sees if there was a Super Jackpot winner the previous game, if so 
        it restarts the pot at a sysop configurable amount. If there was no 
        winner the previous day it will add a sysop configurable amount 
        to the current jackpot.
        Ticks off the game number*
         
        *I used game numbers rather then dates for a few reasons:
        *If your event doesn't happen for some reason a person can't collect
        *twice.
        *It's easier!!!

Lotto.exe - The door program itself will start up give you the info on the
        game, compare the users ticket with th daily numbers if they match
        three or less they lose.
        for 4 numbers - Sysop Configurable
        for 5 numbers - Sysop Configurable
        for 6 numbers - Super Jackpot. configurable to the point that you
                start it off at a certain amount and control the daily
                increase in credits (did I mention this door uses credits?)
        After the number comparison the users is given a option to buy a 
        ticket for the next day (the cost is 25 credits, I will rework this
                                 to be sysop configurable).
        The rest is simple, enter 6 numbers from 1 to 20 NO DOUBLES will be
        accepted.
Lotto.cfg - Configuration file as follows, no comments allowed!
        but I will put some here to explain.
1000    Start amount, for a new game or after a jackpot is won.
1000    Increase amount, Daily increase used by daily.exe to raise jackpot
100     Win amount for a 4 number match
500     Win amount for a 5 number match
1000    Win amount for a 6 number match, this will increase daily!
1       Game number, this will increase daily
0       0 or 1, if a user won the jackpot the day before it will be 1 till daily is run again*
25      Cost per ticket (in credits)

* There can be 2 jackpot winners in 1 day, I'll work on that too, but its 
        not likely you'll see 1 winner very often.

Lotto.log - Log file contains info on who bought tickets and the game number
        it also lets you know who has won a 4,5,or 6 number match.

Num.txt - holds the Daily numbers generated by daily.exe and the current game
        number

ACC00001 - You will notice alot of these it is a very small file with a users
        ticket numbers and the game the ticket is for, the name is the users
        account number with no extension if these bother you, you will have 
        to delete them manually by doing a directory sorted in date order and 
        typing del acc00001 for each one. I'm working on this one too, but 
        since a users can only have one ticket per day you will never have 
        more of these files than users.

Ways to cheat:
Someone with access to your falken directory can upload a text file called 
num.txt or acc00??? or you can edit these to see how the game runs. I know
you'll want to do this to test so here is the correct way to do it.
run lotto.exe
make a note of the numbers and the game number
create a txt file with your acct number, my acct number is NFL00001 so I would

copy con NFL00001
11 12 13 14 15 16 1
^Z
 
11-16 would be the numbers for todays game which happens to be game # 1
do it four times matching 3, 4, 5, and finally 6 numbers to get a feel for 
the game.

Finally... I know its a pain to add more junk to your falken directory but 
for now I don't know how to redirect falken to look someplace else and until
I figure it out you'll have to suffer.

Finally pt. 2...The game is all ascii, please dont bother me about ansi as
I am still learning to program in "C" and it talks me long enuf to write
something that works, much less looks pretty.

Thank you,
Dean Lamberti


Coming soon?
Keno for Falken, the only thing stopping me is I cannot figure out how to
do a broadcast to all lines from a door, Herb has disappeared and the hopes
of getting him to answer a message or email is not very good right now.

Many thanks to my wife Dana, who has spent many nights sleeping alone while
I am in the basement with the computer.

Donations are accepted, call the bbs and look in the bulletins for my address.

***Fixed***
5/18/94
Added the cost of ticket option 
lotto.exe changed
daily.exe changed
lotto.cfg changed 
