Commit Graph

14 Commits (d06afef63f1fcd7a7767a5718d278fac2577382e)

Author SHA1 Message Date
partmedia 87a2390eaf Add new functions for player bank accounts
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@19794 282e977c-c81d-0410-88c4-b93c2d0d6712
2015-02-23 02:15:27 +00:00
partmedia 58f73d4414 Update explanatory comment in CFBank.py.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18872 282e977c-c81d-0410-88c4-b93c2d0d6712
2013-08-03 00:28:21 +00:00
partmedia e1777f2cb3 Correctly close bank file in CFBank.py.
Open bank file with writeback set to false (default); setting it to True
was not needed and caused a mysterious bug on my system. The Python
reference manual recommends closing the database after writing data, so
remove all sync() calls and instead force a close() in the end.

git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18861 282e977c-c81d-0410-88c4-b93c2d0d6712
2013-08-03 00:26:30 +00:00
partmedia f37051dcda Use more intuitive variable names.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18860 282e977c-c81d-0410-88c4-b93c2d0d6712
2013-08-03 00:26:20 +00:00
partmedia b8483cdb67 Trim source file header and whitespace formatting.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18859 282e977c-c81d-0410-88c4-b93c2d0d6712
2013-08-03 00:26:10 +00:00
anmaster a1b802da6d Avoid features in the python scripts that are removed from python 3.0. This is confirmed to still work on at least python 2.5 and as far as I understand the docs also python 2.4
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@11284 282e977c-c81d-0410-88c4-b93c2d0d6712
2009-01-30 01:32:19 +00:00
anmaster fdbcb1b6ff Run whitespace cleanup script in maps/python.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@11283 282e977c-c81d-0410-88c4-b93c2d0d6712
2009-01-30 01:22:22 +00:00
tchize d0f032623a Modified all print of script to calls to Crossfire.Log(Crossfire.Log(Debug|Error|Info|Monster),message)
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@7496 282e977c-c81d-0410-88c4-b93c2d0d6712
2007-11-08 23:36:22 +00:00
ryo_saeba 841806b2a4 Force sync so file is valid.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@6201 282e977c-c81d-0410-88c4-b93c2d0d6712
2007-05-07 18:25:02 +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
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 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 9dcd72efa0 - move the ImperialPost python files to the python directory, unclude system pathfinding from CFPython
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/trunk/maps@1992 282e977c-c81d-0410-88c4-b93c2d0d6712
2003-02-02 20:05:42 +00:00