I am setting up a new server (name undecided) and I am interested in trying to set up towns that have "true" infrastructure.
I have the idea of supplying several items to 'houses' and charging for usage as well as charging for the house itself.
My idea would be, having a 'password protected' house (pwd door, worldguard(major-claim for the house (to prevent the player breaking the system)and a subclaim(inside the house walls(to allow players building/placing of items)))) that you can gain initial access by inserting your 'credit card' (uniquely created floppy disk) once the card has been inserted a 'house server' 'downloads' the player's financial details (account#) and can then start logging charges.
The house server displays the charges on a monitor in the house so the player can keep track of his charges.
Events that must occur at house 'purchase':
- Player must be added to worldguard subclaim perms
- Door password must be updated to match players credit card pin
- House server password must be updated to match players credit card pin
- Previous charges displayed must be cleared
The charges are sent to a 'banking server' that then a) Checks the player has enough money, B)/> Pays the utilities supplier based on usage.
Charges I am currently considering are: Rent (paid per day), Electricity (paid per kEU), Energy (paid per kMJ)(kEU and kMJ would be charged according to their base production rate eg. 100EU=20MJ), Fuel (Paid per 10000mB (10Buckets), Oil (Paid per 10000mB), Lava (paid per 10000mB).
As far as I can assume/see these are the systems I would need to implement to have this work correctly.
- Banking server (Computer & wmodem)
- House server (Computer, wmodem & Monitor)
- House access terminal (Computer)(House server connected via bundled cable)
- Credit card creator (Computer, wmodem & disk drive (autofeed system for blank disks))
- scheduling server? (Computer & wmodem)(used to handle the large amount of access to banking server)
6. ATM
7. Shop
This is a lot of work and I can understand that, and although I am relatively new to Computercraft, I believe (with guidance) I can achieve what I want. I understand what I want to happen, I understand 'how' it happens, I just dont know how to make it happen haha.
If anyone would like to help me with starting out and pointing me in the right direction, perhaps providing some example programs/code snippets to help me better understand how it will all go together.
I am really excited about this and I believe it would be something unique to create an attraction to my server.