Commit Graph

50 Commits (40521c75f5846b1b199c44abd0c32fb1985c742d)

Author SHA1 Message Date
ryo_saeba 038a2e966e @ add conversion computations, and a description of existing coins.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@20807 282e977c-c81d-0410-88c4-b93c2d0d6712
2019-05-16 18:25:03 +00:00
partmedia b6f456c365 Move deposit box code to separate file
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
2017-07-27 06:35:26 +00:00
partmedia 739ca3508b Restore original CFBank API
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
2017-07-27 06:35:06 +00:00
partmedia da5bba2708 Abolish bank fees
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@20419 282e977c-c81d-0410-88c4-b93c2d0d6712
2017-07-10 05:30:53 +00:00
partmedia 6ab5d4865e Various style and functional cleanups
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@19798 282e977c-c81d-0410-88c4-b93c2d0d6712
2015-02-23 02:16:02 +00:00
partmedia e504a2c8f9 Remove checking
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
2015-02-23 02:15:57 +00:00
partmedia 3c68ec9441 Fix bank deposit boxes
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
2015-02-23 02:15:47 +00:00
partmedia 2d1dbf9876 Use new player bank account functions
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@19795 282e977c-c81d-0410-88c4-b93c2d0d6712
2015-02-23 02:15:37 +00:00
partmedia 41e103699d Attitude change from bank employees.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18890 282e977c-c81d-0410-88c4-b93c2d0d6712
2013-08-05 03:10:07 +00:00
partmedia acd83e3f0d Implement check depositing.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18889 282e977c-c81d-0410-88c4-b93c2d0d6712
2013-08-05 03:09:56 +00:00
partmedia bc33ca3fde Create checks instead of template-making them.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18887 282e977c-c81d-0410-88c4-b93c2d0d6712
2013-08-04 12:56:28 +00:00
partmedia e9217fa751 Fix checking by adding template to IPO storage.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18886 282e977c-c81d-0410-88c4-b93c2d0d6712
2013-08-04 12:56:15 +00:00
partmedia 206c0842b3 Re-implement strAmount() as a wrapper to standard function.
Thanks to Nicholas for pointing this out!

git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18882 282e977c-c81d-0410-88c4-b93c2d0d6712
2013-08-04 10:35:05 +00:00
partmedia 98b82a1de2 Do not display the decimal point if it is not necessary.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18875 282e977c-c81d-0410-88c4-b93c2d0d6712
2013-08-03 00:28:50 +00:00
partmedia 84764f325b Implement and use new silver-to-string function.
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
2013-08-03 00:28:40 +00:00
partmedia eba15f3400 Update messages and TODOs.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18873 282e977c-c81d-0410-88c4-b93c2d0d6712
2013-08-03 00:28:30 +00:00
partmedia 04d5b13678 Temporarily disable the broken ATMs.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18871 282e977c-c81d-0410-88c4-b93c2d0d6712
2013-08-03 00:28:11 +00:00
partmedia c5ae44f735 Attempt to fix 'checks' command.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18870 282e977c-c81d-0410-88c4-b93c2d0d6712
2013-08-03 00:28:02 +00:00
partmedia d32cc6b138 Improve deposit command.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18869 282e977c-c81d-0410-88c4-b93c2d0d6712
2013-08-03 00:27:52 +00:00
partmedia d929037033 Reimplement depositing money.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18868 282e977c-c81d-0410-88c4-b93c2d0d6712
2013-08-03 00:27:40 +00:00
partmedia b1c420da44 Rename profit resetting command to make more sense.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18867 282e977c-c81d-0410-88c4-b93c2d0d6712
2013-08-03 00:27:30 +00:00
partmedia 611bfca465 Add TODOs.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18866 282e977c-c81d-0410-88c4-b93c2d0d6712
2013-08-03 00:27:21 +00:00
partmedia 584da84ab8 Improve 'balance' output.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18865 282e977c-c81d-0410-88c4-b93c2d0d6712
2013-08-03 00:27:10 +00:00
partmedia a33156dfca Finish moving commands to separate functions.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18864 282e977c-c81d-0410-88c4-b93c2d0d6712
2013-08-03 00:27:00 +00:00
partmedia c0f1d72783 Implement common utility methods.
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
2013-08-03 00:26:50 +00:00
partmedia 0528e6f203 Correctly close bank and fix 'profits' display.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18862 282e977c-c81d-0410-88c4-b93c2d0d6712
2013-08-03 00:26:39 +00:00
partmedia 0c76ba7826 Implement new withdrawal command.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18858 282e977c-c81d-0410-88c4-b93c2d0d6712
2013-08-03 00:26:00 +00:00
partmedia 342ac2430a Offload trivial commands to their separate functions.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18857 282e977c-c81d-0410-88c4-b93c2d0d6712
2013-08-03 00:25:47 +00:00
partmedia 75a5fcd61c Stick help message in separate function.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18856 282e977c-c81d-0410-88c4-b93c2d0d6712
2013-08-03 00:25:37 +00:00
partmedia f87de491cd Split deposit box code into separate functions.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18855 282e977c-c81d-0410-88c4-b93c2d0d6712
2013-08-03 00:25:23 +00:00
partmedia a11526d65f Clean up unused variables and comment the rest.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18854 282e977c-c81d-0410-88c4-b93c2d0d6712
2013-08-03 00:25:07 +00:00
partmedia 2f7bd9cc2d Whitespace and formatting changes.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18853 282e977c-c81d-0410-88c4-b93c2d0d6712
2013-08-03 00:24:54 +00:00
akirschbaum 5e430c833f Remove trailing whitespace.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18703 282e977c-c81d-0410-88c4-b93c2d0d6712
2013-05-09 11:08:11 +00:00
ryo_saeba fd7f3fb07a Don't redirect output.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18253 282e977c-c81d-0410-88c4-b93c2d0d6712
2012-06-17 10:31:19 +00:00
alestan ca4950618c improves banking
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13601 282e977c-c81d-0410-88c4-b93c2d0d6712
2010-08-15 01:02:41 +00:00
anmaster fc2ac59b2c The exchange code in /python/IPO/banksay.py was missing a cast to integer, this resulted in a traceback on Python 3.x.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@11477 282e977c-c81d-0410-88c4-b93c2d0d6712
2009-02-14 17:09:40 +00:00
anmaster 60b5e31445 Replace deprecated string.split() calls in /python/IPO/*.py.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@11448 282e977c-c81d-0410-88c4-b93c2d0d6712
2009-02-11 21:08:00 +00:00
qal21 3370818173 Remove tabs from multi-line string in python/IPO/banksay.py. Fixes bug #1551381.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@4971 282e977c-c81d-0410-88c4-b93c2d0d6712
2006-09-24 15:38:00 +00:00
akirschbaum a4251b7005 Bug fixes: make it work with with new Python plugin, do not make it talk to itself, prevent abuse with out of range amounts; make source-code formatting consistent.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/trunk/maps@4026 282e977c-c81d-0410-88c4-b93c2d0d6712
2005-11-10 21:41:28 +00:00
gros 3b77421609 Update of the maps for CFPython version 2.0.
Update of the IPO-related scripts.
Gros - 18/10/2005


git-svn-id: svn://svn.code.sf.net/p/crossfire/code/trunk/maps@3899 282e977c-c81d-0410-88c4-b93c2d0d6712
2005-10-18 18:13:28 +00:00
akirschbaum 148649ceac Fix deposit option.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/trunk/maps@3121 282e977c-c81d-0410-88c4-b93c2d0d6712
2005-03-09 22:24:47 +00:00
akirschbaum 61a317db6b Fix spelling error.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/trunk/maps@3110 282e977c-c81d-0410-88c4-b93c2d0d6712
2005-03-09 20:12:45 +00:00
temitchell 32e9cfab2c - remove item scripts long ago moved into items
- 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
2004-12-06 04:48:06 +00:00
temitchell 16d1e0224e - change path finding to use os.path - hopefully this will fix these
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
2004-08-28 00:19:39 +00:00
temitchell 55d9353f1c - fixed issue with slotmachines where items created reset number of
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
2003-10-25 02:20:08 +00:00
temitchell 10663a71db - oops forgot the decimal that made the serbice charges work.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/trunk/maps@2386 282e977c-c81d-0410-88c4-b93c2d0d6712
2003-10-09 04:28:09 +00:00
temitchell 7ad3e359d6 -fix banksay.py (was a small issue with a missing =)
-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
2003-10-06 03:41:36 +00:00
temitchell 3f638c3192 - minor change to allow multiple bank databases
(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
2003-09-28 21:49:46 +00:00
temitchell 1c179567fc - touchups for banking system
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
2003-09-28 16:49:09 +00:00
temitchell 42c4b9eb73 - breaking out seen into it's own script, the bank stuff into it's own
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
2003-07-25 05:27:20 +00:00