A (mostly) back-end banking plug-in, i.e. a plug-in which does quite little of visible to the player and rather provides services for other plug-ins to use. Only one copy of the back-end plug-in needs to be present in a RW copy (MP or SP) and all other plug-ins can 'use' it if they need it.
It is an example of a simple implementation of the Banking Interface, presented in this thread, and modelling the concept of a Bank in which each player of a (MP or SP) server has an account (with an optional initial amount); other plug-ins, by calling the public methods defined in the interface, can access its various services. So far, the following are implemented:
*) query the currency name and symbol
*) query the balance of an account
*) query the availability of a certain sum on a certain account
*) grant money to a player (if admin)
*) transfer money from a player to another
*) as all transaction are logged, ask for a 'bank statement' over a certain period of time
The name of the currency and its symbol as well as the initial amount granted to new players can be configured for each RW copy.
The basic idea: See the thread quoted above for more details about the very idea of a Bank Interface. Other plug-in, providing a money system can rely in the same Bank Interface to provide similar (or more!) services in a way which consumer plug-ins (plug-ins needing some money services) can use for their purposes.
An example of a consumer plug-in (i.e. a plug-in using these services, if available) can be found here.
Player-side the plug-in provides only a minimum of interface, with a main menu activated with the /bank chat command:
where the player can ask:
- his current account balance
- the bank statement over a period of time:
- transfer money to another player:
- if an admin, grant money to a player (from the "World Treasure"; screen similar to the above)
Important - Important - Important - Important:
In order to work the plug-in requires the GUI back-end plug-in 0.4.0 available here. Install it at the same time of (or before) installing this plug-in or the server will crash at start-up!
*) Added bank statement
*) Fixed localised string mismatch
*) Upgraded to RWGui 0.4.0, including window 'display stack'