Bank system
-
Our players have been asking for an in-game banking system they can deposit and withdrawl funds from. We have a php system staff uses but its a bit outdated as we have to take deposits and whatnot. Also it is a pain for players as they have no access if staff isnt ingame….
I seem to remember a few servers using FLHook for this a while back. Does anyone have the code we can make a Player Bank plug-in ??
-
The givecash plugin supports a number of bank related functions. It does not provide a full banking system, with player accessable audit logs and such, but it provides enough for simple banking using the /drawcash and /showcash commands. Also as the cash is stored on a character, the amount of money that is stored is limited by the FL maximum credit limit.
/setcashcode
Set the account code to allow remote access to this character’s account; if the code is ‘none’ then remote access is disabled. The code can be any string of letters, numbers or symbols./drawcash <charname>
<cash>Draw the cash from <charname>with the
set using /setcashcode/showcash <charname>
Show the cash balance for <charname>with the
set using /setcashcode/givecash <charname><cash>[anon]
Give the cash to <charname>; if the ‘anon’ parameter is present then the receiving character will not be informed of who sent the transfer.You can find this plugin here http://the-starport.net/index.php?option=com_smf&Itemid=26&topic=851.0</charname></cash></charname>
</charname>
</charname></charname></cash>
</charname> -
I’m thinking a solution that used a database would work better, especially if you want to implement some cool website features.
http://the-starport.net/index.php?option=com_smf&Itemid=26&topic=1454.0
-
Maybe also check for the Cheaters Death 1.31.
This seems 2 have a kind of banking system included
(while i wasn’t able 2 get that 2 work). -
If I remember correctly, this is the way banking works in CD 1.31:
you’ll need the following command specified in messageboarddb.ini:[Command] Type = ESB Cmd = esbtransfer
Then you can type /info esbtransfer <player><amount>, <amount>will be transferred to <player>and 5% (?) of <amount>to [ESB]Manhattan_Zentrale (you’ve probably come accross an error message about this character not existing when you start CD)… our bank used to be called ESB, therefore the names… you could give the command another identifier though in the ini (e.g. Cmd = transfer), but I’m pretty sure that the character’s name is hardcoded.
Note: This will result in the transferring player getting kicked, and the recipient will get a message that the next time he logs in he’ll find some more cash on himself
(For some weird reason my CD in my virtualbox isn’t working again, so I can’t test it atm, but I’m pretty sure the above is correct)</amount></player></amount></amount></player>