Page 1 of 1
Commonwealth Casino Co. Requests Business
Posted: Mon Oct 26, 2009 9:49 pm
by vasroe
The Commonwealth Casino Co. requests to do business with the Church of the Machine God.
Primarily we wish to use an API to access the online bank and set up gambling operations on web pages hosted on Shireroth's web server. The financial and administrative aspects of this arrangement we assume the Ministry of Trade can assist with.
We are prepared to do what is necessary to pay erb for a) an advertisement link on the SC bank, b) the hosting (one or two pages and a few PHP scripts at most), and c) the API hookup to the bank.
Please let us know when you are ready. I, the CEO, will be on a LOA for the next few days, so there is no very immediate rush.
Thank you.
Re: Commonwealth Casino Co. Requests Business
Posted: Mon Oct 26, 2009 9:51 pm
by Erik Mortis
As we discussed. I'll look into the matter.
Re: Commonwealth Casino Co. Requests Business
Posted: Tue Nov 10, 2009 12:00 am
by Erik Mortis
I haven't forgotten about this. Just haven't given it much technical thought. And haven't heard anything about it from the MiniTrade or SC about if a deal was made.
The bank is operated by the Small Commonwealth, with me being paid by the MiniTrade of Shireroth. So a deal will need to be struck with one of them before I can proceed.
Re: Commonwealth Casino Co. Requests Business
Posted: Tue Nov 10, 2009 12:12 am
by Andreas the Wise
I was giving this some thought (mainly because I plan to open a stock exchange). Now we have a Small Commonwealth thing in the bank, we *could* make a Small Commonwealth account through which things to do with the bank (and indeed, membership fees or the like) could be handled. Then companies who wished to have something integrated with the bank could pay to do so; and the funds would go to the Small Commonwealth, which could then use it to pay Erik further, or for other Small Commonwealth uses. The Admin of the Bank would be authorised to negotiate prices etc, I'd assume (though you'd still have to talk to Erik about putting the links in etc).
Erik, Ari, does that sound like a good way to do it?
Re: Commonwealth Casino Co. Requests Business
Posted: Tue Nov 10, 2009 12:17 am
by Erik Mortis
Political issue. Not a technical one. Well.. only partly technical.
Re: Commonwealth Casino Co. Requests Business
Posted: Tue Nov 10, 2009 1:06 pm
by vasroe
Hello Again. I am still very interested in connecting my casino to the SC bank and advertising on it. Just provide me the API and I will start creating the necessary pages. As for the political aspect, things should hopefully work out soon.
How does 50.00 Erb for everything sound?
Re: Commonwealth Casino Co. Requests Business
Posted: Tue Nov 10, 2009 1:12 pm
by Erik Mortis
Code: Select all
function transfer_funds($instigator, $sender, $receiver, $funds, $reason, $server)
//Take money from one account and put it in another.
//Returns 0 on success. Returns 1 on failure due to insufficient funds.
//2 is returned if the account for the reciever did not exist.
//3 if the sender doesn't exist.
//4 if trying to send to yourself.
//5 if funds to move are neg
//6 if the reciever is an Inactive account.
//7 if the instigator is an Inactive account.
//We handle cleaning up the funds.
//handles error messages and logging.
instigator is the name of whoever is making the transfer. the sender is the account that the money is coming out of. receiver is where the money is going. fund is obviously the money. Reason is just a string with an explaination. $server is the resource with the server. By putting the following at the start of the page you'll have that resource.
Code: Select all
//Connect to Server
$server = bank_server_connect();
Then you'll need to have the file 'require/bankops.php' and 'require/config.php' included (once) in your files that use the transfer_funds() function and the code for connecting I gave. I should look into making that a function somehow. (done)
Re: Commonwealth Casino Co. Requests Business
Posted: Tue Nov 10, 2009 1:26 pm
by vasroe
Thanks.
Re: Commonwealth Casino Co. Requests Business
Posted: Tue Nov 10, 2009 1:40 pm
by Erik Mortis
Soon I'll be posting something on how to make mods for the bank. I modified things.
Re: Commonwealth Casino Co. Requests Business
Posted: Tue Nov 10, 2009 1:46 pm
by Andreas the Wise
vasroe wrote:Hello Again. I am still very interested in connecting my casino to the SC bank and advertising on it. Just provide me the API and I will start creating the necessary pages. As for the political aspect, things should hopefully work out soon.
How does 50.00 Erb for everything sound?
I was thinking the right to connect to the bank database and have a link on it to your integrated company would be worth 500

. Of which 100

would go to Erik for the bother of making the changes to put your link in and explain how to access the bank database.
Of course, if you also wanted Erik to host your casino files (which if you can avoid is probably easier, because it means you can modify your own files easily and test them online, not just in localhost), that would be a matter for you and Erik/Ari to come to some sort of agreement on over and above this.
Re: Commonwealth Casino Co. Requests Business
Posted: Tue Nov 10, 2009 2:05 pm
by Erik Mortis
For security the files have to be on our server. otherwise we have to hand out the password. Access I'm not inclined to give out.
This is why I gave you a copy of config that had username and password removed.