09-24-2012, 07:22 AM
Storing: hashtable during runtime + file for long-term storage.
Transactions: really simple, increase one value in hashtable, decrease another.
Sending money: I haven't decided yet. I would like to make two options: barter economy and money economy. With barter you trade some items (by default - gold nuggets), with money you trade, you know, money In "barter" way you just drop nuggets to another player
Real money trading (aka "donations"): No. The simpliest way I could imagine it would requie a php script that will take real money payments and will store them in "to process" file, and then plugin will hooks to that file and proceed payments. And I'm not interested in web scripting Besides, taking payments isn't what I would call "easy deal".
As for integrated "money"... Wouldn't it be wiser to have an option on shared plugins data? So we could make even more crazy stuff. This has been discussed several times, but still no implementation.
Why it can't be safe through plugin? I bet it can. Chances that server will accudently shut down in between "take money from A" and "give money to B" are same for plugin code and for source code. Besides, in both cases it will lead only to aborting operation (remember, server have had no time to save data about new player A balance).
The only way I could imagine plugin implementation of money to be unsecure is the case when hacker has a root access to server's FS. And that's a doomsday anyway, so why bother?
Transactions: really simple, increase one value in hashtable, decrease another.
Sending money: I haven't decided yet. I would like to make two options: barter economy and money economy. With barter you trade some items (by default - gold nuggets), with money you trade, you know, money In "barter" way you just drop nuggets to another player
Real money trading (aka "donations"): No. The simpliest way I could imagine it would requie a php script that will take real money payments and will store them in "to process" file, and then plugin will hooks to that file and proceed payments. And I'm not interested in web scripting Besides, taking payments isn't what I would call "easy deal".
As for integrated "money"... Wouldn't it be wiser to have an option on shared plugins data? So we could make even more crazy stuff. This has been discussed several times, but still no implementation.
Why it can't be safe through plugin? I bet it can. Chances that server will accudently shut down in between "take money from A" and "give money to B" are same for plugin code and for source code. Besides, in both cases it will lead only to aborting operation (remember, server have had no time to save data about new player A balance).
The only way I could imagine plugin implementation of money to be unsecure is the case when hacker has a root access to server's FS. And that's a doomsday anyway, so why bother?