Give deposit boxes their own script and update all the banks.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@20450 282e977c-c81d-0410-88c4-b93c2d0d6712
Moving accounts to player files added unnecessary complexity. Restore
original API and add code to migrate accounts back from player files.
While here, wrap CFBank with a context manager so it can be used with
the Python 'with' statement.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@20449 282e977c-c81d-0410-88c4-b93c2d0d6712
Checks are cumbersome, underutilized, and only marginally useful. They
can only be used to pay other players, and it is easy to write a check
without having enough money to cover it.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@19797 282e977c-c81d-0410-88c4-b93c2d0d6712
Deposit boxes are now truly deposit boxes rather than ATMs. When closed,
they only deposit the value of items placed inside.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@19796 282e977c-c81d-0410-88c4-b93c2d0d6712
Also take this opportunity to fix the bank profit calculations.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18874 282e977c-c81d-0410-88c4-b93c2d0d6712
Reimplment 'balance' and 'withdraw' using the new utility methods. Move
'deposit' into its own function but don't touch it yet.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18863 282e977c-c81d-0410-88c4-b93c2d0d6712
- update scripts to remove path (init script does it for us)
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/trunk/maps@3003 282e977c-c81d-0410-88c4-b93c2d0d6712
scripts for the (new) windows server
- CFgetPaths is now dead and will be removed - change your scripts if
you use it.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/trunk/maps@2891 282e977c-c81d-0410-88c4-b93c2d0d6712
existing items in the same space.
(using itemborker to set number of items add or remove as a safer way to
manage this.)
- touched up bank dialogue (and incorporated itembroker code)
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/trunk/maps@2413 282e977c-c81d-0410-88c4-b93c2d0d6712
-add reusable script for adding/removing items
-add two new slotmachines
-add an insult generator
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/trunk/maps@2376 282e977c-c81d-0410-88c4-b93c2d0d6712
(not advising that happen, but the bank class should be as
modular as possible IMHO) and so I did it.
Added README from unlinked with changes
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/trunk/maps@2357 282e977c-c81d-0410-88c4-b93c2d0d6712
Bank now uses imperials (1000 gold) for withdrawls and can do enchanges
of currency to platinum. Added a cleanup routine in the
python_remove script to delete account when players quit.
A transaction fee was implemented for deposits (default 5%)
requires use of new arch "imperial" (bank notes with no
intrinsic value)
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/trunk/maps@2350 282e977c-c81d-0410-88c4-b93c2d0d6712
script and removing the part if the seen command that hands out players
IP addresses to other players.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/trunk/maps@2269 282e977c-c81d-0410-88c4-b93c2d0d6712